2008/12/3 Michael Lake <[EMAIL PROTECTED]>:
> Hi Own and all
>
> Owen Townend wrote:
>>>
>>> # mdadm --assemble --run --uuid b6035660:c11a8a2e:7026aea2:99d23bfc
>>>  /dev/sdc5
>>> # mount /dev/md1 /mnt
>>>
>>> N.B.
>>> I haven't checked the syntax, you may need to add /dev/md1 to the
>>> mdadm line.. I don't have a box in front of me to check...
>>> The general idea should be right though..
>>
>> You can give 'missing' as a component device name along with /dev/sdc5
>> if mdadm gives a 'not enough devices' type error.
>
> Okies I worked out to give the uuid its -u or --uuid= so I'm using -u and
> the magic number from the --examine output.
>
> Here is what I tried.
> # /sbin/mdadm --assemble --run -u b6035660:c11a8a2e:7026aea2:99d23bfc
>    /dev/sdc5 missing
> mdadm: cannot open device missing: No such file or directory
> mdadm: missing has wrong uuid.
> mdadm: no devices found for /dev/sdc5
>
> I then tried specifying the /dev/md1
>
> # /sbin/mdadm --assemble --run -u b6035660:c11a8a2e:7026aea2:99d23bfc
> /dev/md1
>    /dev/sdc5 missing
> mdadm: no recogniseable superblock on /dev/sdc5
> mdadm: /dev/sdc5 has wrong uuid.
> mdadm: cannot open device missing: No such file or directory
> mdadm: missing has wrong uuid.
> mdadm: no devices found for /dev/md1
>
> In the above I added /dev/md1 for it to be assembled onto.
>
> By the way I do have a /dev/md1 existing already. But no /dev/md0
>
>
> (Also this new machine I'm trying to mount it on is a raid system using
> mdraid which I gather is different software for raid to mdadm. I think the
> older machine used mdadm and this new machine uses mdraid. It was setup by a
> previous sysadmin so I'm learning.)
>
> Mike

I pulled the /dev/md1 from the 'prefered minor' that was in the
examine output. You can use a different one without hassle.
The ordering for the command is:
Usage: mdadm --assemble md-device options-and-component-devices...

The '--run' is because with a missing device it would usually only
assemble the array and leave it stopped which is the safest default.

Try
# /sbin/mdadm --assemble /dev/md0 --run -u
b6035660:c11a8a2e:7026aea2:99d23bfc /dev/sdc5

cheers,
Owen.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to