rmhostclustermember
使用 rmhostclustermember 命令可从主机集群对象移除主机。
语法
参数
- -host host_id_list | host_name_list
- (可选)指定要从主机集群移除的主机(按标识或按名称)。
- -keepmappings
- (可选)指定从主机集群中移除的主机将保留主机集群的共享卷映射。-keepmappings 与 -removemappings 参数是互斥的。
- -removemappings
- (可选)指定从主机集群中移除的主机将不保留主机集群的共享卷映射。-keepmappings 与 -removemappings 参数是互斥的。
- -force
- (可选)强制移除。从主机集群中移除最后一个主机时,必须指定此参数。
- hostcluster_id | hostcluster_name
- (必需)指定从中移除主机的主机集群(按标识或按名称)。标识值必须为数字,名称值必须为字母数字字符串。
描述
此命令可从主机集群对象移除主机。
从主机集群 0 移除主机 0(并移除主机映射)的调用示例
rmhostclustermember -host 0 -removemappings 0
生成的详细输出:
无反馈
从主机集群 myhostcluster 移除主机 myhost1 但保留原始
映射的调用示例
rmhostclustermember -host myhost1 -keepmappings -force myhostcluster
生成的详细输出:
无反馈
