Mam testową macierz raid 5 składającą się z 4 dysków. Zakładam, że jeden dysk uległ awarii, a nie można go wymienić w rozsądnym czasie. Aby zapewnić bezpieczeństwo danych, chcę zmniejszyć ilość dysków pracujących w macierzy o jeden. Niestety, nie potrafię tego zrobić.
Cytat:root@dhcppc2:/mnt/raid5# mdadm --detail /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Tue Feb 7 22:34:12 2012
Raid Level : raid5
Array Size : 6285312 (5.99 GiB 6.44 GB)
Used Dev Size : 2095104 (2046.34 MiB 2145.39 MB)
Raid Devices : 4
Total Devices : 3
Persistence : Superblock is persistent
Update Time : Wed Feb 8 00:46:49 2012
State : clean, degraded
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 512K
Name : dhcppc2:0 (local to host dhcppc2)
UUID : 434d1c00:08d0fd8d:98096bdc:242c6ddf
Events : 264
Number Major Minor RaidDevice State
0 0 0 0 removed
1 8 33 1 active sync /dev/sdc1
3 8 49 2 active sync /dev/sdd1
4 8 65 3 active sync /dev/sde1
root@dhcppc2:/mnt/raid5#
Cytat:root@dhcppc2:/mnt/raid5# mdadm --grow /dev/md0 --raid-devices=3
mdadm: this change will reduce the size of the array.
use --grow --array-size first to truncate array.
e.g. mdadm --grow /dev/md0 --array-size 4190208
Cytat:root@dhcppc2:/mnt/raid5# mdadm --grow /dev/md0 --raid-devices=3
mdadm: Need to backup 3072K of critical section..
mdadm: /dev/md0: Cannot grow - need backup-file