Wednesday, April 29, 2009

Permission denied for root on NFS volume

If NFS volume exported with root= option (allow root write access as root) and root on client cannot write a file on mounted NFS volume, flipping R/W permissions for a folder where NFS mounted may solve the problem.

Example: mysql prod slave mounted NFS from datastorage but during starting mysqd there was an error "Permissions denied" (procedure changes ownership of /var/lib/mysql under root). Setting permissions to 777 and back to 755 solved this problem.

No comments: