[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to add a shared folder in Debian Edu

[Giorgio Pioda]
> Would be interesting to document how to mount homedirs from other
> servers to make some load balancing.

If the otherserver.intern machine do not need to mount anything from
tjener, it is fairly easy.  Add these LDAP objects:

  ## the /skole/otherserver submount
  dn: cn=otherserver,ou=auto.skole,ou=automount,dc=skole,dc=skolelinux,dc=no
  objectClass: automount
  cn: otherserver
  automountInformation: -fstype=autofs --timeout=60 ldap:ou=auto.otherserver,ou=automount,dc=skole,dc=skolelinux,dc=no

  dn: ou=auto.otherserver,ou=automount,dc=skole,dc=skolelinux,dc=no
  objectClass: top
  objectClass: automountMap
  ou: auto.otherserver

  ## the /skole/otherserver/* mount points
  dn: cn=/,ou=auto.otherserver,ou=automount,dc=skole,dc=skolelinux,dc=no
  objectClass: automount
  cn: /
  automountInformation: -fstype=nfs4,tcp,rw,intr,hard,nodev,nosuid otherserver.intern:/&

Cross mounting using autofs is a lot harder, because some of the mount
points in LDAP need to be ignored on each NFS srever.  I have no idea
how to implemnt that using LDAP.
Happy hacking
Petter Reinholdtsen

Reply to: