Top / Installmemo / Linux / SoftwareRAID

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS


 (parted) mkpart primary 0 1001G

 (parted) set 1 raid on
 (parted) print
 Model: ATA Hitachi HDS72101 (scsi)
 Disk /dev/sdb: 1000GB
 Sector size (logical/physical): 512B/512B
 Partition Table: gpt
 
 Number  Start   End     Size    File system  Name     Flags
  1      17.4kB  1000GB  1000GB               primary  raid

 # mdadm -C /dev/md0 -l5 -n3 -f /dev/sdb1 /dev/sdc1 /dev/sdd1
 mdadm: array /dev/md0 started.

 # mdadm -D /dev/md0
 /dev/md0:
         Version : 0.90
   Creation Time : Tue May 18 22:21:27 2010
      Raid Level : raid5
      Array Size : 1953524864 (1863.03 GiB 2000.41 GB)
   Used Dev Size : 976762432 (931.51 GiB 1000.20 GB)
    Raid Devices : 3
   Total Devices : 3
 Preferred Minor : 0
     Persistence : Superblock is persistent
 
     Update Time : Tue May 18 22:21:27 2010
           State : clean, resyncing
  Active Devices : 3
 Working Devices : 3
  Failed Devices : 0
   Spare Devices : 0
 
          Layout : left-symmetric
      Chunk Size : 64K
 
  Rebuild Status : 1% complete
 
            UUID : 04129d22:90196aa6:f47ebf50:9603f10c
          Events : 0.1
 
     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

 $ cat /proc/mdstat
 Personalities : [raid6] [raid5] [raid4]
 md0 : active raid5 sdd1[2] sdc1[1] sdb1[0]
       1953524864 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]
       [================>....]  resync = 81.0% (791761668/976762432) finish=34.1min speed=90386K/sec
 
 unused devices: <none>

 # cat /proc/mdstat
 Personalities : [raid6] [raid5] [raid4]
 md0 : active raid5 sdd1[2] sdc1[1] sdb1[0]
       1953524864 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]
 
 unused devices: <none>

----
#counter