mdadm raid0 구성하기

· 13년 전 · 1635
 # raid 장치 raid0 create
 
 
100M 짜리 파티션 3개 생성함.
 
/dev/xvda5            1544        1556      104391   83  Linux
/dev/xvda6            1557        1569      104391   83  Linux
/dev/xvda7            1570        1582      104391   83  Linux
 
partpobe 명령 꼭 내릴것. 아니면 리부팅해야함.
 
 
vi /etc/mdadm.conf
 
DEVICE /dev/xvda[567]
ARRAY /dev/md0 devices=/dev/xvda5,/dev/xvda6,/dev/xvda7
 
 
- mdstat 상태 확인
 
[root@www ~]# cat /proc/mdstat 
Personalities : 
unused devices: <none>
 
[root@www ~]# mdadm -C /dev/md0 --level=raid0 --raid-devices=3 /dev/xvda5 /dev/xvda6 /dev/xvda7
mdadm: array /dev/md0 started.
 
 
- raid 장치 상태 정보 확인
 
[root@www ~]# mdadm --detail /dev/md0
/dev/md0:
        Version : 0.90
  Creation Time : Wed Sep 14 14:59:33 2011
     Raid Level : raid0
     Array Size : 312960 (305.68 MiB 320.47 MB)
   Raid Devices : 3
  Total Devices : 3
Preferred Minor : 0
    Persistence : Superblock is persistent
 
    Update Time : Wed Sep 14 14:59:33 2011
          State : clean
 Active Devices : 3
Working Devices : 3
 Failed Devices : 0
  Spare Devices : 0
 
     Chunk Size : 64K
 
           UUID : 166a3470:bd51073d:6eca3b32:a65ce71e
         Events : 0.1
 
    Number   Major   Minor   RaidDevice State
       0     202        5        0      active sync   /dev/xvda5
       1     202        6        1      active sync   /dev/xvda6
       2     202        7        2      active sync   /dev/xvda7
 
 
- 포맷 하고 마운트
 
[root@www ~]# mkfs -j /dev/md0
[root@www ~]# mkdir /data
[root@www ~]# mount /dev/md0 /data
[root@www ~]# df -h
 
/dev/md0              296M   11M  271M   4% /data
 
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
13년 전 조회 1,463
13년 전 조회 1,862
13년 전 조회 1,625
13년 전 조회 1,396
13년 전 조회 1,860
13년 전 조회 3,838
13년 전 조회 2,935
13년 전 조회 2,511
13년 전 조회 1,480
13년 전 조회 2,103
13년 전 조회 2,959
13년 전 조회 2,057
13년 전 조회 2,121
13년 전 조회 1,833
13년 전 조회 2,010
13년 전 조회 3,002
13년 전 조회 1,511
13년 전 조회 1,848
13년 전 조회 3,160
13년 전 조회 1,958
13년 전 조회 1,536
13년 전 조회 2,005
13년 전 조회 1,842
13년 전 조회 1,887
13년 전 조회 2,144
13년 전 조회 2,956
13년 전 조회 1,998
13년 전 조회 2,446
13년 전 조회 1,524
13년 전 조회 1,544
13년 전 조회 1,510
13년 전 조회 1,431
13년 전 조회 1,714
13년 전 조회 1,761
13년 전 조회 1,467
13년 전 조회 1,740
13년 전 조회 2,291
13년 전 조회 1,549
13년 전 조회 2,327
13년 전 조회 1,416
13년 전 조회 1,601
13년 전 조회 1,433
13년 전 조회 1,623
13년 전 조회 1,478
13년 전 조회 1,804
13년 전 조회 1,852
13년 전 조회 1,752
13년 전 조회 3,581
13년 전 조회 1,388
13년 전 조회 1,636
13년 전 조회 1,493
13년 전 조회 1,989
13년 전 조회 1,739
13년 전 조회 2,404
13년 전 조회 2,738
13년 전 조회 2,079
13년 전 조회 3,977
13년 전 조회 2,231
13년 전 조회 1,573
13년 전 조회 3,035
13년 전 조회 3,454
13년 전 조회 1,294
13년 전 조회 1,437
13년 전 조회 1,356
13년 전 조회 1,453
13년 전 조회 1,353
13년 전 조회 1,627
13년 전 조회 2,859
13년 전 조회 1,320
13년 전 조회 1,296
13년 전 조회 1,438
13년 전 조회 1,409
13년 전 조회 1,324
13년 전 조회 1,617
13년 전 조회 1,571
13년 전 조회 1,316
13년 전 조회 1,334
13년 전 조회 2,345
13년 전 조회 1,537
13년 전 조회 1,912
13년 전 조회 1,252
13년 전 조회 1,867
13년 전 조회 1,435
13년 전 조회 1,285
13년 전 조회 1,558
13년 전 조회 3,105
13년 전 조회 1,716
13년 전 조회 2,419
13년 전 조회 1,305
13년 전 조회 1,343
13년 전 조회 1,590
13년 전 조회 1,310
13년 전 조회 2,220
13년 전 조회 1,239
13년 전 조회 1,292
13년 전 조회 1,607
13년 전 조회 1,404
13년 전 조회 1,311
13년 전 조회 1,448
13년 전 조회 1,454