[WBEL-users] Adding to RAID 1, only sees new partition as spare...

Scott Silva ssilva at sgvwater.com
Tue May 17 17:15:57 CDT 2005


Benjamin Smith wrote:
> I have a server that does backups, and I want to replace an existing 160 GB 
> drive, with a RAID 1 300 GB array. 
> 
> I don't have enough IDE slots to mount all at the same time. So, I installed a 
> single 300 GB HDD, configured it as /dev/md0 RAID 1, made a filesystem, 
> mounted, and copied all the data over. It's seen and mounts fine with all 
> data present. 
> 
> Now, I've removed the original 160 GB HDD, and put the other new 300 GB in 
> it's place. 
> 
> I've tried and tried, and I can't get the 2nd 300 GB drive to sync up to the 
> first 300 GB drive. It keeps seeing it as a spare... 
> 
> What am I missing? 
> 
> 1st 300 GB partn in array (with data on it) /dev/hdh1 
> 2nd 300 GB partn in array (seen as spare) /dev/hde1 


Did you properly partition the new drive as type fd (linux raid)?

Maybe you should use mdadm. I have had better luck with it over raidtools.
you would use ;

sfdisk -d /dev/hdh |sfdisk /dev/hde

to clone the partition data, then

mdadm -a /dev/md0 /dev/hde1



-- 
   ,---.____________      _        ============   .
 /'                  \   |  \       I_  O  _I_,==.:
| A beer doesn't get  >--|===`-----'I `---' I |  |:
| upset if you come  /  _ \         I       I |  |:'
| home with another /  (   `-,----============:__;:
| beer!            /  (_    O   __)       \_      :
| ,,---.__________/     (______)          (_)
:/



More information about the Whitebox-users mailing list