Setup/configure autofs
Steps on server
1. Iinstall autofs packages
2. Create master-map file
3. Create mapping-file
4. Enable autofs
5. Start autofs
on Client
Client mount
To use indirect wildcard mapping in mapping file, use the following entry
* -rw,sync <server>:<sharename>/&
master map file entry for home directory (autofs)
# cat /etc/auto.master
/home/<dir> /etc/auto.home
home directory mapping file entry
# cat /etc/auto.home
* -rw,sync <server>:/home/<dir>/&
Steps on server
1. Iinstall autofs packages
2. Create master-map file
3. Create mapping-file
4. Enable autofs
5. Start autofs
on Client
Client mount
To use indirect wildcard mapping in mapping file, use the following entry
* -rw,sync <server>:<sharename>/&
master map file entry for home directory (autofs)
# cat /etc/auto.master
/home/<dir> /etc/auto.home
home directory mapping file entry
# cat /etc/auto.home
* -rw,sync <server>:/home/<dir>/&
No comments:
Post a Comment