COMING SOON 🚀

mdadm raid0 구성하기

· 13년 전 · 1582
 # 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,401
13년 전 조회 1,805
13년 전 조회 1,566
13년 전 조회 1,343
13년 전 조회 1,780
13년 전 조회 3,784
13년 전 조회 2,869
13년 전 조회 2,459
13년 전 조회 1,421
13년 전 조회 2,040
13년 전 조회 2,896
13년 전 조회 1,999
13년 전 조회 2,075
13년 전 조회 1,780
13년 전 조회 1,956
13년 전 조회 2,938
13년 전 조회 1,435
13년 전 조회 1,790
13년 전 조회 3,102
13년 전 조회 1,912
13년 전 조회 1,482
13년 전 조회 1,944
13년 전 조회 1,786
13년 전 조회 1,841
13년 전 조회 2,073
13년 전 조회 2,898
13년 전 조회 1,973
13년 전 조회 2,395
13년 전 조회 1,452
13년 전 조회 1,485
13년 전 조회 1,447
13년 전 조회 1,379
13년 전 조회 1,656
13년 전 조회 1,716
13년 전 조회 1,413
13년 전 조회 1,678
13년 전 조회 2,223
13년 전 조회 1,490
13년 전 조회 2,265
13년 전 조회 1,352
13년 전 조회 1,544
13년 전 조회 1,377
13년 전 조회 1,565
13년 전 조회 1,405
13년 전 조회 1,752
13년 전 조회 1,799
13년 전 조회 1,705
13년 전 조회 3,528
13년 전 조회 1,334
13년 전 조회 1,583
13년 전 조회 1,442
13년 전 조회 1,946
13년 전 조회 1,677
13년 전 조회 2,363
13년 전 조회 2,702
13년 전 조회 2,034
13년 전 조회 3,929
13년 전 조회 2,178
13년 전 조회 1,528
13년 전 조회 2,982
13년 전 조회 3,404
13년 전 조회 1,243
13년 전 조회 1,387
13년 전 조회 1,291
13년 전 조회 1,398
13년 전 조회 1,300
13년 전 조회 1,557
13년 전 조회 2,792
13년 전 조회 1,257
13년 전 조회 1,228
13년 전 조회 1,380
13년 전 조회 1,347
13년 전 조회 1,261
13년 전 조회 1,553
13년 전 조회 1,507
13년 전 조회 1,248
13년 전 조회 1,267
13년 전 조회 2,289
13년 전 조회 1,491
13년 전 조회 1,859
13년 전 조회 1,209
13년 전 조회 1,824
13년 전 조회 1,370
13년 전 조회 1,208
13년 전 조회 1,500
13년 전 조회 3,053
13년 전 조회 1,666
13년 전 조회 2,384
13년 전 조회 1,249
13년 전 조회 1,288
13년 전 조회 1,537
13년 전 조회 1,260
13년 전 조회 2,179
13년 전 조회 1,187
13년 전 조회 1,230
13년 전 조회 1,566
13년 전 조회 1,344
13년 전 조회 1,266
13년 전 조회 1,387
13년 전 조회 1,407