Am o mare problema pe un Debian Sarge ! Am instalat de la zero pe un singur hard SATA intr-o matrice raid1 cu alte 3 deviceuri missing pentru a le putea adauga ulterior. Adaug al doilea hard fizic in sistem, sfdisk -d /dev/sda | sfdisk /dev/sdb, dupa care mdadm /dev/md0 --add /dev/sdb2.
gw:~# cat /proc/partitions major minor #blocks name 8 0 195360984 sda 8 1 1028128 sda1 8 2 4152802 sda2 8 3 63392490 sda3 8 4 1 sda4 8 5 63392458 sda5 8 6 63392458 sda6 8 16 195360984 sdb 8 17 1028128 sdb1 8 18 4152802 sdb2 8 19 63392490 sdb3 8 20 1 sdb4 8 21 63392458 sdb5 8 22 63392458 sdb6 9 0 4152704 md0 9 1 63392384 md1 9 2 63392384 md2 9 3 63392384 md3 gw:~# cat /proc/mdstat Personalities : [raid0] [raid1] [raid5] md3 : active raid1 sda6[0] 63392384 blocks [4/1] [U___] md2 : active raid1 sda5[0] 63392384 blocks [4/1] [U___] md1 : active raid1 sda3[0] 63392384 blocks [4/1] [U___] md0 : active raid1 sdb2[1] sda2[0] 4152704 blocks [4/2] [UU__] unused devices: <none> Inainte de reboot totul e ok, mdadm -E pe deviceuri mi le arata corect : gw:~# mdadm -E /dev/sda2 /dev/sda2: Magic : a92b4efc Version : 00.90.00 UUID : f76c7992:a621bb73:5aa40bd3:89fe2ddf Creation Time : Sun Jan 15 23:19:50 2006 Raid Level : raid1 Raid Devices : 4 Total Devices : 2 Preferred Minor : 0 Update Time : Mon Jan 16 07:53:45 2006 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 2 Spare Devices : 0 Checksum : b33204b9 - correct Events : 0.6463 Number Major Minor RaidDevice State this 0 8 2 0 active sync /dev/sda2 0 0 8 2 0 active sync /dev/sda2 1 1 8 18 1 active sync /dev/sdb2 2 2 0 0 2 faulty removed 3 3 0 0 3 faulty removed gw:~# mdadm -E /dev/sdb2 /dev/sdb2: Magic : a92b4efc Version : 00.90.00 UUID : f76c7992:a621bb73:5aa40bd3:89fe2ddf Creation Time : Sun Jan 15 23:19:50 2006 Raid Level : raid1 Raid Devices : 4 Total Devices : 2 Preferred Minor : 0 Update Time : Mon Jan 16 07:54:10 2006 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 2 Spare Devices : 0 Checksum : b33204f4 - correct Events : 0.6471 Number Major Minor RaidDevice State this 1 8 18 1 active sync /dev/sdb2 0 0 8 2 0 active sync /dev/sda2 1 1 8 18 1 active sync /dev/sdb2 2 2 0 0 2 faulty removed 3 3 0 0 3 faulty removed gw:~# mdadm -D /dev/md0 /dev/md0: Version : 00.90.01 Creation Time : Sun Jan 15 23:19:50 2006 Raid Level : raid1 Array Size : 4152704 (3.96 GiB 4.25 GB) Device Size : 4152704 (3.96 GiB 4.25 GB) Raid Devices : 4 Total Devices : 2 Preferred Minor : 0 Persistence : Superblock is persistent Update Time : Mon Jan 16 07:55:10 2006 State : clean, degraded Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : f76c7992:a621bb73:5aa40bd3:89fe2ddf Events : 0.6479 Number Major Minor RaidDevice State 0 8 2 0 active sync /dev/sda2 1 8 18 1 active sync /dev/sdb2 2 0 0 - removed 3 0 0 - removed DAR DUPA REBOOT NU SE PASTREAZA CONFIGURATIA, in sensul ca : gw:~# cat /proc/mdstat Personalities : [raid0] [raid1] [raid5] md3 : active raid1 sda6[0] 63392384 blocks [4/1] [U___] md2 : active raid1 sda5[0] 63392384 blocks [4/1] [U___] md1 : active raid1 sda3[0] 63392384 blocks [4/1] [U___] md0 : active raid1 sda2[0] 4152704 blocks [4/1] [U___] unused devices: <none> gw:~# mdadm -E /dev/sda2 /dev/sda2: Magic : a92b4efc Version : 00.90.00 UUID : f76c7992:a621bb73:5aa40bd3:89fe2ddf Creation Time : Sun Jan 15 23:19:50 2006 Raid Level : raid1 Raid Devices : 4 Total Devices : 1 Preferred Minor : 0 Update Time : Mon Jan 16 07:58:49 2006 State : clean Active Devices : 1 Working Devices : 1 Failed Devices : 3 Spare Devices : 0 Checksum : b33206a0 - correct Events : 0.6567 Number Major Minor RaidDevice State this 0 8 2 0 active sync /dev/sda2 0 0 8 2 0 active sync /dev/sda2 1 1 0 0 1 faulty removed 2 2 0 0 2 faulty removed 3 3 0 0 3 faulty removed gw:~# mdadm -E /dev/sdb2 /dev/sdb2: Magic : a92b4efc Version : 00.90.00 UUID : f76c7992:a621bb73:5aa40bd3:89fe2ddf Creation Time : Sun Jan 15 23:19:50 2006 Raid Level : raid1 Raid Devices : 4 Total Devices : 2 Preferred Minor : 0 Update Time : Mon Jan 16 07:56:31 2006 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 2 Spare Devices : 0 Checksum : b33205bd - correct Events : 0.6501 Number Major Minor RaidDevice State this 1 8 18 1 active sync /dev/sdb2 0 0 8 2 0 active sync /dev/sda2 1 1 8 18 1 active sync /dev/sdb2 2 2 0 0 2 faulty removed 3 3 0 0 3 faulty removed ciudat e ca mdadm -E /dev/sdb2 il descrie corect, ca fiind dintr-o matrcie de 4/2 dar /dev/sda2 nu are salvate corect setarile ! -- All parts should go together without forcing. "You must remember that the parts you are reassembling were disassembled by you. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975 _______________________________________________ RLUG mailing list RLUG@lists.lug.ro http://lists.lug.ro/mailman/listinfo/rlug