Hi List,
I must be going mad or something, but got a really odd problem with NFS mount and a DVD rom.
Here is the situation, /dev/md7 58G 18G 37G 33% /data
which is shared out by NFS, (/etc/exportfs)
This has been working since I installed the OS, Centos 4.4
I have a DVD on that is device /dev/scd0, which I can mount anywhere I like, no problem.
However, the problem comes when I try to mount it under /data/shared/Photos/Archive1.
It mounts ok, and I can see the data on it form the server, but I cannot see this data over the network on any NFS client when mounting /data/shared.
If I mount /devscd0 as /mnt and export that, I can mount the over the network fine.
If I take another device, /dev/md4 and mount in same place, (/data/shared/Photos/Archive1) i cannot see those files over the network either.
I do this kind of thing not quite everyday on Solaris and it just works..
I know I must be missing something, but i'll be b*gger** if I know what.
No messages in any /var/log/* file.
Any ideas would be most appreciated?
Cheers AM
On 5/4/07, Angus MacGyver macgyver@calibre-solutions.co.uk wrote:
Hi List,
I must be going mad or something, but got a really odd problem with NFS mount and a DVD rom.
Here is the situation, /dev/md7 58G 18G 37G 33% /data
which is shared out by NFS, (/etc/exportfs)
Could you post the relevant line from /etc/exports ?
Akemi
On Sat, May 05, 2007 at 12:52:00AM +0100, Angus MacGyver wrote:
Hi List,
I must be going mad or something, but got a really odd problem with NFS mount and a DVD rom.
Here is the situation, /dev/md7 58G 18G 37G 33% /data
which is shared out by NFS, (/etc/exportfs)
This has been working since I installed the OS, Centos 4.4
I have a DVD on that is device /dev/scd0, which I can mount anywhere I like, no problem.
However, the problem comes when I try to mount it under /data/shared/Photos/Archive1.
It mounts ok, and I can see the data on it form the server, but I cannot see this data over the network on any NFS client when mounting /data/shared.
If I mount /devscd0 as /mnt and export that, I can mount the over the network fine.
If I take another device, /dev/md4 and mount in same place, (/data/shared/Photos/Archive1) i cannot see those files over the network either.
I do this kind of thing not quite everyday on Solaris and it just works..
I know I must be missing something, but i'll be b*gger** if I know what.
No messages in any /var/log/* file.
Any ideas would be most appreciated?
Try adding nohide as an option to /etc/exports. See exports(5) for more information about nohide and exporting filesystems with mount points.
On Sat, 2007-05-05 at 01:06 +0100, Luciano Miguel Ferreira Rocha wrote:
On Sat, May 05, 2007 at 12:52:00AM +0100, Angus MacGyver wrote:
Hi List,
I must be going mad or something, but got a really odd problem with NFS mount and a DVD rom.
Here is the situation, /dev/md7 58G 18G 37G 33% /data
which is shared out by NFS, (/etc/exportfs)
This has been working since I installed the OS, Centos 4.4
I have a DVD on that is device /dev/scd0, which I can mount anywhere I like, no problem.
However, the problem comes when I try to mount it under /data/shared/Photos/Archive1.
It mounts ok, and I can see the data on it form the server, but I cannot see this data over the network on any NFS client when mounting /data/shared.
If I mount /devscd0 as /mnt and export that, I can mount the over the network fine.
If I take another device, /dev/md4 and mount in same place, (/data/shared/Photos/Archive1) i cannot see those files over the network either.
I do this kind of thing not quite everyday on Solaris and it just works..
I know I must be missing something, but i'll be b*gger** if I know what.
No messages in any /var/log/* file.
Any ideas would be most appreciated?
Try adding nohide as an option to /etc/exports. See exports(5) for more information about nohide and exporting filesystems with mount points.
Most interesting.
Looked, and applied...
no change..
these are the relevant lines in the /etc/exports
/data/shared/ 172.16.1.0/255.255.255.0(sync,rw,nohide) /data/shared/ 172.16.4.0/255.255.255.0(sync,rw,nohide)
(need to export to different subnets, anything else doesn't work)
Cheers
AM
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Try adding nohide as an option to /etc/exports. See exports(5) for more information about nohide and exporting filesystems with mount points.
Most interesting.
Looked, and applied...
no change..
these are the relevant lines in the /etc/exports
/data/shared/ 172.16.1.0/255.255.255.0(sync,rw,nohide) /data/shared/ 172.16.4.0/255.255.255.0(sync,rw,nohide)
(need to export to different subnets, anything else doesn't work)
Cheers
Did have another look at the nohide option after some sleep, and there is a rather special caveat...
<quote> The nohide option is currently only effective on single host exports. It does not work reliably with netgroup, subnet, or wildcard exports. </quote>
Not really good enough as this data needs to be exported to a whole lot of machines, i.e. two subnets..
Any other thoughts ?
AM
/data/shared/ 172.16.1.0/255.255.255.0(sync,rw,nohide) /data/shared/ 172.16.4.0/255.255.255.0(sync,rw,nohide)
I am not an NFS expert, but in a quick review of man exports ... in the examples at the bottom do not include a trailing slash on the source path. It is probably nothing, but an easy thing to try.
Barry
On 5/5/07, Barry Brimer lists@brimer.org wrote:
/data/shared/ 172.16.1.0/255.255.255.0(sync,rw,nohide) /data/shared/ 172.16.4.0/255.255.255.0(sync,rw,nohide)
I am not an NFS expert, but in a quick review of man exports ... in the examples at the bottom do not include a trailing slash on the source path. It is probably nothing, but an easy thing to try.
Trailing slash is ok. It will work.
Akemi
Try adding nohide as an option to /etc/exports. See exports(5) for more information about nohide and exporting filesystems with mount points.
Most interesting.
Looked, and applied...
no change..
these are the relevant lines in the /etc/exports
/data/shared/ 172.16.1.0/255.255.255.0(sync,rw,nohide) /data/shared/ 172.16.4.0/255.255.255.0(sync,rw,nohide)
Hi,
I was under the impression that nfs exports a filesystem in its entirety. Therefore, if you have another filesytem mounted in a subdirectory, you have to export it too, as it will not be exported for you. You therefore might have to have two entries:
/data/shared/ 172.16.1.0/255.255.255.0(sync,rw,nohide) /data/shared/Photos/Archive1 172.16.1.0/255.255.255.0(sync,ro)
I hope that helps. If nohide does not work, then you will have you use two mounts on the clients.
A.
(need to export to different subnets, anything else doesn't work)
Cheers
Did have another look at the nohide option after some sleep, and there is a rather special caveat...
<quote> The nohide option is currently only effective on single host exports. It does not work reliably with netgroup, subnet, or wildcard exports. </quote>
Not really good enough as this data needs to be exported to a whole lot of machines, i.e. two subnets..
Any other thoughts ?
AM
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos