
Chapter 13. Miscellaneous recipes 187
# df -h | grep home
/dev/mapper/homevg-homelv
12G 152M 11G 2% /home
You have now added the new minidisk as free space to the existing logical volume. Test your
changes by rebooting your system:
# reboot
...
13.3 Centralizing home directories for LDAP users
If you have completed 12.2, “Creating a virtual LDAP server” on page 164, you have a
working LDAP authentication server that provides centralized login authentication.
If you have completed 13.1, “Adding a logical volume” on page 180, you have a larger file
system mounted over /home/ for storing user data.
Now you can bring these together with the automount service to have a centralized /home file
system. In this fashion, users can log in to all virtual servers using the same credentials and
be able to access the same data. Further, you can modify the golden image so that all newly
cloned virtual servers will inherit this setup. Figure 13-2 is a block diagram
Figure 13-2 Block diagram of centralized LDAP authentication and automounted /home file system
13.3.1 Configuring the NFS server
Configure LINUX02 to export /home over NFS.
Start an SSH session to the virtual server running on LINUX02. Add one line to the
/etc/exports file:
# vi /etc/exports
/home *(rw,sync)
Set the NFS service to start at boot time using the chkconfig command, and for this session
using the service command:
# chkconfig nfs on
LINUX02
LINUX05
LINUX04
LINUX03
LDAP server
NFS server
LDAP client
PAM, NSS
NFS client
automount service
/var/lib/ldap
/home/
file system
LDAP
authentication
NFS
automounting
Komentarze do niniejszej Instrukcji