collin@p3:~> cat /etc/auto.masterbut it doesn't now :( Instead I ended up doing this in
/home2 /etc/auto.home udp,--timeout 60
etc...
collin@p3:~> cat /etc/auto.home
collin -rw,hard,intr,rsize=4096,wsize=4096,udp p4:/home/collin
etc...
/etc/auto.master
: /mnt/home /etc/auto.mnt-home udp,--timeout 60The directory
collin@p3:~> cat /etc/auto.mnt-home
collin -rw,hard,intr,rsize=4096,wsize=4096,udp p4:/home/collin
etc...
/mnt
must exist before starting autofs, but /mnt/home
need not exist (must not exist?? I'm not sure but am not inclined to experiment now that it all finally works). I seem to remember from a Long Time Ago that it was considered bad medicine to NFS-mount toplevel directories (e.g., /data1) -- better to symlink /data1 to /mnt/data1 and NFS-mount the latter. So I've just made up a new superstition, let autofs create directories at least one level down. Thus, I have a pre-existing directory /mnt and I tell autofs to create /mnt/home, /mnt/data, and so on.So if you're getting unexplained 521s when trying to mount stuff with autofs, this might have something to do with it.
No comments:
Post a Comment