linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* md device naming question
@ 2007-09-19  8:10 maximilian attems
  2007-09-24  7:12 ` Nix
  0 siblings, 1 reply; 3+ messages in thread
From: maximilian attems @ 2007-09-19  8:10 UTC (permalink / raw)
  To: linux-raid

hello,

working on initramfs i'd be curious to know what the /sys/block
entry of a /dev/md/NN device is. have a user request to support
it and no handy box using it.

i presume it may also be /sys/block/mdNN ?


thanks

-- 
maks

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: md device naming question
  2007-09-19  8:10 md device naming question maximilian attems
@ 2007-09-24  7:12 ` Nix
  2007-09-25  4:49   ` Michal Soltys
  0 siblings, 1 reply; 3+ messages in thread
From: Nix @ 2007-09-24  7:12 UTC (permalink / raw)
  To: maximilian attems; +Cc: linux-raid

On 19 Sep 2007, maximilian attems said:

> hello,
>
> working on initramfs i'd be curious to know what the /sys/block
> entry of a /dev/md/NN device is. have a user request to support
> it and no handy box using it.
>
> i presume it may also be /sys/block/mdNN ?

That's it, e.g. /sys/block/md0. Notable subdirectories include holders/
(block devices within the array, more than one if e.g. LVM is in use),
slaves/ (block devices making up the array) and md/ (RAID-specific
state).

-- 
`Some people don't think performance issues are "real bugs", and I think 
such people shouldn't be allowed to program.' --- Linus Torvalds

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: md device naming question
  2007-09-24  7:12 ` Nix
@ 2007-09-25  4:49   ` Michal Soltys
  0 siblings, 0 replies; 3+ messages in thread
From: Michal Soltys @ 2007-09-25  4:49 UTC (permalink / raw)
  To: linux-raid

Nix wrote:
> On 19 Sep 2007, maximilian attems said:
> 
>>
>> i presume it may also be /sys/block/mdNN ?
> 
> That's it, e.g. /sys/block/md0. Notable subdirectories include holders/
> (block devices within the array, more than one if e.g. LVM is in use),
> 

Also, if you mount the raid as a partitionable one, /sys/block/md_dNN ;

mdadm has pretty decent handling of all the names (check out auto options, 
both usable in mdadm.conf and from command line). Also from my experience, 
if you try to use udev on partitionable arrays, partition related uevents 
will be delayed until next mdadm invocation, or some partition related 
command (like fdisk).



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-09-25  4:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-19  8:10 md device naming question maximilian attems
2007-09-24  7:12 ` Nix
2007-09-25  4:49   ` Michal Soltys

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).