Re: [PATCH] md: register new md sysfs file 'uuid' read-only

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

 



Hi Neil,

I must have overseen your answer. We want to use as less mdadm as
possible - especially for simple checking stuff. The kernel knows best.
"mdadm -D" reads the data from disk. This means additional disk access.
It is also possible that this command triggers superblock updates.
Simple checking stuff shouldn't have to use disk access.

We are planning to use MD RAID a little bit different with e.g. 100 MD
arrays. Searching for a particular UUID in this bunch of MD devices can
be difficult without this patch. This is how the kernel represents
UUIDs. Conversion can be done in user space.

If you like it better in the xxxxxxxx:xxxxxxxx:xxxxxxxx:xxxxxxxx format,
I can resend the patch in that format.

It simplifies our checking magic not to rely on udev symlinks and to ask
the kernel for the cached UUID.

Btw.: We did an "Assemble-Resize-Stop, Assemble-Resize-Stop, ..."-Test
with "--assume-clean" and the second resize doesn't work. With
"Assemble-Resize-Detail-Stop" it works.

Cheers,
Sebastian


On 03.10.2012 00:30, NeilBrown wrote:
> On Tue, 2 Oct 2012 15:42:10 +0200 Sebastian Riemer
> <sebastian.riemer@xxxxxxxxxxxxxxxx> wrote:
>
>> Report the UUID of the MD array in the following format:
>> xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
>>
>> This is useful if you don't want to wait for udev to
>> identify your MD array.
>
> If you don't want to wait for udev, run "mdadm -D --export
/dev/mdwhatever"
> and extract the uuid from that.
>
> And the UUID format you mention is different from the format used by
mdadm,
> which makes me like the patch even less.
>
>
> What problem are you trying to solve here?
>
> NeilBrown



--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux