Linux中软RAID常见问题解决
导致丢失.
[root@fc5 mdadm-2.6.3]# ./mdadm /dev/md0 --grow --size=102400 [root@fc5 mdadm-2.6.3]# ./mdadm -Q /dev/md0 /dev/md0: 600.00MiB raid5 7 devices, 0 spares. Use mdadm --detail for more detail. 而磁盘个数扩展(reshape)功能不支持设备个数减少,如果在阵列中空闲的热备盘也没有指定backup文件,则不能扩展.如果对于RAID5阵列有备份(backup)文件可以支持扩展一个磁盘,扩展后的磁盘阵列是降级模式的,不支持扩展多个磁盘或者对降级的RAID5阵列再扩展.这些扩展模式不够安全,仅仅是暂时没有热备盘的权宜之计,一般合理的操作还是先增加空闲的热备磁盘再执行扩展命令. [root@fc5 mdadm-2.6.3]# ./mdadm --grow /dev/md0 -n6 mdadm: /dev/md0: Cannot reduce number of data disks (yet). [root@fc5 mdadm-2.6.3]# ./mdadm --grow /dev/md0 -n8
mdadm: Need to backup 2688K of critical section. mdadm: /dev/md0: Cannot grow - need a spare or backup-file to backup critical section [root@fc5 mdadm-2.6.3]# ./mdadm -G /dev/md0 -n9 --backup-file=/root/bak-reshape mdadm: Need to backup 1024K of critical section.. mdadm: /dev/md0: failed to initiate reshape [root@fc5 mdadm-2.6.3]# ./mdadm -G /dev/md0 -n8 --backup-file=/root/bak-reshape mdadm: Need to backup 2688K of critical section.. mdadm: ... critical section passed. [root@fc5 mdadm-2.6.3]# cat /proc/mdstat Personalities : [raid0] [raid10] [raid6] [raid5] [raid4] md0 : active raid5 sdh[6] sdg[5] sdf[4] sde[3] sdd[2] sdc[1] sdb[0] 6291072 blocks super 0.91 level 5, 64k chunk, algorithm 2 [8/7] [UUUUUUU_] [>..................] reshape = 2.6% (28608/1048512) finish=4.1min speed=4086K/sec md1 : active raid0 sdk1[2] sdj1[1] sdi1[0] 7337664 blocks 64k chunks unused devices: < none > [root@fc5 mdadm-2.6.3]# ./mdadm -D /dev/md0 /dev/md0: Version : 00.91.03 Creation Time : Sun Aug 22 23:46:29 1999 Raid Level : raid5 Array Size : 6291072 (6.00 GiB 6.44 GB) Used Dev Size : 1048512 (1024.11 MiB 1073.68 MB) Raid Devices : 8 Total Devices : 7 Preferred Minor : 0 Persistence : Superblock is persistent Update Time : Sun Aug 22 23:46:56 1999 State : clean, degraded, recovering Active Devices : 7 Wo***ng Devices : 7 Failed Devices : 0 Spare Devices : 0 Layout : left-symmetric Chunk Size : 64K Reshape Status : 4% complete Delta Devices : 1, (7->8) UUID : 50e886b9:9e28d243:a7f6457d:5eb47f2e Events : 0.94 Number Major Minor RaidDevice State 0 8 16 0 active sync /dev/sdb 1 8 32 1 active sync /dev/sdc 2 8 48 2 active sync /dev/sdd 3 8 64 3 active sync /dev/sde 4 8 80 4 active sync /dev/sdf
[root@fc5 mdadm-2.6.3]# ./mdadm --grow /dev/md0 -n6 mdadm: Need to backup 1280K of critical section.. mdadm: /dev/md0: Cannot get |
||
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |