LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "Patrick Ale" <patrick.ale@gmail.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: [PROBLEM] Can't start MD devices by using /dev/disk/by-id
Date: Tue, 13 Feb 2007 22:51:32 +0100	[thread overview]
Message-ID: <8d158e1f0702131351l3e3e1ae2u71a13de655391fce@mail.gmail.com> (raw)

Hi chaps,

I just came home, rebooted my box to git8 and *gasp* a problem :)

I can't start my MD devices anymore by defining /dev/disk/by-id/*
devices in /etc/mdadm.conf.

When I do a: mdadm --assemble /dev/md/1 it tells me "No devices found
for /dev/md/1"
When I edit the file /etc/mdadm.conf and change the /dev/disk/by-id/*
to whatever the symbolic links points to in the /dev directory, it
does work.

An example:

-- mdadm.conf
ARRAY /dev/md/1
devices=/dev/disk/by-id/scsi-SATA_WDC_WD1200JB-00WD-WMAEL2258179-part1,/dev/disk/by-id/scsi-SATA_WDC_WD1200JB-00WD-WMACM1329740-part1
#ARRAY /dev/md/1 devices=/dev/sdb1,/dev/sdf1
ARRAY /dev/md/2 devices=/dev/disk/by-id/scsi-SATA_Maxtor_6L250R0_L609D78H-part1
ARRAY /dev/md/3
devices=/dev/disk/by-id/scsi-SATA_WDCD1600JB-00WD-WMAEK2977810-part1,/dev/disk/by-id/scsi-SATA_Maxtor_6Y160P0_Y48BCM3E-part1
-- end mdadm.conf --

localhost by-id # pwd
/dev/disk/by-id

localhost by-id # mdadm --assemble /dev/md/1
mdadm: no devices found for /dev/md/1


Let's change the config file now

-- mdadm.conf --
#ARRAY /dev/md/1
devices=/dev/disk/by-id/scsi-SATA_WDC_WD1200JB-00WD-WMAEL2258179-part1,/dev/disk/by-id/scsi-SATA_WDC_WD1200JB-00WD-WMACM1329740-part1
ARRAY /dev/md/1 devices=/dev/sdb1,/dev/sdf1
ARRAY /dev/md/2 devices=/dev/disk/by-id/scsi-SATA_Maxtor_6L250R0_L609D78H-part1
ARRAY /dev/md/3
devices=/dev/disk/by-id/scsi-SATA_WDCD1600JB-00WD-WMAEK2977810-part1,/dev/disk/by-id/scsi-SATA_Maxtor_6Y160P0_Y48BCM3E-part1

And
localhost by-id # mdadm --assemble /dev/md/1
mdadm: /dev/md/1 has been started with 2 drives.


Now, granted, it's 22:49 and i had a sucky day at work but... this
doesnt make any sense to me.

So, I tried to use the vanilla 2.6.20 kernel, same problem.

Here is a listing of symbolic links in /dev/disk/by-id , as you can
see the initial mdadm.conf (which worked prior to 2.6.20) should work,
since the links to the actual device nodes seem to be correct and
taking in account the MD devices do start when using the /dev/ nodes.

lrwxrwxrwx 1 root root   9 Feb 12 05:40
scsi-SATA_Maxtor_6L250R0_L609D78H -> ../../sdc
lrwxrwxrwx 1 root root  10 Feb 12 05:40
scsi-SATA_Maxtor_6L250R0_L609D78H-part1 -> ../../sdc1
lrwxrwxrwx 1 root root   9 Feb 12 05:40
scsi-SATA_Maxtor_6Y160P0_Y48BCM3E -> ../../sde
lrwxrwxrwx 1 root root  10 Feb 12 05:40
scsi-SATA_Maxtor_6Y160P0_Y48BCM3E-part1 -> ../../sde1
lrwxrwxrwx 1 root root   9 Feb 12 05:40
scsi-SATA_WDC_WD1200JB-00WD-WMACM1329740 -> ../../sdf
lrwxrwxrwx 1 root root  10 Feb 12 05:40
scsi-SATA_WDC_WD1200JB-00WD-WMACM1329740-part1 -> ../../sdf1
lrwxrwxrwx 1 root root   9 Feb 12 05:40
scsi-SATA_WDC_WD1200JB-00WD-WMAEL2258179 -> ../../sdb
lrwxrwxrwx 1 root root  10 Feb 12 05:40
scsi-SATA_WDC_WD1200JB-00WD-WMAEL2258179-part1 -> ../../sdb1
lrwxrwxrwx 1 root root   9 Feb 12 05:40
scsi-SATA_WDC_WD1600JB-00WD-WMAEK2977810 -> ../../sdd
lrwxrwxrwx 1 root root  10 Feb 12 05:40
scsi-SATA_WDC_WD1600JB-00WD-WMAEK2977810-part1 -> ../../sdd1
lrwxrwxrwx 1 root root   9 Feb 12 05:40
scsi-SATA_WDC_WD2000JB-00_WD-WCAL81971867 -> ../../sda
lrwxrwxrwx 1 root root  10 Feb 12 05:40
scsi-SATA_WDC_WD2000JB-00_WD-WCAL81971867-part1 -> ../../sda1
lrwxrwxrwx 1 root root  10 Feb 12 05:40
scsi-SATA_WDC_WD2000JB-00_WD-WCAL81971867-part2 -> ../../sda2
lrwxrwxrwx 1 root root  10 Feb 12 05:40
scsi-SATA_WDC_WD2000JB-00_WD-WCAL81971867-part3 -> ../../sda3
lrwxrwxrwx 1 root root  10 Feb 12 05:40
scsi-SATA_WDC_WD2000JB-00_WD-WCAL81971867-part4 -> ../../sda4
lrwxrwxrwx 1 root root  10 Feb 12 05:40
scsi-SATA_WDC_WD2000JB-00_WD-WCAL81971867-part5 -> ../../sda5
lrwxrwxrwx 1 root root  10 Feb 12 05:40
scsi-SATA_WDC_WD2000JB-00_WD-WCAL81971867-part6 -> ../../sda6
lrwxrwxrwx 1 root root   9 Feb 12 05:40
usb-USB2.0_CardReader_CF_RW_586148026074 -> ../../sdg


Cheers,

Patrick

             reply	other threads:[~2007-02-13 21:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-13 21:51 Patrick Ale [this message]
2007-02-14  0:37 ` Bill Davidsen
2007-02-14  7:28   ` Patrick Ale

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8d158e1f0702131351l3e3e1ae2u71a13de655391fce@mail.gmail.com \
    --to=patrick.ale@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: [PROBLEM] Can'\''t start MD devices by using /dev/disk/by-id' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).