Mein RAID1 war mal wieder nicht komplett
Da beide Platten verschlüsselt sind, werden diese erst mal entsperrt.
cryptsetup open /dev/sda1 raid_pool0
cryptsetup open /dev/sdb1 raid_pool1
Danach geht es weiter...
Nach fdisk -l
Disk /dev/mapper/raid_pool0: 1,8 TiB, 2000395771392 bytes, 3907022991 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/md0: 1,8 TiB, 2000260497408 bytes, 3906758784 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/raid_pool1: 1,8 TiB, 2000395771392 bytes, 3907022991 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Mir fehlt das Device /dev/md1 Warum??? Keine Ahnung!!!
Schauen wir mal nach, was noch lebt.
root@rockpro64v_2_1:~# mdadm --examine --scan
ARRAY /dev/md/0 metadata=1.2 UUID=33ac7964:473fe590:3682dd85:a979b336 name=rockpro64v_2_1:0
So, Device md0 lebt
Wir mounten das noch lebende Laufwerk.
mount /dev/md0 /mnt/raid
Danach geschaut, ob mit NFS die Daten erreichbar sind. Alles OK.
Kurz checken
root@rockpro64v_2_1:~# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 dm-0[2]
1953379392 blocks super 1.2 [2/1] [U_]
bitmap: 7/15 pages [28KB], 65536KB chunk
unused devices: <none>
Da sieht man das ein Laufwerk fehlt. Dann wollen wir mal adden
root@rockpro64v_2_1:~# mdadm /dev/md0 --manage --add /dev/mapper/raid_pool1
mdadm: re-added /dev/mapper/raid_pool1
Jetzt läuft das Recovery
root@rockpro64v_2_1:~# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 dm-1[1] dm-0[2]
1953379392 blocks super 1.2 [2/1] [U_]
[>....................] recovery = 1.2% (25185728/1953379392) finish=604.2min speed=53184K/sec
bitmap: 7/15 pages [28KB], 65536KB chunk
unused devices: <none>
Und Fertig
root@rockpro64v_2_1:~# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 dm-1[1] dm-0[2]
1953379392 blocks super 1.2 [2/2] [UU]
bitmap: 0/15 pages [0KB], 65536KB chunk
unused devices: <none>
Daten kontrolliert, noch alles da. Puuuuuh! Aber, warum das Ganze???? Ich bin übrigens jetzt wieder auf Kamils Image und dabei ist mir aufgefallen, das das Recovery wesentlich schneller ging als bei meinem letzten Versuch. Hmm???????
Zum Schluß noch was aus dem dmesg
[ 8.612039] ata1: SATA max UDMA/133 abar m512@0xfa010000 port 0xfa010100 irq 231
[ 8.612047] ata2: SATA max UDMA/133 abar m512@0xfa010000 port 0xfa010180 irq 231
[ 9.085894] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 9.123159] ata1.00: ATA-10: ST2000LM015-2E8174, SDM1, max UDMA/133
[ 9.123169] ata1.00: 3907029168 sectors, multi 16: LBA48 NCQ (depth 32), AA
[ 9.172776] ata1.00: configured for UDMA/133
[ 9.173235] scsi 0:0:0:0: Direct-Access ATA ST2000LM015-2E81 SDM1 PQ: 0 ANSI: 5
[ 9.173782] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[ 9.173792] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 9.173889] sd 0:0:0:0: [sda] Write Protect is off
[ 9.173896] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 9.173933] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 9.239218] sda: sda1
[ 9.240144] sd 0:0:0:0: [sda] Attached SCSI disk
[ 9.649853] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 9.687095] ata2.00: ATA-10: ST2000LM015-2E8174, SDM1, max UDMA/133
[ 9.687104] ata2.00: 3907029168 sectors, multi 16: LBA48 NCQ (depth 32), AA
[ 9.696476] NFSD: starting 45-second grace period (net f00000a1)
[ 9.736698] ata2.00: configured for UDMA/133
[ 9.737137] scsi 1:0:0:0: Direct-Access ATA ST2000LM015-2E81 SDM1 PQ: 0 ANSI: 5
[ 9.739557] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[ 9.739568] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[ 9.739592] sd 1:0:0:0: [sdb] Write Protect is off
[ 9.739597] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 9.739631] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 9.803472] sdb: sdb1
[ 9.804397] sd 1:0:0:0: [sdb] Attached SCSI disk
[ 22.550770] rk_gmac-dwmac fe300000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
[ 22.550820] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 42.132977] device-mapper: uevent: version 1.0.3
[ 42.133199] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com
[ 141.047476] md/raid1:md0: active with 1 out of 2 mirrors
[ 141.061140] md0: detected capacity change from 0 to 2000260497408
[ 522.183161] EXT4-fs (md0): mounted filesystem with ordered data mode. Opts: (null)
[ 559.062705] nfsd: last server has exited, flushing export cache
[ 559.084203] NFSD: starting 45-second grace period (net f00000a1)
[ 840.473519] md: recovery of RAID array md0
[ 1141.650170] md: md0: recovery done.