[BlueOnyx:15111] Re: DegradedArray event on /dev/md0
Chris Gebhardt - VIRTBIZ Internet
cobaltfacts at virtbiz.com
Sun Apr 6 23:11:29 -05 2014
On 4/6/2014 9:08 PM, RC Barker wrote:
> Get this when trying to add what am I missing?
> mdadm hotadd /dev/md0 /dev/sda1
> mdadm: An option must be given to set the mode before a second device is
> listed
>
>
> mdadm /dev/md0 -a /dev/sda1
> mdadm: cannot find /dev/sda1: No such file or directory
OK... did you partition the new drive first? You'll need to make sure
that you do that.
NOTE: Don't just copy and paste this, because if you get it wrong,
you'll wipe out your remaining good disk. Make sure you edit to fit
your particular installation & needs.
This will copy your partition table on /dev/sda to /dev/sdb:
sfdisk -d /dev/sda | sfdisk /dev/sdb
If your bad disk is /dev/sda and your good one is /dev/sdb, then you'd
want to turn that around appropriately. (ie: swap positions of the sda
and sdb in the above statement).
Again, make sure that you get it right, because I'm just trying to help
you with the command syntax here and can't be responsible for its
misuse. Nobody, least of all you, wants to see your next post be "Now
all my data is gone."
--
Chris Gebhardt
VIRTBIZ Internet Services
Access, Web Hosting, Colocation, Dedicated
www.virtbiz.com | toll-free (866) 4 VIRTBIZ
More information about the Blueonyx
mailing list