소프트웨어 레이드 관련 문의
글쓴이: hiseob / 작성시간: 일, 2013/04/28 - 11:15오후
이번에 3TB 하드 6개 구매해서 mdadm 을 이용한 소프트웨어 레이드를 시작 했습니다.
만들때는
mdadm --create --verbose /dev/md0 --level=5 --raid-devices=6 /dev/sd[bcdefg]1
이렇게 만들었고요.
정보를 보니
mdadm --examine /dev/sdb1
/dev/sdb1: Magic : a92b4efc Version : 1.2 Feature Map : 0x0 Array UUID : 1f628251:73eaafcd:e5809b62:87bfac10 Name : nsys_gentoo:0 (local to host nsys_gentoo) Creation Time : Sat Apr 27 15:07:39 2013 Raid Level : raid5 Raid Devices : 6 Avail Dev Size : 5860528128 (2794.52 GiB 3000.59 GB) Array Size : 29302635520 (13972.59 GiB 15002.95 GB) Used Dev Size : 5860527104 (2794.52 GiB 3000.59 GB) Data Offset : 2048 sectors Super Offset : 8 sectors State : active Device UUID : fb96fcf5:d69cab3c:f014f85a:44966986 Update Time : Sun Apr 28 23:12:12 2013 Checksum : c8dd5122 - correct Events : 100700 Layout : left-symmetric Chunk Size : 512K Device Role : Active device 0 Array State : AAAAAA ('A' == active, '.' == missing)
cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4] [raid1] [raid10] [raid0] [linear] [multipath] md0 : active raid5 sdb1[0] sdf1[4] sde1[3] sdg1[6] sdc1[1] sdd1[2] 14651317760 blocks super 1.2 level 5, 512k chunk, algorithm 2 [6/5] [UUUUU_] [==============>......] recovery = 71.2% (2089250296/2930263552) finish=358.4min speed=39101K/sec unused devices: <none>
mdadm -D /dev/md0
/dev/md0: Version : 1.2 Creation Time : Sat Apr 27 15:07:39 2013 Raid Level : raid5 Array Size : 14651317760 (13972.59 GiB 15002.95 GB) Used Dev Size : 2930263552 (2794.52 GiB 3000.59 GB) Raid Devices : 6 Total Devices : 6 Persistence : Superblock is persistent Update Time : Sun Apr 28 23:14:08 2013 State : clean, degraded, recovering Active Devices : 5 Working Devices : 6 Failed Devices : 0 Spare Devices : 1 Layout : left-symmetric Chunk Size : 512K Rebuild Status : 71% complete Name : nsys_gentoo:0 (local to host nsys_gentoo) UUID : 1f628251:73eaafcd:e5809b62:87bfac10 Events : 100835 Number Major Minor RaidDevice State 0 8 17 0 active sync /dev/sdb1 1 8 33 1 active sync /dev/sdc1 2 8 49 2 active sync /dev/sdd1 3 8 65 3 active sync /dev/sde1 4 8 81 4 active sync /dev/sdf1 6 8 97 5 spare rebuilding /dev/sdg1
파일시스템 포맷은 이렇게 했습니다.
mkfs.ext4 -v -m 0.5 -E stride=128,stripe-width=640 /dev/md0
일단 정상적으로 동작이 되는걸로 보이긴 합니다.
질문은 앞으로 장애상황 대처를 위해서 해야할 것이 뭐가 있는지 궁금 합니다.
Forums:
댓글 달기