八月 02

实验目的:测试一下 trustix 3.0.5 的root partition安装在software raid1分区上的故障恢复,以解决原来服务器上的hostraid不支持trustix的麻烦

实验环境:Vmware的虚拟机,guest os配置了两块2048M的磁盘,trustix 3.0.5系统分三个区(/boot,/,swap)都安装在software raid1分区上,分区状况如下:

  1. Disk /dev/sda: 2147 MB, 2147483648 bytes
  2. 255 heads, 63 sectors/track, 261 cylinders
  3. Units = cylinders of 16065 * 512 = 8225280 bytes
  4.  
  5.    Device Boot      Start         End      Blocks   Id  System
  6. /dev/sda1               1          13      104391   fd  Linux raid autodetect
  7. /dev/sda2              14          78      522112+  fd  Linux raid autodetect
  8. /dev/sda3              79         261     1469947+  fd  Linux raid autodetect
  9.  
  10. Disk /dev/sdb: 2147 MB, 2147483648 bytes
  11. 255 heads, 63 sectors/track, 261 cylinders
  12. Units = cylinders of 16065 * 512 = 8225280 bytes
  13.  
  14.    Device Boot      Start         End      Blocks   Id  System
  15. /dev/sdb1   *           1          13      104391   fd  Linux raid autodetect
  16. /dev/sdb2              14          78      522112+  fd  Linux raid autodetect
  17. /dev/sdb3              79         261     1469947+  fd  Linux raid autodetect
  18.  
  19. Personalities : [raid1]
  20. md1 : active raid1 sdb2[1] sda2[0]
  21.       522048 blocks [2/2] [UU]
  22.       
  23. md2 : active raid1 sdb3[1] sda3[0]
  24.       1469824 blocks [2/2] [UU]
  25.       
  26. md0 : active raid1 sdb1[1] sda1[0]
  27.       104320 blocks [2/2] [UU]
  28.  
  29. Filesystem            Size  Used Avail Use% Mounted on
  30. /dev/md2              1.4G  775M  651M  55% /
  31. /dev/md0               99M  7.3M   87M   8% /boot
  32.  
  33. /dev/md1作为swap分区

模拟故障:将虚拟机关机后,直接在虚拟机的配置里面remove掉原有的scsi0:0

故障恢复:
Continue reading »