[H-GEN] Moving raided hard drives to a new machine (fwd)
Johann Kwiatkowski
johann at spot-the-dog.com
Wed Jun 19 23:07:32 EDT 2002
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
Hi Everyone, just a quick question,
I am upgrading my server to a faster machine, the old server has a
raid 5 setup. I want to install these raided disks into a new machine. However
the hard drive positions will change. So to start with I have
raidtab file:
raiddev /dev/md0
raid-level 5
nr-raid-disks 3
chunk-size 64k
persistent-superblock 1
#nr-spare-disks 0
device /dev/hda1
raid-disk 0
device /dev/hdb1
raid-disk 1
device /dev/hdc1
raid-disk 2
and I edit the new raidtab file so that the new postions will be
raid disk 0 = hde1
raid disk 1 = hdf1
raid disk 2 = hdg1
I have made sure all disks are physically in the same order.
Now I copied and edited the raidtab file to the new machine, updating the
new positions. Now I get an error, raid detection at boot up senses that
the disks are now is different postions. This I am lead to believe is
because the superblock needs to be updated to match the new positions. I
searched the newsgroups and the solution I found was to do a
mkraid -f /dev/md0 to re-write the superblocks to what they shoud be.
However reading the man page, it warns that this will wipe the data (
which of course I don't want to do), however some of the people on the
newsgroups seem to think this won't happen because the disks have already
been setup for raid previously. I have also have a backup of the data, so
I could start from scratch if I wanted to, but I feel I should be able to
move raided disks to another machine.
any help would be appreciated
cheers
Johann
--
Johann Kwiatkowski
Spot The Dog Graphics
ph (07) 3323 3677 (Brisbane) ph (07) 5501 5712 (gold Coast)
mobile 0418 797 419
fax (07) 5501 5713
email: johann at spot-the-dog.com
web: www.spot-the-dog.com
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'. See http://www.humbug.org.au/
More information about the General
mailing list