redbox
Jan 7 2004, 08:13 PM
We have a dual xeon, 2 drives, cpanel.
I went through the procedure to configure backup drive.
/backup was already listed in the backup destination.
When I submitted, I received this error:
/backup is not a directory..
Backup has been disabled to prevent file loss..
/backup does not exist..
Backup has been disabled to prevent file loss..
Backup Configuration Saved!
xerophyte
Jan 8 2004, 11:21 PM
make sure your second drive si mounted good and what drive has backup folder
for example, if you do
/dev/hda3 xxG xxG xxG xx% /
/dev/hda1 99M 15M 78M xx% /boot
none 505M 0 504M 0% /dev/shm
/dev/hdc1 xxG xxG xxG xx% /backup
/dev/hdc2 xxG xxM xxG x% /home2
do you see the /bakup is mounted on the second drive.
hope that helps.
rockster
Jan 9 2004, 10:38 PM
ssh root
a) to check the hdds info
/sbin/fdisk -l
[print out) ]
Disk /dev/sda: 73.4 GB, 73407820800 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 268 2048287+ 82 Linux swap
/dev/sda3 269 8924 69529320 83 Linux
Disk /dev/sdb: 73.4 GB, 73407820800 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 104391 83 Linux
/dev/sdb2 14 268 2048287+ 82 Linux swap
>>> /dev/sdb3 269 8924 69529320 83 Linux<<<
[ this is a secondary drive with sites and files on]
/dev/sdb3 269 8924 69529320 83 Linux
b)
mkdir /backup /backup
c)
mount /dev/sdb3 /backup
d)
pico -w /etc/fstab
[ add the /dev/sdb /backup ext3 defaults 0 0 at bottom of list
like below ]
/dev/sda3 / ext3 defaults,usrquota 1 1
/dev/sda1 /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/sda2 swap swap defaults 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/sdb3 /backup ext3 defaults 0 0
ctrl X
********************************
IF you have a NEW server:
a) umount /home2
b) mkdir /backup
c) pico -w /etc/fstab
find
/dev/sdb3 /home2 ext3 defaults 0 0
change to [the # is the number of the partition]
/dev/sdb# /backup ext3 defaults 0 0
ctrl X
[then]
mount /dev/sdb# /backup