Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Clone Hardware RAID5 server to nonRAID server.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mikelarry
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2005
Posts: 95
Location: Milwaukee, WI

PostPosted: Mon May 23, 2005 5:03 pm    Post subject: Clone Hardware RAID5 server to nonRAID server. Reply with quote

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
View user's profile Send private message
Gherald
Veteran
Veteran


Joined: 23 Aug 2004
Posts: 1399
Location: CLUAConsole

PostPosted: Mon May 23, 2005 5:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
flash49
Apprentice
Apprentice


Joined: 12 Feb 2005
Posts: 233

PostPosted: Mon May 23, 2005 5:32 pm    Post subject: Reply with quote

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

:idea: 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
View user's profile Send private message
Gherald
Veteran
Veteran


Joined: 23 Aug 2004
Posts: 1399
Location: CLUAConsole

PostPosted: Mon May 23, 2005 5:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
mikelarry
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2005
Posts: 95
Location: Milwaukee, WI

PostPosted: Mon May 23, 2005 6:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum