From: Phil Turmel <philip@turmel.org>
To: linux-raid@vger.kernel.org
Subject: Re: Script to save array info
Date: Thu, 21 Jun 2012 09:20:47 +0200 [thread overview]
Message-ID: <4FE2CB4F.4080106@turmel.org> (raw)
In-Reply-To: <20120620232149.GA7767@animx.eu.org>
On 06/21/2012 01:21 AM, Wakko Warner wrote:
> 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.
You might try "lsdrv"[1]. It reports the entire block storage tree
starting from real devices with serial numbers. I tuck away a copy any
time I change a server's drive setup.
Phil
[1] http://github.com/pturmel/lsdrv
next prev parent reply other threads:[~2012-06-21 7:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-20 23:21 Script to save array info Wakko Warner
2012-06-21 7:20 ` Phil Turmel [this message]
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=4FE2CB4F.4080106@turmel.org \
--to=philip@turmel.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 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.