Hello,
I am looking for a solution to mount two different NFS exports on a same mountpoint in order to have this kind of configuration
server1:/path on /s/work server2:/path on /s/work
/s/work : - fileA_server1 - fileB_server1 - fileA_server2 - fileB_server2
The /s/work mountpoint is provided by autofs/sssd and the map is on an LDAP autofs OU.
I have tried many solutions, but I want to avoid the symlink to another mounted directory solution. Can anyone help ?
thanks, J
On Fri, 2 Dec 2016, john lehardos wrote:
Hello,
I am looking for a solution to mount two different NFS exports on a same mountpoint in order to have this kind of configuration
server1:/path on /s/work server2:/path on /s/work
/s/work :
- fileA_server1
- fileB_server1
- fileA_server2
- fileB_server2
The /s/work mountpoint is provided by autofs/sssd and the map is on an LDAP autofs OU.
I have tried many solutions, but I want to avoid the symlink to another mounted directory solution. Can anyone help ?
Do you not actually just want /s/work to be a map that includes four automounts?
jh
Hello,
The fact is I have migrated some directories from a NAS1 to a NAS2, and I need to keep exactly the same path of all directories after they will be mounted on the clients.
All the directory are on the root of the nfs exports , so if I use your advise, I should create one map per directories to preserve the path (we are speaking about 100s directories) ; because I can't (as I know) have two maps with the same name (cn=/s/work )
J
as an example if I do the following manually :
mount serverA:/root/prods /s/prods and next mount serverB:/root/prods/work /s/prods/work
This more or less achieves what I am looking for.
But how to do such like mount in an ldap automount map ?
thanks for helping. J
You can't do this with automounter. What you could do is: a) use symlinks (say /s/prods/work -> /s/prods_work) b) use NFSv4 referrals
-----Original Message----- From: johnlehardos@hotmail.com [mailto:johnlehardos@hotmail.com] Sent: Monday, December 05, 2016 8:42 PM To: sssd-users@lists.fedorahosted.org Subject: [SSSD-users] Re: Multiple mount autofs/sssd
as an example if I do the following manually :
mount serverA:/root/prods /s/prods and next mount serverB:/root/prods/work /s/prods/work
This more or less achieves what I am looking for.
But how to do such like mount in an ldap automount map ?
thanks for helping. J _______________________________________________ sssd-users mailing list -- sssd-users@lists.fedorahosted.org To unsubscribe send an email to sssd-users-leave@lists.fedorahosted.org
-----
The information contained in this e-mail and in any attachments is confidential and is designated solely for the attention of the intended recipient(s). If you are not an intended recipient, you must not use, disclose, copy, distribute or retain this e-mail or any part thereof. If you have received this e-mail in error, please notify the sender by return e-mail and delete all copies of this e-mail from your computer system(s). Please direct any additional queries to: communications@s3group.com. Thank You. Silicon and Software Systems Limited (S3 Group). Registered in Ireland no. 378073. Registered Office: South County Business Park, Leopardstown, Dublin 18.
humm .. not a good news for me.
1. the source filesystem is a "cluster namespace" (something like a DFS root) from a commercial clustered NAS solution... symlinks are not available on the root this namespace.
2. due to system heterogeneity, we can't provide a NFSv4 from now ; only v3.
Is there a way to do it in static mode, and be sure the mount script will be executed after the automounted maps ?
J
I've finally found a solution ...
I used an systemd mount unit triggered after the autofs. In that way the mount unit override the existing directory on the already mounted auto.master map.
Thanks. Jonathan
sssd-users@lists.fedorahosted.org