All of lore.kernel.org
 help / color / mirror / Atom feed
* Script to save array info
@ 2012-06-20 23:21 Wakko Warner
  2012-06-21  7:20 ` Phil Turmel
  2012-06-21 14:26 ` Jose Manuel dos Santos Calhariz
  0 siblings, 2 replies; 5+ messages in thread
From: Wakko Warner @ 2012-06-20 23:21 UTC (permalink / raw)
  To: linux-raid

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.

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

end of thread, other threads:[~2012-06-22 11:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-20 23:21 Script to save array info Wakko Warner
2012-06-21  7:20 ` Phil Turmel
2012-06-21 14:26 ` Jose Manuel dos Santos Calhariz
2012-06-21 21:37   ` Wakko Warner
2012-06-22 11:50     ` Jose Manuel dos Santos Calhariz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.