linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Max Waterman <davidmaxwaterman@fastmail.co.uk>
To: linux-raid maillist <linux-raid@vger.kernel.org>
Subject: Re: Any hope for a 27 disk RAID6+1HS array with four disks reporting "No md superblock detected"?
Date: Mon, 09 Feb 2009 13:47:23 +0200	[thread overview]
Message-ID: <499017CB.30307@fastmail.co.uk> (raw)
In-Reply-To: <9B27D278-ED85-498A-8EF6-DDB7EFB103F7@unh.edu>

Thomas Baker wrote:
>
> On Feb 6, 2009, at 11:05 PM, Mr. James W. Laferriere wrote:
>
>>     Hello Neil ,  In this thread you mention a (I think) script named 
>> examinRAIDDisks .
>>     Is this available someplace ?
>>     I've searched the archive & it does not appear to be mentioned 
>> anywhere but this thread .
>>         Tia ,  JimL
>
> It's just a script I wrote that runs mdadm -E on all my disks so I 
> don't have to keep typing all those disk names:
>
> #!/bin/csh -x
>
> mdadm -E \
> /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1 /dev/sdg1 /dev/sdh1 \
> /dev/sdi1 /dev/sdj1 /dev/sdk1 /dev/sdl1 /dev/sdm1 /dev/sdn1 /dev/sdo1 \
> /dev/sdp1 /dev/sdq1 /dev/sdr1 /dev/sds1 /dev/sdt1 /dev/sdu1 /dev/sdv1 \
> /dev/sdw1 /dev/sdx1 /dev/sdy1 /dev/sdz1 /dev/sdaa1 /dev/sdab1 /dev/sdac1
I'm sure most people know this (and I already replied privately), but I 
just love these features of 'the' (most) shell, so I figured I'd share...

I'd guess these produce identical arg lists :

The shell will expand the args, match them to files, and complain if one 
doesn't exist...

$ echo /dev/sd[b-z]1 /dev/sba[a-c]1

The shell will just expand the args, not checking if a file exists with 
the same name :

$ echo /dev/sd{b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ab,ac}1
/dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1 /dev/sdg1 /dev/sdh1 
/dev/sdi1 /dev/sdj1 /dev/sdk1 /dev/sdl1 /dev/sdm1 /dev/sdn1 /dev/sdo1 
/dev/sdp1 /dev/sdq1 /dev/sdr1 /dev/sds1 /dev/sdt1 /dev/sdu1 /dev/sdv1 
/dev/sdw1 /dev/sdx1 /dev/sdy1 /dev/sdz1 /dev/sdaa1 /dev/sdab1 /dev/sdac1

ie, this will also work :

$ echo max was {here,there,everywhere}

irrespective of any files that may or may not exist;
...but this might be a surprise :

$ echo /dev/sd[abcd]1
/dev/sda1
$ echo /dev/sd[bcd]1
/dev/sd[bcd]1

I only have the one drive (sda) on this computer, so 'sa[abcd]1' only 
matched one drive. The unexpected bit is that the shell passed on the 
arg 'as is' when it didn't match any file (IIRC that's different for 
csh, which I notice you're using).

As ever, YMMV.

Max.


  reply	other threads:[~2009-02-09 11:47 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-04 19:27 Any hope for a 27 disk RAID6+1HS array with four disks reporting "No md superblock detected"? Thomas J. Baker
2009-02-04 20:50 ` Joe Landman
2009-02-04 21:03   ` Thomas J. Baker
2009-02-04 21:17     ` Thomas J. Baker
2009-02-05 18:49     ` Bill Davidsen
2009-02-05 18:59       ` Thomas J. Baker
2009-02-05 23:57         ` Bill Davidsen
2009-02-06  0:08           ` Thomas Baker
2009-02-06  5:14 ` Neil Brown
2009-02-06 20:32   ` Thomas J. Baker
2009-02-06 21:01     ` NeilBrown
2009-02-06 21:47       ` Thomas J. Baker
2009-02-07  2:09         ` NeilBrown
2009-02-09 14:48           ` Thomas J. Baker
2009-02-10 16:58             ` Nagilum
2009-02-07  4:05   ` Mr. James W. Laferriere
2009-02-08 22:02     ` Thomas Baker
2009-02-09 11:47       ` Max Waterman [this message]
2009-02-10  8:55         ` Luca Berra

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=499017CB.30307@fastmail.co.uk \
    --to=davidmaxwaterman@fastmail.co.uk \
    --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).