I launch a mdadm grow to expand my filesystem but I forget --backup-file
I have my server running and one UPS.
Code: Select all
pk25.com:~# mdadm --manage /dev/md0 --add /dev/sde1
mdadm: added /dev/sde1
pk25.com:~# mdadm --grow --raid-devices=5 /dev/md0
mdadm: Need to backup 3072K of critical section..
pk25.com:~# mdadm --grow --raid-devices=5 --backup-file=/root/md0-grow.bak /dev/md0
mdadm: /dev/md0 is performing resync/recovery and cannot be reshaped
pk25.com:~# mdadm -D /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Fri Oct 21 14:43:37 2011
Raid Level : raid5
Array Size : 5860536576 (5589.04 GiB 6001.19 GB)
Used Dev Size : 1953512192 (1863.01 GiB 2000.40 GB)
Raid Devices : 5
Total Devices : 5
Persistence : Superblock is persistent
Update Time : Sat Feb 27 10:40:40 2016
State : clean, reshaping
Active Devices : 5
Working Devices : 5
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 256K
Reshape Status : 0% complete
Delta Devices : 1, (4->5)
Name : servidor1:0 (local to host servidor1)
UUID : 2eac56e3:392105ed:b50f0d05:e30d8251
Events : 81959
Number Major Minor RaidDevice State
7 8 97 0 active sync /dev/sdg1
5 8 33 1 active sync /dev/sdc1
3 8 49 2 active sync /dev/sdd1
4 8 81 3 active sync /dev/sdf1
6 8 65 4 active sync /dev/sde1
pk25.com:~# mdadm --backup-file=/root/md0-grow.bak /dev/md0
mdadm: --backup-file does not set the mode, and so cannot be the first option.
Personalities : [raid6] [raid5] [raid4] [faulty] [raid1] [linear] [multipath] [raid0] [raid10]
md0 : active raid5 sde1[6] sdg1[7] sdf1[4] sdd1[3] sdc1[5]
5860536576 blocks super 1.2 level 5, 256k chunk, algorithm 2 [5/5] [UUUUU]
[>....................] reshape = 0.0% (0/1953512192) finish=15263133.3min speed=0K/sec
unused devices: <none>
And now I have my server on resync a lot of time.
Solved!! uf uf now is make a reshape.
pk25.com:/var/log# mdadm --grow --continue --backup-file=/root/md1-grow.bak /dev/md0
pk25.com:~# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4] [faulty] [raid1] [linear] [multipath] [r aid0] [raid10]
md0 : active raid5 sde1[6] sdg1[7] sdf1[4] sdd1[3] sdc1[5]
5860536576 blocks super 1.2 level 5, 256k chunk, algorithm 2 [5/5] [UUUUU]
[>....................] reshape = 0.2% (4334592/1953512192) finish=971.2 min speed=33448K/sec
unused devices: <none>
http://www.spinics.net/lists/raid/msg50066.html
Regards!