[ale] rsync and link files

hirsch at zapmedia.com hirsch at zapmedia.com
Tue Jan 22 13:55:51 EST 2002


Michael Still (mikes) writes:
 > Are you using the -a switch?   
 > 
 > On another rsync note.. I have a system here that I'm trying to do local
 > rsync with to make 'poor man's mirror' of my disk.
 > 
 > I have 2 identical 18G SCSI hd's on sda and sdb and partitioned exactly the
 > same with a /boot and a / (no swap..yeah I know), but the problem is that
 > when I reboot with this disk to test my mirror lilo gives LI 01 01 01 01...
 > So there is a problem somewhere.
 > 
 > Any ideas?  Better ways to do this?

Sure.  First, this gets much easier if you use grub instead of lilo.
You don't need to rerun grub after any kernel change because grub
understands filesystems (ext2 and reiserfs).

Second, how are you planning to use this disk?  It looks like sda2 is
your current root disk, so is this backup disk sdb2?  And will it be
sdb2 or sda2 when you try to boot off it?

Assuming, since I don't know your exact situation, that it is
currently sdb2 but it will be sda2 when you boot off it, you have the
correct 'root=/dev/sda2' line in lilo.conf, but I think you also have
tell lilo which disk it is going to be at boot up.  You use the
"disk=xx" for this.

Something like:
disk=/dev/sda
	bios=0x80

I'm sorry I don't know the exact command you need.  I'd need to know
your exact situation--and then I'd need to play with it for a while.
It is poorly documented in the lilo.conf man page.  I think it is
better described in some HOWTO somewhere.

--Michael

 > -begin lilo.conf:
 > boot = /dev/sdb
 > timeout = 50
 > prompt
 > default = mike
 > vga = normal
 > read-only
 > map=/boot/map
 > install=/boot/boot.b
 > 
 > image = /boot/bzImage-mike
 >         label = mike
 >         root = /dev/sda2
 > -end lilo.conf
 > 
 > -beging sync.sh:
 > mount /mnt/backup/root
 > mount /mnt/backup/root/boot
 > /usr/bin/rsync --delete -xav / /mnt/backup/root
 > /usr/bin/rsync --delete -xav /boot/ /mnt/backup/root/boot
 > #/usr/sbin/chroot /mnt/backup/root /sbin/lilo -C /root/sync/lilo.conf
 > /sbin/lilo -r /mnt/backup/root -v -v -v -C /root/sync/lilo.conf
 > sync ; sync ; sync
 > umount /mnt/backup/root/boot
 > umount /mnt/backup/root
 > -end sync.sh
 > 
 > # fdisk -l /dev/sda
 > 
 > Disk /dev/sda: 255 heads, 63 sectors, 2213 cylinders
 > Units = cylinders of 16065 * 512 bytes
 > 
 >    Device Boot    Start       End    Blocks   Id  System
 > /dev/sda1   *         1        13    104391   83  Linux
 > /dev/sda2            14      2211  17655435   83  Linux
 > 
 > # fdisk -l /dev/sdb
 > 
 > Disk /dev/sdb: 255 heads, 63 sectors, 2213 cylinders
 > Units = cylinders of 16065 * 512 bytes
 > 
 >    Device Boot    Start       End    Blocks   Id  System
 > /dev/sdb1   *         1        13    104391   83  Linux
 > /dev/sdb2            14      2211  17655435   83  Linux
 > 
 > --------------------------------------
 > Michael Still (MikeS at McBurney.com)
 > System Administrator
 > The McBurney Corporation
 > --------------------------------------
 > 
 > 
 > -----Original Message-----
 > From: aaron [mailto:aaron at pd.org]
 > Sent: Tuesday, January 22, 2002 1:16 PM
 > To: ALE
 > Subject: [ale] rsync and link files
 > 
 > 
 > 
 > Was trying to use "rsync" to locally mirror my RH 7.1 hard drive (and 
 > create a long overdue backup) before updating to RH 7.2
 > 
 > For the most part, rsync is being a gem.  However, I would like to 
 > maintain the various soft, hard and absolute link files in most 
 > directories and rsync is not transfering or recreating any of the links.
 > 
 > I have reviewed the man and tried several combinations of the link 
 > handling options listed there with no success. Anyone have a clue
 > what I might be missing to get the links to be mirrored with the regular 
 > files??
 > 
 > thanks...
 > aaron
 > 
 > 
 > ---
 > This message has been sent through the ALE general discussion list.
 > See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
 > 
 > sent to listmaster at ale dot org.
 > 
 > ---
 > This message has been sent through the ALE general discussion list.
 > See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
 > sent to listmaster at ale dot org.



---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list