[BlueOnyx:11173] Re: MDADM / FDISK problem

Richard Morgan richard at morgan-web.co.uk
Thu Aug 16 04:52:52 -05 2012


Wow, thanks Michael - am I a happy shrub now or what?

This process worked perfectly and I've had great delight watching the second 
disk rebuild... it's now complete and purring like a kitten.

Really can't thank you enough.

Richard

----- Original Message ----- 
From: "Michael Stauber" <mstauber at blueonyx.it>
To: "BlueOnyx General Mailing List" <blueonyx at mail.blueonyx.it>
Sent: Thursday, August 16, 2012 3:38 AM
Subject: [BlueOnyx:11170] Re: MDADM / FDISK problem


> Hi Richard,
>
>> One other thing I tried was to manually build the partitions.  Copying 
>> the
>> partition table from sda to sdb is fine for the first partition, but 
>> won't
>> let me create the second partition with a sector starting on block 64, so
>> I'm still stumped.
>
> You see, the partition starting and ending on block 64 is a thing
> between Disk Druid and Fdisk. For Disk Druid it was perfectly legit, but
> fdisk refuses to let you do that.
>
> Try this then to create partitions on /dev/sdb that exactly match the
> ones already present on /dev/sda:
>
> sfdisk -d /dev/sda | sfdisk --force /dev/sdb
>
> Afterwards it may be necessary to manually add the partitions of
> /dev/sdb back to the RAID array in order to trigger the rebuild.
>
> Judging from your earlier message which showed the RAID1 layout, it
> would be these commands:
>
> mdadm --add /dev/md0 /dev/sdb1
> mdadm --add /dev/md1 /dev/sdb2
>
> Once you have added sdb back to the array, the RAID rebuild will start
> automatically.
>
> For things like this I found this "cheat-sheet" quite useful:
>
> http://www.ducea.com/2009/03/08/mdadm-cheat-sheet/
>
> -- 
> With best regards
>
> Michael Stauber
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at mail.blueonyx.it
> http://mail.blueonyx.it/mailman/listinfo/blueonyx 




More information about the Blueonyx mailing list