View previous topic :: View next topic |
Author |
Message |
mikelarry Tux's lil' helper
Joined: 27 Jan 2005 Posts: 95 Location: Milwaukee, WI
|
Posted: Mon May 23, 2005 5:03 pm Post subject: Clone Hardware RAID5 server to nonRAID server. |
|
|
I run a Gentoo server at home that has hardware RAID5. I also have a spare PC that is just a single IDE drive. I would like to clone my RAID5 server 100% to the spare PCs IDE drive. Maybe via the network or through a temporary physical install of the IDE in the RAID5 system. I'm looking to do this for a failover plan if I jack-up my RAID5 system.
Any guidance?
Thanks for any help! |
|
Back to top |
|
|
Gherald Veteran
Joined: 23 Aug 2004 Posts: 1399 Location: CLUAConsole
|
Posted: Mon May 23, 2005 5:13 pm Post subject: |
|
|
Mount one or the other over samba/nfs and use "rsync -a <source> <dest>" ?
or do a full dump of the partition with partimage ... |
|
Back to top |
|
|
flash49 Apprentice
Joined: 12 Feb 2005 Posts: 233
|
Posted: Mon May 23, 2005 5:32 pm Post subject: |
|
|
Quote: | Mount one or the other over samba/nfs and use "rsync -a <source> <dest>" ? |
Why? rsync works fine directly over ssh.
"rsync -a <source> <desthost:/destdir>" is your Friend.
To really get all files (even those hidden by the mounts of dev, proc, etc.) and to also leave out proc, sys and dev(if you use devfs) try this:
Code: | mkdir /backup
mount / /backup -o bind
mount /boot /backup/boot -o bind #if boot is on an extra partition
mount /usr /backup/usr -o bind #if usr is on an extra partition
# and so on for the rest of your partitions
#now fpr the real backup:
rsync -a --progress /backup backuphost:/backupdir
|
The big advantage over duplicating your partions with "dd" is that you can rsync your files regularly, without transfering unchanged files!
One BIG Warning: "rsync -a / backuphost:/backupdir" won't work |
|
Back to top |
|
|
Gherald Veteran
Joined: 23 Aug 2004 Posts: 1399 Location: CLUAConsole
|
Posted: Mon May 23, 2005 5:48 pm Post subject: |
|
|
flash49 wrote: | Quote: | Mount one or the other over samba/nfs and use "rsync -a <source> <dest>" ? |
Why? rsync works fine directly over ssh.
"rsync -a <source> <desthost:/destdir>" is your Friend. |
That works, too. There are eight basic ways to use rsync, I'm not about to cover them all.
On my gigabit network, rsync over samba copies faster than ssh. YMMV, I reserve rsync over ssh for transfers across the internet. |
|
Back to top |
|
|
mikelarry Tux's lil' helper
Joined: 27 Jan 2005 Posts: 95 Location: Milwaukee, WI
|
Posted: Mon May 23, 2005 6:02 pm Post subject: |
|
|
Thanks for the reply.
So if the hardware is a little different should I recompile the kernel/modules? or would it possibly use the current one that was built for the RAID system.
I'm currently using genkernel and the kernel is large & generic. |
|
Back to top |
|
|
|