second hard disk will not mount on client
I have a second hard drive installed on server. It has been mounted on server but I cannot mount it on client. I've tried to export it from server by putting:
in server's /etc/exports.
In server's /etc/fstab, I have the entry:
/dev/hdb1 /opt2 ext3 defaults 1 2
In client's /etc/fstab, I put:
name.domain:/opt2 /opt2mnt nfs defaults 0 0
When trying to mount I get:
mount: name.domain:/opt2 failed, reason given by server: Permission denied
I've also try to mount it on client manually by:
mount -t nfs name.domain:/opt2 /opt2mnt
I am also mounting server's home directory on client, without problems, so I'd say NFS works fine.
Does anybody have an idea what might cause the problem?
Did you run "exportfs -a" after editing /etc/exports on the server?
Have you run "exportfs" to verify it shows as exported?
Thank you for your reply.
I did do exportfs -a and I did verify exports with exportfs. It shows my entry: /opt2 name.domain
I've also restarted nfs. I've rebooted server and client too, but to no avail.
Could it be that I have to change some permissions?
Here are permissions for opt2 folder on server:
drwxr-xr-x root root
The opt2 folder contains hdb1. Permissions of hdb1 are:
drwxrwxrwx root root
I don't see anything wrong with these permissions but I am far away from being a linux expert.
|All times are GMT -5. The time now is 01:12 PM.|