Creating the Array Using mdadm

[root@backup ~]# mdadm -C -l 5 -n 4 /dev/md0 /dev/etherd/e1.[0-3]
Create /dev/md0 as a RAID5 array consisting of /dev/etherd/e1.0,  /dev/etherd/e1.1, /dev/etherd/e1.2, and /dev/etherd/e1.3.
Examining this command with options (per man mdadm):
-C or –create, Create a new array
-l 5 or –level 5,  Set raid level 5.
When used with –create, options are: linear, raid0, 0, stripe, raid1, 1, mirror, [...]

New Drive Setup in Coraid Rack

Drives need initialization before use.  Use minicom to access the Coriad via serial:

[root@backup ~]# minicom
Welcome to minicom 2.00.0
OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n
Compiled on Feb 21 2005, 19:32:30.
Press CTRL-A Z for help on special keys
Issue the Coraid show command in the minicom terminal window:
SATA shelf 1> show -l
1.0 400.088GB up
1.1 [...]

Using a Disk from Another Decommissioned RAID Array

Before you can reuse a disk from another RAID array, the disk’s superblock must be zeroed per the following command:
# mdadm –zero-superblock /dev/hdc1 –force
Note: The equivalent to the superblock on Microsoft Windows filesystem is the file allocation
 table (FAT), which records which disk blocks hold the topmost directory.

Reloading the Hosts File

# /mnt/vol1/backuppc/backuppc reload

Installation | init.d Script

Per the README located in the extraction directory /root/backuppc/BackupPC-2.1.2/init.d, I did the following:

RedHat Linux:
============
When configure.pl is run, the script linux-backuppc is created. It
should be copied to /etc/init.d/backuppc:
cp linux-backuppc /etc/init.d/backuppc
After copying it, you can test it by running these commands as root:
/etc/init.d/backuppc start
/etc/init.d/backuppc status
/etc/init.d/backuppc stop
You should then run the following commands as root:
chkconfig –add backuppc
chkconfig –level [...]

Client | cygwin-rsyncd

Install the cygwin-rsyncd on WinXX clients. I tried using SMB, but it didn’t work. rsyncd works better per the BackupPC FAQ.
Windows XP Firewall Issue
Make sure that the Windows XP firewall, if turned on, is allowing connections through on port 873 (rsync).
Edit rsync.conf on the workstation
[CAM]
#
# Exact DOS style path to the file [...]

CGI Authentication | AuthUserFile

In the Apache http.conf file, the backuppc directory has included the AuthUserFile directive. This allows for user / password authentication to the BackupPC CGI application. In order to add a user for access, issue the following command as root in /var/www/cgi-bin:

htpasswd -c .backuppcpsswd username
You’ll be prompted for a password. This password is encrypted [...]

Installation | http.conf

Need to edit Apache http.conf located at /etc/httpd/conf

# The following was added for BackupPC, JCSUOMI 05/01/2006 @ 12:31PM
user backuppc
group backuppc
ServerName backup
<Directory /var/www/cgi-bin/>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
Order deny,allow
Deny from all
Allow from 172.16.0 127.0.0
AllowOverride Indexes AuthConfig
AuthName “Backup Admin”
AuthType Basic
AuthUserFile /var/www/cgi-bin/.backuppcpsswd
Require valid-user
</Directory>
Note: I had problems with an Apache error stating that ExecCGI wasn’t enabled. I found that I [...]

Installation | config.pl

[root@backup BackupPC-2.1.2]# perl configure.pl

Is this a new installation or upgrade for BackupPC? If this is
an upgrade please tell me the full path of the existing BackupPC
configuration file (eg: /xxxx/conf/config.pl). Otherwise, just
hit return.
–> Full path to existing conf/config.pl []?
I found the following locations for these programs:
bzip2 => [...]

Client and Server Setup | New Win Workstation

Client Setup
Install the cygwin-rsyncd on the workstation.
Copy the config and secrets file from a working workstation.
Server Setup
Make a new directory to hold the backup files
mkdir /home/backuppc/pc/comp37
Copy the config.pl from a similar workstation
cp /home/backuppc/pc/comp50/config.pl /home/backuppc/pc/comp37/config.pl
Verify that the config.pl is correct for the new install. Pay attention to the module names in config.pl and the workstation config.
pico [...]