登入時看到「LOGIN:ERROR-Failed to initialize policy manager.(IFOR_PM_FATAL)」,代表授權管理程序沒有正常運作。常見原因有四類,以下依序排查。
policy 管理程式 /etc/ifor_pmd 必須存在且正在執行。修復方式是在 Software Manager 中選擇 Software → Verify Software,並勾選 Broken/missing symbolic links,這會檢查並修復 /etc/ifor_pmd 與 /opt/K/SCO 兩層的連結。
若 ifor_pmd 確實已從 /opt/K/SCO 目錄樹中遺失,可用 customextract 從安裝媒體單獨取出這個檔案:
# customextract -m /dev/cd0 /opt/K/SCO/Unix/*/pmd/ifor_pmd
裝好之後,再用 Software Manager 檢查 /etc 下的連結是否正確。
目錄 /pmd 及其內容(命名管道 IPCCT_pipe、PMDCT-pipe、LST_pipe 與檔案 ifor_pmd.pid)若被中斷或刪除,就會導致這個錯誤。如果 /pmd 存在但裡頭空空如也,只要停掉並重啟 /etc/ifor_pmd 就會自動重建:
# ps -ef | grep ifor_pmd | grep -v grep
你會看到兩行,例如:
root 41 1 0 Aug-29 ? 00:00:00 /etc/ifor_pmd root 42 41 0 Aug-29 ? 00:00:04 /etc/ifor_pmd
實際數字會因系統而異,唯一固定的是第三欄中有一筆必須是 1(父程序)。接著殺掉子程序:
# kill 42
稍等片刻再跑一次 ps,你會看到新的 ifor_pmd 已經起來。此時檢查 /pmd 目錄,應該能看到 IPCCT_pipe、PMDCT-pipe、LST_pipe 與 ifor_pmd.pid 四個檔案。
檢查 /etc/default/filesys 是否有非預設的根檔案系統設定,例如 mountflags=-r 或 mntopts="-o ro"。若發現這些設定,刪掉即可。
先請所有使用者登出,然後啟動 License Manager,選擇 SCO OpenServer Enterprise system,接著 License → Remove License 移除現有授權,再重新登記授權。若 /etc/ifor_pmd 的兩個程序沒有在跑,直接鍵入 /etc/ifor_pmd 啟動它。
執行 netstat -m,注意輸出第一行的 streams 統計:
config alloc free total max fail streams 292 110 182 337172 126 0
若 streams 這行的 fail 值大於 0,請用 Hardware/Kernel Manager 或 configure 指令調大 NSTREAM 核心參數,然後重新連結核心並重啟。
FreeBSD 開機出現 zfs: failed with error 6 的排查與修正
Ubuntu 下 gedit 報 Failed to connect to the session manager 的解法
rsync 錯誤 @ERROR: auth failed on module XXX 的解決
Ubuntu 7.10 出現 failed to write cache 錯誤的解法
解決 Ubuntu 7.04 升級時「failed to write cache」錯誤
解決 virt-install 出現「process exited while connecting to monitor」錯誤