SCO OpenServer 5.0.5 作為金融、電信領域的經典商業 Unix,雖已停止主流維護,但大量存量系統仍在運行。本文整理 10 個高頻故障現象、根因分析與分級修復方案,助力存量系統穩健運維。
boot not found
cannot open stage 1
boot failure: error loading hd(40)/boot
/stand/boot 文件損壞/丟失,或 CMOS 硬盤參數錯誤導致找不到分區。
hd(40) unix/stand 為可寫:umount /stand; mount /standmount /dev/fd0135ds18 /mnt; cp /mnt/boot /stand/bootchown bin:bin /stand/bootunix not found
fd(60)unix.Z root=hd(42) swap=hd(41)/stand,從啟動盤恢復:cp /mnt/unix.Z /stand/unixchown bin:mem /stand/unixINIT: command exec /etc/brc ... failed to execute, errno=9 (exec of shell failed)
mount /dev/hd0root /mnt; cp /bin/sh /mnt/bin/shchown bin:bin /mnt/bin/sh/etc/initscript: /etc/uadmin: not found
cp /mnt/etc/uadmin /etc/uadminrcp good_host:/etc/uadmin /etc/uadmin 或 tar 傳輸chown bin:bin /etc/uadminKernel: i/o bufs=600k (然後掛起)
cp /etc/init /mnt/etc/initchown bin:bin /mnt/etc/inithd(40) unixinstbb hd /dev/hd0a; dparam -wINIT: can not open /etc/inittab error 2
cp /etc/conf/cf.d/init.base /etc/inittab
/etc/conf/cf.d/link_unix -y
# 重新鏈接內核並重啟
關鍵:不能直接從啟動盤複製 inittab,必須從 init.base 重建。
/etc/initscript: /etc/bcheckrc: not found
# 從源文件恢復符號鏈接
ln -s /opt/K/SCO/Unix/5.0.5Eb/etc/bcheckrc /etc/bcheckrc
# 或複製
cp /opt/K/SCO/Unix/5.0.5Eb/etc/bcheckrc /etc/bcheckrc
INIT: SINGLE USER MODE /etc/initscript: /bin/sulogin: not found
需在多用戶模式下修復(因無法進單用戶):
ln -s /opt/K/SCO/Unix/5.0.5Eb/bin/sulogin /bin/sulogin
LOGIN: ERROR - Failed to initialize policy manager. (IFOR_PM_FATAL)
系統時間早於 OS 安裝時間,通常因 BIOS 電池耗盡導致 CMOS 時間重置。
date MMDDhhmmYYYY 修正系統時間商業 Unix 運維的核心是「精準定位、最小變更、快速恢復」。掌握這 10 類故障模式,配合完善的備份與啟動盤體系,能讓 SCO OpenServer 系統在壽命末期依然穩健服務業務。