====== Ariel ======
[[Category:Hosts]]
[[Category:Hosts/Gentoo]]
[[Category:VMware]]
===== Overview =====
* Type: Virtual machine
* Location: [[Badger]]
* URL: http://ariel.jellybean.sihnon.net/
* Provides:
* Backup server
* Specification
* 256Mb Ram
* 2x 100Mb Ethernet
* 20Gb Virtual Disk
* Serial port (mapped to [[Badger]]:/mnt/vms/serials/ariel)
===== Filesystems =====
{| class="wikitable" cellspacing="10"
|+ Filesystems
|-
! Device
! Size
! Filesystem
! Mount point
! UUID
! Notes
|-
| /dev/sda1
| 128Mb
| ext2
| /boot
| bb61e803-7c8e-4d0f-82fb-3193c08eae8a
|
|-
| /dev/sda2
| 256Mb
| swap
| //none//
| cf067b46-b24f-4a20-87ee-d87663171369
|
|-
| /dev/sda3
| 19Gb
| lvm
| //none//
|
|
|-
| /dev/mapper/system-home
| 1Gb
| ext3
| /home
| aa0b9d4c-5d99-4cf4-b2bf-178f92d92c28
|
|-
| /dev/mapper/system-root
| 8Gb
| ext3
| /
| 71336918-f31d-4756-a965-1476cd67b687
|
|-
| /dev/mapper/system-var
| 10Gb
| ext3
| /var
| 3cb9ca13-2d68-4faa-b93a-75037520cfa3
|
|}
===== Installation =====
Ariel was installed using the [[Gentoo/Template]] VMware image.
==== Installed software ====
Also see:
* [[Gentoo/VMware]]
=== Backups ===
* {{Package|direct=yes|app-arch/par}}
* {{Package|direct=yes|app-backup/backuppc}} {{USEFlag|{{EnableFlag|samba}} {{EnableFlag|vhosts}}}}
* {{Package|direct=yes|dev-lang/perl}} {{USEFlag|{{EnableFlag|ithreads}}}}
* {{Package|direct=yes|sys-devel/libperl}} {{USEFlag|{{EnableFlag|ithreads}}}}
* {{Package|direct=yes|sys-fs/reiserfsprogs}}
* {{Package|direct=yes|www-apache/mod_perl}} {{USEFlag|{{EnableFlag|threads}}}}
===== Configuration =====
==== Network ====
{| class="wikitable" cellspacing="10"
|+ Network adapters
|-
! Hardware
! Driver
! Device
! Mac
! IP
! DHCP/Static
|-
| AMD PCnet32
| pcnet32
| eth0
| 00:0c:29:64:fd:b4
|
| //none//
|-
| AMD PCnet32
| pcnet32
| eth1
| 00:0c:29:6a:fd:be
|
| dhcp
|}
==== iSCSI ====
Follow the instructions on [[ISCSI]] to mount a 100GB drive from [[Badger]] into /backups.
==== NFS ====
Backups will be archived over to [[Athens]] in case of hardware failure on Ariel or Badger. Mount athens.jellybean.sihnon.net:/raid/backups/archives by adding the following line to fstab.
{{File|/etc/fstab|
- NFS mounts
athens.jellybean.sihnon.net:/raid/backups/archives /backups/archives nfs acl,nfsvers=3,noatime 0 0
}}
Ensure that Ariel has permissions to access the exported filesystem using Athens' [[https://athens.jellybean.sihnon.net/|webui]].
Then start nfsmount, and ensure it autostarts on boot:
{{Root|}}
==== BackupPC ====
Having installed perl and libperl with thread support, several perl modules may need to be recompiled to be compatible. Re-emerge the following packages:
* {{Package|direct=yes|dev-perl/File-RsyncP}}
* {{Package|direct=yes|perl-core/Compress-Zlib}}
* {{Package|direct=yes|perl-core/Compress-Raw-Zlib}}
BackupPC is installed with __TOPDIR__ configured as /var/lib/backuppc. Move the content of this directory to the backups filesystem, and recreate the path as a symlink to /backups.
Ensure that backuppc has write access to the backups filesystem, and the archive filesytsem by running the following command after both have been mounted.
{{Root|}}
Apache needs to be run as the backuppc user so that the CGI interface can access the backups filesystems. Edit the apache configuration to change the user from apache to backuppc:
{{File|/etc/apache2/httpd.conf|}}
Configure backuppc's global settings in /etc/backuppc/config.pl. The following settings have been changed from the defaults:
{{File|/etc/backuppc/config.pl|}}
Per-host configuration files are stored in /backups/pc///hostname///config.pl. Create a directory for each host, and use the following config as a template. Be sure to check for any persistent mounts in /mnt that might need to be excluded before allowing backuppc to run.
{{File|/backups/pc///hostname///config.pl|}}
Finally, let backuppc know about each of the hosts:
{{File|/etc/backuppc/hosts|
host dhcp user moreUsers # <--- do not edit this line
ariel.jellybean.sihnon.net 0 ben
}}
=== Archives ===
Have backuppc archive the most recent full backups to [[Athens]] for safekeeping. Add the following entry in the hosts file:
{{File|/etc/backuppc/hosts|
host dhcp user moreUsers # <--- do not edit this line
athens.jellybean.sihnon.net 0 backuppc # Archive host
}}
Then add a per-host config file for athens to configure the archives:
{{File|/backups/pc/athens.jellybean.sihnon.net/config.pl|}}
Now, when athens is selected in the CGI interface, an option to start an archive backup is available. To run the archive, chose this option, and select the desired hosts. The defaults on the final page of the wizard are acceptable, having been configured in the athens config file, so just click start.
===== Hardware =====
==== lspci ====
0@@