The SDK cannot make changes to files/directories under the NFS vFile when mounted on a target.
The linked function pre_snapshot can write to the staging mount no problem.
Note that the permissions of the staging mount is 755 with ownership delphix_os:mysql, and the delphix_os user is in the mysql group.
But when the virtual functions (configure, pre_snapshot, post_snapshot) try to make changes to the target vFiles mount it fails with permission denied. I tried creating files, removing files, and doing chmod, but they all fail.
Note that the permissions of the target vFile mount is 750 with ownership mysql:mysql (set using ownership_specification), and the delphix_os user is in the mysql group.
The issue looks to be that target mount is 750, which is not letting the delphix_os user make any changes.
I tried to chmod 775 on the mount from virtual.pre_snapshot and virtual.post_snapshot, but it fails with 'chmod: changing permissions of '/target/vdbA/mysql': Operation not permitted. I try at the command line when logged in as delphix_os and get the same thing. I tried as root and got the same thing.
Is there a way to change the permission on the mount point? If not the run_host command, ran as delphix_os, cannot make any changes to the files/directories on the mount.
Also root, even though it is part of the mysql group, cannot cd to the target mount point or look at anything under it? The delphix_os user can at least cd/read. This is an issue because root needs access in order to start the service as the mysql user.
Let me know if you have any questions, suggestions, or would like to discuss.
This is a major issue for us and needs to be resolved before we can deploy the SDK anywhere.
Thanks, Paul
------------------------------
Paul Jauquet
Senior Data Services Consultant
Axis Technology, LLC
------------------------------