Istvan Gabor
There is another strange problem: ff I assemble an array it gets mounted automatically. Why? In case of a degraded array with one drive only this can ruin the array. Why is the array mounted automatically upon assembly? It should be only mounted (automatically) on running mount -a and at boot.
OK, thank you all for answering this. I have modified fstab and changed mount options to noauto for this array. I still can't assemble the array. In the meantime I have tried to make /dev/sda7 and /dev/sdb7 to 2 separate arrays. I assembled /dev/md7 with only /dev/sda7, then removed one drive and stopped the array: mdadm -A -R /dev/md7 /dev/sda7 mdadm -G -f -n 1 /dev/md7 mdadm -S /dev/md7 Then I repeated the above with /dev/sdb7: mdadm -A -R /dev/md7 /dev/sdb7 mdadm -G -f -n 1 /dev/md7 mdadm -S /dev/md7 Now /dev/sda7 and /dev/sdb7 should be only members of two different arrays, shouldn't they? mdadm -E gives: mdadm -E /dev/sda7 /dev/sda7: Magic : a92b4efc Version : 1.0 Feature Map : 0x0 Array UUID : 64e23ea9:7dcb9ee2:7bca71bd:248cc5cf Name : pc:7 (local to host pc) Creation Time : Sat Jul 13 22:57:34 2013 Raid Level : raid1 Raid Devices : 1 Avail Dev Size : 62910328 (30.00 GiB 32.21 GB) Array Size : 31455164 (30.00 GiB 32.21 GB) Super Offset : 62910456 sectors Unused Space : before=0 sectors, after=128 sectors State : clean Device UUID : 8098481a:b486ae7b:77522030:9d244d53 Update Time : Wed Jul 27 01:05:19 2016 Checksum : c6d8fd49 - correct Events : 78964 Device Role : Active device 0 Array State : A ('A' == active, '.' == missing, 'R' == replacing) mdadm -E /dev/sdb7 /dev/sdb7: Magic : a92b4efc Version : 1.0 Feature Map : 0x0 Array UUID : 64e23ea9:7dcb9ee2:7bca71bd:248cc5cf Name : pc:7 (local to host pc) Creation Time : Sat Jul 13 22:57:34 2013 Raid Level : raid1 Raid Devices : 1 Avail Dev Size : 62910328 (30.00 GiB 32.21 GB) Array Size : 31455164 (30.00 GiB 32.21 GB) Super Offset : 62910456 sectors Unused Space : before=0 sectors, after=128 sectors State : clean Device UUID : ac43fabc:cb5f2f2a:00887c0f:b34fc579 Update Time : Wed Jul 27 00:40:57 2016 Checksum : 1de2dc67 - correct Events : 78951 Device Role : Active device 0 Array State : A ('A' == active, '.' == missing, 'R' == replacing) mdadm -Q gives: mdadm -Q /dev/sda7 /dev/sda7: is not an md array /dev/sda7: device 2 in 1 device inactive raid1 array. Use mdadm --examine for more detail. mdadm -Q /dev/sdb7 /dev/sdb7: is not an md array /dev/sdb7: device 3 in 1 device inactive raid1 array. Use mdadm --examine for more detail. I don't know how a device can be device 2 or device 3 in a one device array but it looks that both /dev/sda7 and /dev/sdb7 are part of a one device array. Then I assemble /dev/sda7 to an array /dev/md117: mdadm -A /dev/md117 /dev/sda7 mdadm: /dev/md117 has been started with 1 drive. So far it's OK. Then I try to assemble /dev/sdb7 to /dev/md118: mdadm -A /dev/md118 /dev/sdb7 mdadm: Found some drive for an array that is already active: /dev/md117 mdadm: giving up. Why doesn't it work? What is the meaning of the error message? How could I fix this? Should I go to the raid mailing list with this? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org