Cloning to remote host using SCO/SCHANA encounters chown failure with Invalid Argument
Applies to
- SnapCenter Plug-in for SAP HANA (SCHANA) 5.0
- SnapCenter Plug-in for Oracle (SCO) 5.0
- NFSv4 protocol
Issue
When cloning a database to a remote host, the plug-in attempts to change ownership on the mounted export:
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
the following error cours when attempting to change ownership for the designated account (here an example from 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.
The clone will will be cleaned up, when this happens, so the changes mentioned by that last sentence in the message cannot actually be made the clone database online.