Detecting array parameters

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

 



Hi,

if I understood it correctly, in order to detect
the several array parameters (number of disks, for
example), it is possible to use "mdadm -D /dev/mdX"
or to check the files in the corresponding /sys/block/...
/mdX/... files.

Now, assuming something needs to be done in scripts,
what would be the best way? Using "mdadm -D ... | grep"
(or "mdadm ... | gawk ...."), or to read the proper
files in /sys/block/md...?

Assuming the wanted information is available on both
sides, which does not seem always the case.

Thanks,

bye,

-- 

piergiorgio
--
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