[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mkraid could not lock sda1



Please post in plain text.

On Monday 22 March 2004 22:12, Michael Webber wrote:
> hi,   I have to scsi disks that are the same size and have the same
> parititon sizes.  when I go   mkraid /dev/md0
>
> handeling MD device /dev/md0
>
> analyzin super-block
>
> disk0: /dev/sda1, 979933kb, raid superblock at 979840kB
>
> disk1: /dev/sdb1, 979933kb, raid superblock at 979840kB
>
> md: could not lock sda1.
>
> md: error, md_import_device() retured -16
>
> mkraid: aborted.
>
Is this a copy and paste from the actual output?  If not, posting the actual 
output may help.
> -----------------------------------------------------------------------
>
> my  raidtab file looks like this 
>
> raiddev /dev/md0
>         raid-level              1
>         nr-raid-disks           2
>         nr-spare-disks          0
>         chunk-size              4
>         persistent-superblock   1
>                 device          /dev/sda1
>                 raid-disk       0
>             ;     device          /dev/sdb1
>            &nb ;    raid-disk       1
>
>
> raiddev /dev/md1
>         raid-level              1
>         nr-raid-disks           2
>         nr-spare-disks          0
>         chunk-size              4
>         persistent-superblock   1
>                 device          /dev/sda2
>                 raid-disk       0
>             ;     device          /dev/sdb2
>                 raid-disk       1
>
> thanks
There's nothing wrong with your raidtab, unless those semi-colons are 
actually part of the file and not garbled HTML.

Are the partitions mentioned under the device section of the raidtab in use 
when you try to make the raid array?  What is their partition type?  What 
drive did you boot from to issue the mkraid command?  What is the current 
contents of your /etc/fstab?

What is the contents of /proc/mdstat?

Justin Guerin

Reply to: