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

Re: Missing devices on raid1 setup



On Wednesday 21 February 2007 14:43, martin f krafft wrote:
> also sprach José Pablo Fernández <pablo.fernandez@rs.com.ar> 
[2007.02.21.1836 +0100]:
> > > Have a look at what /usr/share/mdadm/mkconf outputs.
> >
> > There's no such file. I used apt-file to search for it and I've only got:
>
> Ah, you are still using sarge's mdadm then.

Yes, running Debian stable (Sarge) here, on the servers.

> Do
>
>   mv /etc/mdadm/mdadm.conf /etc/mdadm/mdadm.conf.old
>   echo DEVICE partitions > /etc/mdadm/mdadm.conf
>   mdadm -Es >> /etc/mdadm/mdadm.conf

The config file would end up being the same:

# mdadm -Es
ARRAY /dev/md0 level=raid1 num-devices=2 
UUID=a1a07d14:64ab7244:8a585e9b:fbee0505
   devices=/dev/sdb1,/dev/sda1
ARRAY /dev/md1 level=raid1 num-devices=2 
UUID=2e8d1e91:1db84b53:602c6a7d:b9fb162a
   devices=/dev/sdb2,/dev/sda2
ARRAY /dev/md2 level=raid1 num-devices=2 
UUID=7ed98d8a:e521f4af:145b85dc:91a91046
   devices=/dev/sdb3,/dev/sda3

# cat /etc/mdadm/mdadm.conf
DEVICE partitions
ARRAY /dev/md0 level=raid1 num-devices=2 
UUID=a1a07d14:64ab7244:8a585e9b:fbee0505
   devices=/dev/sda1,/dev/sdb1
ARRAY /dev/md1 level=raid1 num-devices=2 
UUID=2e8d1e91:1db84b53:602c6a7d:b9fb162a
   devices=/dev/sda2,/dev/sdb2
ARRAY /dev/md2 level=raid1 num-devices=2 
UUID=7ed98d8a:e521f4af:145b85dc:91a91046
   devices=/dev/sda3,/dev/sdb3

Thank you.
-- 
José Pablo Fernández
pablo.fernandez@rs.com.ar

PS: and the other command line gives the same except for the order (unless I 
am missing something): 

# mdadm --detail --scan
ARRAY /dev/md2 level=raid1 num-devices=2 
UUID=7ed98d8a:e521f4af:145b85dc:91a91046
   devices=/dev/sda3,/dev/sdb3
ARRAY /dev/md0 level=raid1 num-devices=2 
UUID=a1a07d14:64ab7244:8a585e9b:fbee0505
   devices=/dev/sda1,/dev/sdb1
ARRAY /dev/md1 level=raid1 num-devices=2 
UUID=2e8d1e91:1db84b53:602c6a7d:b9fb162a
   devices=/dev/sda2,/dev/sdb2



Reply to: