使用SCO/SCHANA克隆到远程主机时、chown失败并显示无效参数
适用场景
- 适用于SAP HANA的SnapCenter插件(SCHANA) 5.0
- 适用于Oracle (SCO) 5.0的SnapCenter插件
- NFSv4协议
问题描述
将数据库克隆到远程主机时、此插件会尝试更改已挂载导出的所有权:
SCUPlugin: SCU::Utils::CommandHelper::execute_command(): Command 'mount -t nfs4 -o rw,noatime,vers=4.1,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,local_lock=none <NFS-IP>:/sap<sid>_data_Clone_<MMddYYHHmmss####> /hana/data/<SID>/mnt00001' successfully executed
尝试更改指定帐户的所有权时出现以下错误(此处为SCHANA的一个示例):
DEBUG: SCUPlugin: SCU::Utils::CommandHelper::execute_command(): Running command 'chown 1001:1001 /hana/data/<SID>/mnt00001' with timeout 600
DEBUG: SCUPlugin: 137: SCU::Utils::Logger::set_error_and_log_with_level(): Failed to execute the command 'chown 1001:1001 /hana/data/<SID>/mnt00001', command exited with value 1.
DEBUG: SCUPlugin: SCU::Utils::CommandHelper::execute_command(): Messages in command error stream: /usr/bin/chown: changing ownership of '/hana/data/<SID>/mnt00001': Invalid argument
ERROR: SCUPlugin: 190: SCU::Utils::Logger::set_and_log_error(): Failed to change the owner of the file system '/hana/data/<SID>/mnt00001'. Please manually change the owner of the file system.
此时、克隆将被清理、因此消息中最后一句所述的更改实际上无法使克隆数据库联机。