Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> Windows 技巧

SCO UNIX 常見故障診斷與急救實戰手冊

編輯:Windows 技巧

背景:金融系統的 UNIX 維護挑戰

SCO UNIX(XENIX、SVR4、OpenServer 5)以多用戶、多任務、安全性佳、終端接入易、成本低,廣泛用於金融終端。但異常關機、誤刪系統檔、無中文提示、需手工敲指令排故,對維護人員技術要求高。故障多源於:異常關機導致檔案系統錯誤累積、維護人員操作不當造成二次傷害。核心工具為急救開機磁碟(製作方法參考《中國金融電腦》2001年第10期)。

五大典型故障與修復步驟

故障一:開機提示 boot not found / cannot open / stage 1 boot failure:error loading hd(40) /boot

原因: /boot 損壞或遺失。
修復:

  1. 急救磁碟啟動,Boot: 提示下輸入 fd(60) unix.Z root=hd(42)。
  2. 輸入超級用戶密碼進入單用戶模式。
  3. # umount /stand → # mount /stand(改變唯讀屬性)。
  4. # mount -r /dev/rfd0135ds18 /mnt(掛載急救磁碟)。
  5. # cp /mnt/boot /stand(複製 boot 檔)。
  6. # umount /mnt → # reboot。

故障二:提示 unix not found 系統掛起

原因: /unix 核心檔損壞/遺失。
方案一(快): Boot: 下輸入 unix.old 使用備份核心啟動。
方案二(急救盤):

  1. Boot: 輸入 fd(60) unix.Z root=hd(42) swap=hd(41)。
  2. 單用戶模式下同樣 umount /stand; mount /stand。
  3. 掛載軟碟 mount -r /dev/rfd0135ds18 /mnt。
  4. cp /mnt/unix.Z /stand → reboot。

故障三:無法進入多用戶模式

現象 A: init:cannot open /etc/inittab errno:2 → /etc/inittab 遺失/損壞。
修復:

  1. 重建連結:# ln -s /var/opt/K/SCO/unix/5.0.5a/etc/inittab /etc/inittab。
  2. 或重構:# touch /etc/.new-unix; cd /etc/conf/bin; ./idmkenv(提示輸入 y)→ # cat /etc/inittab → # init 2 進入多用戶。

現象 B: su:unknown id:root / init:single user mode / password file missing → /etc/passwd 遺失/損壞。
修復:

  1. # mount -r /dev/rfd0135ds18 /mnt
  2. # cp /mnt/etc/passwd /etc/passwd
  3. # chown bin:auth passwd → reboot

故障四:系統無法正常關機

現象: shutdown -g0 -i0 -y 後提示 /etc/initscript:/etc/uadmin:not found 掛起。
原因: /etc/uadmin 遺失/損壞。
修復: 單用戶模式下掛載急救盤根分區(第 2 片),cp /mnt/etc/uadmin /etc/uadmin; chown bin:bin /etc/uadmin; umount /mnt; reboot。

故障五:個別終端埠無法登入

現象: 終端顯示 login:,輸入用戶名後提示 terminal ttyXX is disabled ---see account administrator 退回。
原因: 預設連續失敗 99 次鎖定埠。
解鎖: 超級用戶登入 → scoadmin → System → Terminal Manager → Unlock 選中該埠解鎖。
防患: Terminal Manager → Options → Maximum unsuccessful attempts before locking terminal 改為 infinite(不限制)。

維護鐵律

  • 定期執行 fsck -y 檢查並自動修復檔案系統一致性。
  • 任何異常、處理步驟、結果詳細記錄,為後續深度排故與經驗傳承留存檔案。

SCO UNIX 穩定可靠,關鍵在於「預防性維護」與「標準化急救流程」。掌握上述五大故障修復,讓金融終端系統永續運轉。

Copyright © Windows教程網 All Rights Reserved