Script to save array info

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

 



After reading some of the stories about lost metadata, I was wondering if
anyone had a script that would output the member info for each device with
the device's physical serial number.

For a crude one I did this while in /sys/block:
for x in sd*;do
	echo /dev/$x
	/lib/udev/scsi_id --export --page=0x80 --whitelisted /dev/$x
	mdadm -E /dev/$x
done

And saved the output.  It works for me because all but 3 of my raid members
are full disks.

-- 
 Microsoft has beaten Volkswagen's world record.  Volkswagen only created 21
 million bugs.
--
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