如果您從 Solstice DiskSuiteTM 或是一個 「 SolarisTM 容體管理員」鏡像式的根、或 Veritas 封裝式的根來進行啟動,lucreate 指令也許無法決定啟動裝置。以下的錯誤訊息會顯示出來。
WARNING: Unable to determine root device by accessing boot device settings directly. ERROR: Unable to determine root device for current BE. ERROR: Unable to determine the physical boot device for the current BE <...>. Use the <-C> command line option to specify the physical boot device for the current BE <...> |
如果您使用 lucreate -C 來指定實體啟動裝置,該指令會失敗。
解決方法: 以手動方式編輯 /usr/sbin/lucreate,讓 Live Upgrade 決定是由 Solstice DiskSuite 或是一個 「Solaris 容體管理員」鏡像式的根、或 Veritas 封裝式的根來進行啟動。請遵循這些步驟。
製作 /usr/sbin/lucreate 的備份複本。
在文字編輯程式中打開 /usr/sbin/lucreate。
在 /usr/sbin/lucreate 中找到下列一行。
elif [ "${dpbe_pbeBootDev}" -eq "-" ] ; then |
先前的一行變更為如下所示。
elif [ "${dpbe_pbeBootDev}" = '-' ] ; then |
在 /usr/sbin/lucreate 中找到下列一行。
if [ "${OPTARG}" -ne "-" ] ; then |
將先前的一行變更為如下所示。
if [ "${OPTARG}" != '-' ] ; then |
儲存在 /usr/sbin/lucreate 中所做變更。
現在起,lucreate 指令能夠決定啟動裝置,-C 選項將能正確運作。
當升級完成時,您可將 /usr/sbin/lucreate 的備份複本移除。