Re: cpu consumption

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux