八月 02
实验目的:测试一下 trustix 3.0.5 的root partition安装在software raid1分区上的故障恢复,以解决原来服务器上的hostraid不支持trustix的麻烦
实验环境:Vmware的虚拟机,guest os配置了两块2048M的磁盘,trustix 3.0.5系统分三个区(/boot,/,swap)都安装在software raid1分区上,分区状况如下:
- Disk /dev/sda: 2147 MB, 2147483648 bytes
- 255 heads, 63 sectors/track, 261 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Device Boot Start End Blocks Id System
- /dev/sda1 1 13 104391 fd Linux raid autodetect
- /dev/sda2 14 78 522112+ fd Linux raid autodetect
- /dev/sda3 79 261 1469947+ fd Linux raid autodetect
- Disk /dev/sdb: 2147 MB, 2147483648 bytes
- 255 heads, 63 sectors/track, 261 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Device Boot Start End Blocks Id System
- /dev/sdb1 * 1 13 104391 fd Linux raid autodetect
- /dev/sdb2 14 78 522112+ fd Linux raid autodetect
- /dev/sdb3 79 261 1469947+ fd Linux raid autodetect
- Personalities : [raid1]
- md1 : active raid1 sdb2[1] sda2[0]
- 522048 blocks [2/2] [UU]
- md2 : active raid1 sdb3[1] sda3[0]
- 1469824 blocks [2/2] [UU]
- md0 : active raid1 sdb1[1] sda1[0]
- 104320 blocks [2/2] [UU]
- Filesystem Size Used Avail Use% Mounted on
- /dev/md2 1.4G 775M 651M 55% /
- /dev/md0 99M 7.3M 87M 8% /boot
- /dev/md1作为swap分区
模拟故障:将虚拟机关机后,直接在虚拟机的配置里面remove掉原有的scsi0:0
故障恢复:
Continue reading »