Chapter 6. Configuring a Network File System server for RHEL 5.2 89
make the files associated with this book available. First make a backup copy of the file. Then
edit the original copy and add the two directories as follows:
# cd /etc
# cp exports exports.orig
# vi exports // add two lines
/nfs/rhel5.2 *(ro,sync)
/nfs/virt-cookbook-RH5.2 *(ro,sync)
The *(ro,sync) parameter specifies that any client with access to this server can get the NFS
mount read-only. You may want to be more restrictive than allowing any client (using the *)
for security reasons. Type man exports for more details.
Set the NFS server to start using the chkconfig command and start it on for the current
session with the service nfs start command:
# chkconfig nfs on
# chkconfig --list nfs
nfs 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# service nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
Your NFS server should now be running with the directory exported. We recommend that you
test this by mounting the exported directory locally. The following example shows that the
/mnt/ directory is empty. Then the newly exported /nfs/ directory is mounted and the files
are listed.
# mkdir /mnt/tmp
# mount localhost:/nfs/rhel5.2/ /mnt/tmp
# ls -F /mnt/tmp
EULA README-or.html RELEASE-NOTES-ja.html
eula.en_US README-pa.html RELEASE-NOTES-ko.html
generic.ins README-pt_BR.html RELEASE-NOTES-ml.html
GPL README-ru.html RELEASE-NOTES-mr.html
images/ README-si.html RELEASE-NOTES-or.html
...
This shows that the RHEL 5.2 install tree is accessible using NFS. Now unmount it and test
the virt-cookbook-RH5.2/ directory:
# umount /mnt/tmp
# mount localhost:/nfs/virt-cookbook-RH5.2 /mnt/tmp
# ls -F /mnt/tmp
clone-1.0-5.s390x.rpm README.txt vm/
# umount /mnt/tmp
You should now be able to use this server as the source of a RHEL 5.2 mainframe Linux
installation. Later you will be able to copy the install tree to a System z Linux virtual
server.
Comentarios a estos manuales