Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
297 views
in Technique[技术] by (71.8m points)

amazon web services - Question about RAID 0 configuration result

I'd like to ask your help to understand RAID 0 configuration.

I created a combined device with two volumes 100GB for each by RAID 0 configuration.

It is supposed to have 200GB size, but it only has 110GB as a result.

Could you check the result and help me to find out the cause of it?

The test result is like below.

  1. RAID configuration

sudo mdadm --create /dev/md0 --level=0 --chunk=64 --raid-devices=2 /dev/sdb /dev/sdc

sudo mkdir -p /mnt/p_iops_vol0 && sudo mkfs.xfs /dev/md0

sudo mount -t xfs /dev/md0 /mnt/p_iops_vol0

  1. lsblk output

$ lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT

nvme1n1 259:0 0 100G 0 disk

`-md0 9:0 0 110G 0 raid0 /mnt/p_iops_vol0

nvme2n1 259:1 0 100G 0 disk

`-md0 9:0 0 110G 0 raid0 /mnt/p_iops_vol0

  1. madam details

$ sudo mdadm --detail /dev/md0

/dev/md0: Version : 1.2

 Creation Time : Tue Jan 12 16:31:53 2021
    Raid Level : raid0
    Array Size : 115326976 (109.98 GiB 118.09 GB)
  Raid Devices : 2
 Total Devices : 2
   Persistence : Superblock is persistent

   Update Time : Tue Jan 12 16:31:53 2021
         State : clean 
Active Devices : 2

Working Devices : 2 Failed Devices : 0 Spare Devices : 0

    Chunk Size : 64K

Consistency Policy : none

          Name : ip-10-0-20-40.ec2.internal:0  (local to host ip-10-0-20-40.ec2.internal)
          UUID : f5867a6d:f4d8422f:8f9f5e63:29739868
        Events : 0

Number   Major   Minor   RaidDevice State
   0     259        0        0      active sync   /dev/sdb
   1     259        1        1      active sync   /dev/sdc
question from:https://stackoverflow.com/questions/65837633/question-about-raid-0-configuration-result

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...