2007年10月25日 星期四

[系統管理] Disk Array 掛不上時處理步驟 !

在 Unix 上, 可能不正常關機, 造成Disk Array損壞 !
步驟如下 :
1. 以root 登入
2. 查看是否全部硬碟都掛上來
 # df -k
3. 將全部硬碟掛上來
 # mountall
 通常Disk Array損壞, 會掛不上來, 然後出現下面訊息...
  WARNING: /dev/rdsk/c100t2d0s1 is corrupt. Repair before mounting.
  WARNING: /dev/rdsk/c100tad0s1 is corrupt. Repair before mounting.
  WARNING: /dev/rdsk/c100tad0s2 is corrupt. Repair before mounting.
  WARNING: /dev/rdsk/c100tad0s3 is corrupt. Repair before mounting.
  WARNING: /dev/rdsk/c100tad0s4 is corrupt. Repair before mounting.
  WARNING: /dev/rdsk/c100tad0s6 is corrupt. Repair before mounting.
  WARNING: /dev/rdsk/c100tad0s8 is corrupt. Repair before mounting.
  WARNING: /dev/rdsk/c100tad0s9 is corrupt. Repair before mounting.
  WARNING: /dev/rdsk/c100tad0sa is corrupt. Repair before mounting.
  WARNING: /dev/rdsk/c100tad0sb is corrupt. Repair before mounting.
  WARNING: /dev/rdsk/c100tad0sc is corrupt. Repair before mounting.
  WARNING: /dev/rdsk/c100tad0sd is corrupt. Repair before mounting.
  WARNING: /dev/rdsk/c100tad0se is corrupt. Repair before mounting.
  WARNING: /dev/rdsk/c100tad0sf is corrupt. Repair before mounting.
  WARNING: /dev/rdsk/c100t5d0s1 is corrupt. Repair before mounting.
  WARNING: /dev/rdsk/c100t5d0s3 is corrupt. Repair before mounting.
  WARNING: /dev/rdsk/c100t3d0s2 is corrupt. Repair before mounting.
  WARNING: /dev/rdsk/c100t3d0s1 is corrupt. Repair before mounting.
4. 這表示你要先修復, 之後才能掛得上來, 修復命令如下
 fsck /dev/rdsk/c100t2d0s1
 fsck /dev/rdsk/c100tad0s1
 ...
 (將所有無法掛上的硬碟, 一一做修復 ... fsck)
5. 用fsck修復後, 再 mountall 就行了 !

0 意見: