* mdadm --incremental /dev/md?? instead of /dev/md/d??
@ 2008-11-30 14:43 Wilhelm Meier
2008-12-01 0:26 ` NeilBrown
0 siblings, 1 reply; 5+ messages in thread
From: Wilhelm Meier @ 2008-11-30 14:43 UTC (permalink / raw)
To: linux-raid
How can I switch the naming scheme for the mdadm incremental-mode
using /dev/md42 instead of /dev/md/d42 for adding a device or
constructing an array with a minor-number 42?
mdadm --version: 2.6.2
--
Wilhelm
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mdadm --incremental /dev/md?? instead of /dev/md/d??
2008-11-30 14:43 mdadm --incremental /dev/md?? instead of /dev/md/d?? Wilhelm Meier
@ 2008-12-01 0:26 ` NeilBrown
2008-12-01 6:57 ` Wilhelm Meier
0 siblings, 1 reply; 5+ messages in thread
From: NeilBrown @ 2008-12-01 0:26 UTC (permalink / raw)
To: Wilhelm Meier; +Cc: linux-raid
On Mon, December 1, 2008 1:43 am, Wilhelm Meier wrote:
> How can I switch the naming scheme for the mdadm incremental-mode
> using /dev/md42 instead of /dev/md/d42 for adding a device or
> constructing an array with a minor-number 42?
I thought it did default to /dev/md42
Do you have something like
CREATE auto=mdp
in /etc/mdadm.conf?? Making that "auto=md" might fix it.
>
> mdadm --version: 2.6.2
That is about 18 months old now. An upgrade might be a good idea.
NeilBrown
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mdadm --incremental /dev/md?? instead of /dev/md/d??
2008-12-01 0:26 ` NeilBrown
@ 2008-12-01 6:57 ` Wilhelm Meier
2008-12-02 5:22 ` Neil Brown
0 siblings, 1 reply; 5+ messages in thread
From: Wilhelm Meier @ 2008-12-01 6:57 UTC (permalink / raw)
To: NeilBrown; +Cc: linux-raid
Am Montag 01 Dezember 2008 schrieb NeilBrown:
> On Mon, December 1, 2008 1:43 am, Wilhelm Meier wrote:
> > How can I switch the naming scheme for the mdadm incremental-mode
> > using /dev/md42 instead of /dev/md/d42 for adding a device or
> > constructing an array with a minor-number 42?
>
> I thought it did default to /dev/md42
> Do you have something like
> CREATE auto=mdp
> in /etc/mdadm.conf??
no. auto=yes
> Making that "auto=md" might fix it.
have to check this later
>
> > mdadm --version: 2.6.2
>
> That is about 18 months old now. An upgrade might be a good idea.
Oh yes. But this is already the debian-etch-backports version. The
debian-etch version is 2.5.8 (missing --incremental)
>
> NeilBrown
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-raid" in the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Wilhelm
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mdadm --incremental /dev/md?? instead of /dev/md/d??
2008-12-01 6:57 ` Wilhelm Meier
@ 2008-12-02 5:22 ` Neil Brown
2008-12-02 20:39 ` Wilhelm Meier
0 siblings, 1 reply; 5+ messages in thread
From: Neil Brown @ 2008-12-02 5:22 UTC (permalink / raw)
To: Wilhelm Meier; +Cc: linux-raid
On Monday December 1, wilhelm.meier@fh-kl.de wrote:
> Am Montag 01 Dezember 2008 schrieb NeilBrown:
> > On Mon, December 1, 2008 1:43 am, Wilhelm Meier wrote:
> > > How can I switch the naming scheme for the mdadm incremental-mode
> > > using /dev/md42 instead of /dev/md/d42 for adding a device or
> > > constructing an array with a minor-number 42?
> >
> > I thought it did default to /dev/md42
> > Do you have something like
> > CREATE auto=mdp
> > in /etc/mdadm.conf??
>
> no. auto=yes
Hmm.
Can you show me "mdadm --examine" on one of the drives that you are
adding with --incremental ??
NeilBrown
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mdadm --incremental /dev/md?? instead of /dev/md/d??
2008-12-02 5:22 ` Neil Brown
@ 2008-12-02 20:39 ` Wilhelm Meier
0 siblings, 0 replies; 5+ messages in thread
From: Wilhelm Meier @ 2008-12-02 20:39 UTC (permalink / raw)
To: Neil Brown; +Cc: linux-raid
Am Dienstag 02 Dezember 2008 schrieb Neil Brown:
> On Monday December 1, wilhelm.meier@fh-kl.de wrote:
> > Am Montag 01 Dezember 2008 schrieb NeilBrown:
> > > On Mon, December 1, 2008 1:43 am, Wilhelm Meier wrote:
> > > > How can I switch the naming scheme for the mdadm
> > > > incremental-mode using /dev/md42 instead of /dev/md/d42 for
> > > > adding a device or constructing an array with a minor-number
> > > > 42?
> > >
> > > I thought it did default to /dev/md42
> > > Do you have something like
> > > CREATE auto=mdp
> > > in /etc/mdadm.conf??
> >
> > no. auto=yes
>
> Hmm.
> Can you show me "mdadm --examine" on one of the drives that you are
> adding with --incremental ??
I had a /dev/md1000 as raid1 with /dev/sdc1 und /dev/sdd1 as
components. Then I set the /dev/sdd1 to faulty and removed it
from /dev/md1000. Then I started the --incremental mode
with /dev/sdd1, assuming I would add it to the /dev/md1000. But this
did not happen.
Below you find the requested information:
kmux-host:~# mdadm --incremental /dev/sdd1
mdadm: /dev/sdd1 attached to /dev/md/d1000, not enough to start (0).
kmux-host:~# mdadm --examine /dev/sdd1
/dev/sdd1:
Magic : a92b4efc
Version : 00.90.00
UUID : 5f91c408:bd95185c:54631573:9ffde20e (local to host
kmux-host)
Creation Time : Tue Dec 2 18:06:39 2008
Raid Level : raid1
Used Dev Size : 117218176 (111.79 GiB 120.03 GB)
Array Size : 117218176 (111.79 GiB 120.03 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1000
Update Time : Tue Dec 2 21:29:21 2008
State : clean
Active Devices : 1
Working Devices : 2
Failed Devices : 1
Spare Devices : 1
Checksum : 541ac935 - correct
Events : 0.8
Number Major Minor RaidDevice State
this 2 8 49 2 spare /dev/sdd1
0 0 8 33 0 active sync /dev/sdc1
1 1 0 0 1 faulty removed
2 2 8 49 2 spare /dev/sdd1
kmux-host:~# mdadm --detail /dev/md1000
/dev/md1000:
Version : 00.90.03
Creation Time : Tue Dec 2 18:06:39 2008
Raid Level : raid1
Array Size : 117218176 (111.79 GiB 120.03 GB)
Used Dev Size : 117218176 (111.79 GiB 120.03 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 1000
Persistence : Superblock is persistent
Update Time : Tue Dec 2 21:33:46 2008
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
UUID : 5f91c408:bd95185c:54631573:9ffde20e (local to host
kmux-host)
Events : 0.18
Number Major Minor RaidDevice State
0 8 33 0 active sync /dev/sdc1
1 0 0 1 removed
kmux-host:~#
kmux-host:~# ls -l /dev/md*
brw-rw---- 1 root disk 9, 0 2008-12-02 14:09 /dev/md0
brw-rw---- 1 root disk 9, 1 2008-12-02 14:09 /dev/md1
brw-rw---- 1 root disk 9, 1000 2008-12-02 18:06 /dev/md1000
brw-rw---- 1 root disk 9, 1001 2008-12-02 14:09 /dev/md1001
brw-rw---- 1 root disk 9, 2 2008-12-02 14:09 /dev/md2
brw-rw---- 1 root disk 9, 3 2008-12-02 21:22 /dev/md3
brw-rw---- 1 root disk 254, 64000 2008-12-02 14:09 /dev/md_d1000
brw-rw---- 1 root disk 254, 64064 2008-12-02 14:09 /dev/md_d1001
/dev/md:
insgesamt 0
brw-rw---- 1 root disk 9, 1000 2008-12-02 14:09 1000
brw-rw---- 1 root disk 9, 1001 2008-12-02 14:09 1001
brw------- 1 root root 254, 64000 2008-12-02 14:09 d1000
brw------- 1 root root 254, 64064 2008-12-02 14:09 d1001
kmux-host:~#
kmux-host:~# more /etc/mdadm/mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#
# by default, scan all partitions (/proc/partitions) for MD
superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions
# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# instruct the monitoring daemon where to send mail alerts
#MAILADDR root
# definitions of existing MD arrays
ARRAY /dev/md0 level=raid1 num-devices=2
UUID=35895acd:2fb31edb:54e62909:868bea54
ARRAY /dev/md1 level=raid1 num-devices=2
UUID=1adca022:9f6291e6:54e62909:868bea54
ARRAY /dev/md2 level=raid1 num-devices=2
UUID=5d97bf0e:67de158f:54e62909:868bea54
ARRAY /dev/md3 level=raid1 num-devices=2
UUID=9b4dc339:2454fb9a:54e62909:868bea54
# This file was auto-generated on Tue, 25 Nov 2008 06:06:09 +0000
# by mkconf $Id: mkconf 261 2006-11-09 13:32:35Z madduck $
#
kmux-host:~# more /etc/mdadm/kmux.conf
ARRAY /dev/md1000 level=raid1 num-devices=2 spares=1
UUID=5f91c408:bd95185c:54631573:9ffde20e
kmux-host:~#
--
Wilhelm
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-12-02 20:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-30 14:43 mdadm --incremental /dev/md?? instead of /dev/md/d?? Wilhelm Meier
2008-12-01 0:26 ` NeilBrown
2008-12-01 6:57 ` Wilhelm Meier
2008-12-02 5:22 ` Neil Brown
2008-12-02 20:39 ` Wilhelm Meier
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).