System information
62 Sharing and maintaining SLES 10 SP2 Linux under z/VM
echo ""
echo "Making logical volumes ..."
fdasd -a $dev22b0
pvcreate "$dev22b0"1
vgcreate rwVG "$dev22b0"1
lvcreate -L 200M -n varLV rwVG
lvcreate -L 1.2G -n srvLV rwVG
mke2fs /dev/rwVG/varLV > /dev/null
mke2fs /dev/rwVG/srvLV > /dev/null
echo ""
echo "Mounting logical volumes ..."
vgscan
vgchange -ay
mount /dev/rw_vg/srv_lv /mnt/target/srv
mount /dev/rw_vg/var_lv /mnt/target/var
}
1.8.2 Implementing /home/ with automount, NFS and LDAP
It is convenient for system administrators and developers to keep their work in their own
home directory under /home/. With tens or even hundreds of Linux systems you would
normally have tens or even hundreds of home directories. The size requirement for this file
system would vary widely from server to server.
It is easier to manage a single large /home/ directory that “follows users around” This can be
implemented with the automount service, NFS and LDAP. LDAP allows for central
authentication and authorization of users and resources. Following is a block diagram:
Figure 1-18 Auto-mounted /home/ block diagram
For details on how to implement this, see the IBM Redbook z/VM and Linux on IBM System z
The Virtualization Cookbook for SLES 10 SP2, SG24-7493, on the Web at:
http://www.redbooks.ibm.com/abstracts/sg247493.html
AUTOMNT
LINUX003
LINUX002
LINUX001
LDAP server
NFS server
LDAP client
PAM, NSS
NFS client
automount service
/var/lib/ldap
/home/
file system
LDAP
authentication
NFS
automounting