开始之前
此过程提供了 Oracle Solaris Cluster 命令的长格式。此外,大多数命令还有短形式。这些命令除了格式不同以外,其功能都是相同的。
要执行此过程,请承担可提供 solaris.cluster.read 和 solaris.cluster.modify RBAC 授权的 root 角色。
# clrg create -p RG_mode=Scalable \ -p Desired_primaries=num_active_primary \ -p Maximum_primaries=max_num_active_primary scalmp-rg
# clrt register SUNW.ScalMountPoint
# clrs create -g scalmp-rg -t SUNW.ScalMountPoint \ -p TargetFileSystem=nas_device:path \ -p FileSystemType=nas \ -p MountPointDir=fs_mountpoint scalmp-rs
# clrg online -eM scalmp-rg
# clrg create -p RG_mode=Scalable \ -p Maximum_primaries=max_num_active_primary \ -p Desired_primaries=num_active_primary \ -p rg_affinities=++scalmp-rg app-rg
应用程序资源组必须对在Step 1 中创建的资源组具有正向强关联性。
# clrt register app_resource_type
# clrs create -g app-rg -t app_resource_type \ ... -p Scalable=True \ -p resource_dependencies_offline_restart=scalmp-rs app-rs
# clrg online -eM app-rg
应用程序资源必须对在Step 1 中创建的 ScalMountPoint 资源具有脱机重新启动依赖性。