如果已将所有现有资源迁移到资源类型的最新版本且不再需要该资源类型的较旧版本,可以取消注册较旧的版本。
# clresourcetype list | grep myrt
XYZ.myrt:1.0 XYZ.myrt:2.0
# clresourcetype unregister XYZ.myrt:1.0
如果在Step 2 运行 clresourcetype unregister 后出现以下文本,必须将此属性设置为 TRUE,方法是键入以下输出下方显示的命令。
clrt: (C944871) Operation not allowed on system rescue type <XYZ.myrt:1.0>
# clresourcetype set -p RT_system=FALSE XYZ.myrt:1.0
# clresourcetype unregister XYZ.myrt:1.0
默认情况下,预安装的资源类型 LogicalHostname 和 SharedAddress 的 RT_system 属性设置为 TRUE。如果这些预安装的资源类型之一已升级到较新版本,必须在取消注册较旧版本之前将 RT_system 设置为 FALSE。在此示例中,所有现有 LogicalHostname 资源都已迁移到 LogicalHostname 的版本 4.0。
# clresourcetype list
... SUNW.LogicalHostname.3 SUNW.LogicalHostname:4 ...
# clresourcetype set -p RT_system=FALSE SUNW.LogicalHostname:3
# clresourcetype unregister SUNW.LogicalHostname:3