将本地文件系统或群集文件系统添加到 HAStoragePlus 资源时,HAStoragePlus 资源会自动挂载该文件系统。
对于每个条目,按如下方式设置引导时挂载字段以及挂载选项字段:
对于本地文件系统
将引导时挂载字段设置为 no。
删除 global 标志。
对于群集文件系统
如果文件系统是群集文件系统,将挂载选项字段设置为包含 global 选项。
# scha_resource_get -O extension -R hasp-resource -G hasp-rg FileSystemMountPoints
指定要向其添加文件系统的 HAStoragePlus 资源
指定包含 HAStoragePlus 资源的资源组
HAStoragePlus 资源已经管理的文件系统的挂载点
要添加到 HAStoragePlus 资源的文件系统的挂载点
# clresource set -p FileSystemMountPoints="mount-point-list" hasp-resource
指定 HAStoragePlus 资源已经管理的文件系统的挂载点以及要添加的文件系统的挂载点的逗号分隔列表。列表中每个条目的格式为:LocalZonePath:GlobalZonePath。在此格式中,全局路径是可选的。如果不指定全局路径,则全局路径与本地路径相同。
指定要向其添加文件系统的 HAStoragePlus 资源
# scha_resource_get -O extension -R hasp-resource -G hasp-rg \ FileSystemMountPoints
指定要向其添加文件系统的 HAStoragePlus 资源
指定包含 HAStoragePlus 资源的资源组。
如果 HAStoragePlus 资源联机但发生了故障,则表明资源验证成功,但 HAStoragePlus 挂载文件系统的尝试失败。
# clresource status hasp-resource
此示例展示了如何将文件系统添加到联机 HAStoragePlus 资源。
HAStoragePlus 资源名为 rshasp,包含在资源组 rghasp 中。
HAStoragePlus 资源 rshasp 已经管理挂载点为 /global/global-fs/fs 的文件系统。
要添加的文件系统的挂载点是 /global/local-fs/fs。
该示例假设每个群集节点上的 /etc/vfstab 文件已经包含要添加的文件系统的条目。
# scha_resource_get -O extension -R rshasp -G rghasp FileSystemMountPoints STRINGARRAY /global/global-fs/fs # clresource set \ -p FileSystemMountPoints="/global/global-fs/fs,/global/local-fs/fs" # scha_resource_get -O extension -R rshasp -G rghasp FileSystemMountPoints rshasp STRINGARRAY /global/global-fs/fs /global/local-fs/fs # clresource status rshasp === Cluster Resources === Resource Name Node Name Status Message -------------- ---------- ------- -------- rshasp node46 Offline Offline node47 Online Online