mdamd problem
lord_Niedzwiedz
sir_Misiek w o2.pl
Wto, 3 Lis 2015, 16:12:11 CET
RAID 1.
Wypadła mi jedna partycja z macierzy. Macierz nie chciała się
odbudowywać. Wymieniłem dysk na którym były bad sektory.
Dalej nie chce mi się odbudować. md1 oraz md3 idą.
Poniżej informacje z rekonstrukcji.
[root w dns2 ~]# cat /proc/mdstat
Personalities : [raid1]
md3 : active raid1 sda3[1]
882570816 blocks [2/1] [_U]
md1 : active raid1 sda1[1]
7815488 blocks [2/1] [_U]
md2 : active raid1 sda2[1]
86373376 blocks [2/1] [_U]
unused devices: <none>
[root w dns2 ~]# df -h
System plików rozm. użyte dost. %uż. zamont. na
/dev/md2 81G 45G 33G 58% /
run 2,5G 312K 2,5G 1% /run
devtmpfs 2,5G 8,0K 2,5G 1% /dev
/dev/md3 829G 561G 227G 72% /var/ftp
[root w dns2 ~]# cfdisk
[root w dns2 ~]# mdadm --manage /dev/md1 --add /dev/sdb1
mdadm: added /dev/sdb1
[root w dns2 ~]# cat /proc/mdstat
Personalities : [raid1]
md3 : active raid1 sda3[1]
882570816 blocks [2/1] [_U]
md1 : active raid1 sdb1[2] sda1[1]
7815488 blocks [2/1] [_U]
[>....................] recovery = 0.1% (13056/7815488)
finish=19.8min speed=6528K/sec
md2 : active raid1 sda2[1]
86373376 blocks [2/1] [_U]
unused devices: <none>
[root w dns2 ~]# cat /proc/mdstat
Personalities : [raid1]
md3 : active raid1 sda3[1]
882570816 blocks [2/1] [_U]
md1 : active raid1 sdb1[0] sda1[1]
7815488 blocks [2/2] [UU]
md2 : active raid1 sda2[1]
86373376 blocks [2/1] [_U]
unused devices: <none>
[root w dns2 ~]# mdadm --manage /dev/md2 --add /dev/sdb2
mdadm: added /dev/sdb2
[root w dns2 ~]# cat /proc/mdstat
Personalities : [raid1]
md3 : active raid1 sda3[1]
882570816 blocks [2/1] [_U]
md1 : active raid1 sdb1[0] sda1[1]
7815488 blocks [2/2] [UU]
md2 : active raid1 sdb2[2] sda2[1]
86373376 blocks [2/1] [_U]
[>....................] recovery = 0.5% (510272/86373376)
finish=254.2min speed=5627K/sec
unused devices: <none>
[root w dns2 ~]# cat /proc/mdstat
Personalities : [raid1]
md3 : active raid1 sda3[1]
882570816 blocks [2/1] [_U]
md1 : active raid1 sdb1[0] sda1[1]
7815488 blocks [2/2] [UU]
md2 : active raid1 sdb2[2](S) sda2[1]
86373376 blocks [2/1] [_U]
unused devices: <none>
[root w dns2 ~]# mdadm --detail /dev/md2
/dev/md2:
Version : 0.90
Creation Time : Sat Nov 8 14:06:55 2008
Raid Level : raid1
Array Size : 86373376 (82.37 GiB 88.45 GB)
Used Dev Size : 86373376 (82.37 GiB 88.45 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 2
Persistence : Superblock is persistent
Update Time : Tue Nov 3 16:08:49 2015
State : clean, degraded
Active Devices : 1
Working Devices : 2
Failed Devices : 0
Spare Devices : 1
UUID : ad96c3c7:6fb5b23a:0be776df:a7034ab0
Events : 0.6226541
Number Major Minor RaidDevice State
0 0 0 0 removed
1 8 2 1 active sync /dev/sda2
2 8 18 - spare /dev/sdb2
Więcej informacji o liście pld-users-pl