Re: list of devices that belong to an array

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

 



On Friday December 22, Don_Hiatt@xxxxxxxxxxxxxx wrote:
> First off, Merry Christmas everyone! :)

And to you.

> 
> Secondly, given a device that is part of an array, is there a way to figure out
> all the other components if you are using the 1.2 superblock?

uuid=`mdadm -Eb $DEV | sed -ne 's/.* \(UUID=[^ ]*\).*/\1/p'`
mdadm -Esv | grep -B1 $uuid | grep devices=

> 
> With SB=0.90, you could issue a "--examine"  and it would report all the other
> devices (in the following example, that would be /dev/sata[1-4]). However, with
> SB=1.2 (included below) you aren't so lucky. :)

The information you get with 0.90 is the names the devices had last
time the array was assembled, which might still be correct, or might
not.  Unreliable information can be worse than no information.

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