Raid0:
Raid 0(条带): 读写速度得到提升,但不具备数据冗余。
环境要求: 新添加一块磁盘,大小为10G。并且分区,先分2个分区,每个分区大小为1G。分区类型为Linux RAID
[root@localhost ~]# echo "- - -" >> /sys/class/scsi_host/host0/scan
[root@localhost ~]# echo "- - -" >> /sys/class/scsi_host/host1/scan
[root@localhost ~]# echo "- - -" >> /sys/class/scsi_host/host2/scan
[root@localhost ~]# fdisk -l
...
Disk /dev/sdb: 10.7 GB, 10737418240 bytes, 20971520 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt
Disk identifier: 7AF3AD69-8BCE-4DA6-9DCD-2EC2029BF10B
# Start End Size Type Name
1 2048 2099199 1G Linux RAID Linux RAID
2 2099200 4196351 1G Linux RAID Linux RAID
创建一个2G的Raid 0
思路