Posted on July 25, 2008 by wook
[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, [...]
Filed under: Computer, Linux, Uncategorized | Tagged: Backup | Leave a Comment »
Posted on July 24, 2008 by wook
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 [...]
Filed under: Computer, Linux, MSC | Tagged: Backup, Coraid, disk | Leave a Comment »
Posted on July 24, 2008 by wook
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.
Filed under: Computer, Linux, MSC | Tagged: Coraid, disk | Leave a Comment »
Posted on July 24, 2008 by wook
# /mnt/vol1/backuppc/backuppc reload
Filed under: Computer, Linux, MSC | Tagged: Backup, BackupPC | Leave a Comment »
Posted on July 24, 2008 by wook
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 [...]
Filed under: Computer, Linux, MSC | Tagged: Backup, BackupPC | Leave a Comment »
Posted on July 24, 2008 by wook
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 [...]
Filed under: Computer, Linux, MSC | Tagged: Backup, BackupPC | Leave a Comment »
Posted on July 24, 2008 by wook
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 [...]
Filed under: Computer, Linux, MSC | Tagged: Backup, BackupPC | Leave a Comment »
Posted on July 24, 2008 by wook
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 [...]
Filed under: Computer, Linux, MSC | Tagged: Backup, BackupPC | Leave a Comment »
Posted on July 24, 2008 by wook
[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 => [...]
Filed under: Computer, Linux, MSC | Tagged: Backup, BackupPC | Leave a Comment »
Posted on July 24, 2008 by wook
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 [...]
Filed under: Computer, Linux, MSC | Tagged: Backup, BackupPC | Leave a Comment »