autofs subdirectories
I have configured autofs in my box and it is working. cd to /data/files is successful.
Code:
[root@karagor etc]# cat auto_master | grep data Code:
[root@karagor etc]# cat auto_data Has anyone already experience this kind of setup? Is this possible to configure? Any advise? BR, Packets |
If you're mounting /vol/data of "files" you will get everything within /vol/data including secretary/folders, so why do you need the second automount at all?
|
Quote:
Code:
[root@karagor etc]# cat auto_master | grep data |
I think it's problematic because when autofs starts, it will try to create an empty directory /data/files/secretary, thereby triggering the mount of /data, leaving it always mounted.
The only solution I see to your problem is (auto)mounting each subdirectory of /data separately Avishay. |
as you have multiple NFS shares, each share should have its own autofs entry and its own mount point. do not mount a share within a share.
NFS share_1 gets mount_point_1 NFS share_2 gets mount_point_2 etc... |
Quote:
Code:
[root@karagor etc]# cat auto_data |
Quote:
Code:
files - booger:/vol/data you have server booger mounting in ~/files then you have server cereal also mounting inside ~/files this is unwise and can cause issues. a better idea might be to have them mount to different locations, then maybe symlink them to a single location, but even that im not 100% sure is a good idea. with autofs, the directory ~/files is EMPTY until you access it. Once you access that directory then what ever is shared via booger is going to appear in that directory and to the user look no different and act no different then if it were a local file/directory they would access any normal way. that means files/secretary/folders will never be seen by any user with autofs as /secretary/folders are not on server booger, but on server cereal. the /etc/exports from booger will not have that path unless you created it and then you are just creating shares within shares. its a nasty loop to put yourself in. |
All times are GMT -5. The time now is 07:49 PM. |