From: Wakko Warner <wakko@animx.eu.org>
To: linux-raid@vger.kernel.org
Subject: Script to save array info
Date: Wed, 20 Jun 2012 19:21:49 -0400 [thread overview]
Message-ID: <20120620232149.GA7767@animx.eu.org> (raw)
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.
next reply other threads:[~2012-06-20 23:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-20 23:21 Wakko Warner [this message]
2012-06-21 7:20 ` Script to save array info 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120620232149.GA7767@animx.eu.org \
--to=wakko@animx.eu.org \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).