如果从 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,以使实时升级能够从 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 的备份副本。