Hodžův blog

26 Lis

HowTo fix a mdadm problem auto-read-only or resync=PENDING

Mdadm problem after new install of Debian GNU Linux.
root@n40l:~# cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4]
md3 : active (auto-read-only) raid5 sdc1[0] sde1[2] sdd1[1]
3907025920 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU]
resync=PENDING
md2 : active raid1 sda3[0] sdb3[2]
235885432 blocks super 1.2 [2/2] [UU]
md1 : active (auto-read-only) raid1 sda2[0] sdb2[2]
7811060 blocks super 1.2 [2/2] [UU]
md0 : active raid1 sda1[0] sdb1[2]
498676 blocks super 1.2 [2/2] [UU]
unused devices:

To fix this issue run simple command
mdadm --readwrite /dev/md3

Replace /dev/md3 with your md number and check /proc/mdstat

root@n40l:~# cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4]
md3 : active raid5 sdc1[0] sde1[2] sdd1[1]
3907025920 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU]
[>....................] resync = 1.6% (31362056/1953512960) finish=1984.3min speed=16132K/sec
md2 : active raid1 sda3[0] sdb3[2]
235885432 blocks super 1.2 [2/2] [UU]
md1 : active (auto-read-only) raid1 sda2[0] sdb2[2]
7811060 blocks super 1.2 [2/2] [UU]
md0 : active raid1 sda1[0] sdb1[2]
498676 blocks super 1.2 [2/2] [UU]
unused devices:

Leave a Reply

Hodžův blog is is proudly powered by Wordpress and the Magellan Theme