在Linux上使用软RAID模拟磁盘损坏实验
软RAID是在操作系统层面进行的RAID配置,也能对数据进行保护,实际生产环境中使用存储中磁盘阵列和硬RAID实现冗余的情况比较多。 此实验在虚拟机中完成,在系统中添加5块磁盘,每块磁盘512MB,利用这5块磁盘做RAID5实验,模拟磁盘损坏及替换磁盘,模拟停止RAID阵列及启动阵列,阵列中的数据情况。 1.添加磁盘,每块磁盘512MB,共5块,如图1所示。 图1 2.启动系统并查看磁盘 ll /dev/sd* 出现/dev/sdb,/dev/sdc,…/dev/sdf,如图2所示,说明系统已识别到新添加的5块磁盘。 图2 3.磁盘分区,以/dev/sdb为例(fdisk /dev/sdb),其它磁盘做相同操作。 [root@localhost ~]# fdisk /dev/sdb Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0x2646775b. Changes will remain in memory only, until you decide to write them. After that, of course, … Read more