linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mitchell Laks <mlaks@verizon.net>
To: linux-raid@vger.kernel.org
Subject: Re: cpu consumption
Date: Tue, 24 Jan 2006 01:03:17 -0500	[thread overview]
Message-ID: <200601240103.18066.mlaks@verizon.net> (raw)
In-Reply-To: <17365.39287.284592.656226@cse.unsw.edu.au>

On Monday 23 January 2006 10:05 pm, Neil Brown wrote:

>
> This is a poor choice for an mdadm.conf file.
> The device names of 'SCSI' devices are prone to change with changing
> system configuration.  If something disappears or is added, all the
> names could change, and this will cease to work.
> I would strongly recommend putting UUIDs in there.
>
>   echo 'DEVICE /dev/sd[a-l]' > /etc/mdadm/mdadm.conf
>   mdadm -Ds | grep -v devices >> /etc/mdadm/mdadm.conf
This last line gives nothing because  -v switch selects lines not having 
devices, but the other line has num-devices which also matches:
ie
C1:~# mdadm -Ds
ARRAY /dev/md3 level=raid1 num-devices=2 
UUID=209ab7c8:d37fee49:3a63af71:99193e75
   devices=/dev/sde1
ARRAY /dev/md2 level=raid1 num-devices=2 
UUID=03dc44fa:606063e2:83e69037:50d00eb5
   devices=/dev/sdd1
ARRAY /dev/md1 level=raid1 num-devices=2 
UUID=88433668:ffa6265d:5ed3569b:9ef1d0f8
   devices=/dev/sdc1
ARRAY /dev/md0 level=raid1 num-devices=2 
UUID=5f001583:253365c1:1092ccdf:b052e938
   devices=/dev/sdb1,/dev/sda1

thus 
C1:~# mdadm -Ds|grep -v devices
C1:~#   

while you must want
C1:~# mdadm -Ds |grep  num-devices
ARRAY /dev/md3 level=raid1 num-devices=2 
UUID=209ab7c8:d37fee49:3a63af71:99193e75
ARRAY /dev/md2 level=raid1 num-devices=2 
UUID=03dc44fa:606063e2:83e69037:50d00eb5
ARRAY /dev/md1 level=raid1 num-devices=2 
UUID=88433668:ffa6265d:5ed3569b:9ef1d0f8
ARRAY /dev/md0 level=raid1 num-devices=2 
UUID=5f001583:253365c1:1092ccdf:b052e938

(excuse the  line wrap by kmail)

thanks
Mitchell Laks




>
> NeilBrown
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2006-01-24  6:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-23 22:28 cpu consumption Gilberto Diaz
2006-01-23 22:40 ` Gordon Henderson
2006-01-24 12:13   ` Gilberto Diaz
2006-01-23 23:08 ` Guy
2006-01-24  3:05 ` Neil Brown
2006-01-24  6:03   ` Mitchell Laks [this message]

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=200601240103.18066.mlaks@verizon.net \
    --to=mlaks@verizon.net \
    --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).