27.12.2012 Views

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

# cp exports exports.orig<br />

# vi exports // add two lines<br />

/nfs/rhel6 *(ro,sync)<br />

/nfs/virt-cookbook-RH6 *(ro,sync)<br />

<strong>The</strong> *(ro,sync) parameter specifies that any client with access to this server can get the NFS<br />

mount read-only. You may want to be more restrictive than allowing any client (with the “*”)<br />

<strong>for</strong> security reasons. Type man exports <strong>for</strong> more details.<br />

Set the NFS server to start with the chkconfig command and start it on <strong>for</strong> the current session<br />

with the service nfs start command:<br />

# chkconfig nfs on<br />

# chkconfig --list nfs<br />

nfs 0:off 1:off 2:on 3:on 4:on 5:on 6:off<br />

# service nfs start<br />

Starting NFS services: [ OK ]<br />

Starting NFS quotas: [ OK ]<br />

Starting NFS daemon: [ OK ]<br />

Starting NFS mountd: [ OK ]<br />

Your NFS server should now be running with the directory exported. It is recommended that<br />

you test this by mounting the exported directory locally. <strong>The</strong> following example shows that the<br />

/mnt/ directory is empty. <strong>The</strong>n the newly exported /nfs/ directory is mounted and the files<br />

are listed.<br />

# mkdir /mnt/tmp<br />

# mount localhost:/nfs/rhel6/ /mnt/tmp<br />

# ls -F /mnt/tmp<br />

EULA README-or.html RELEASE-NOTES-ja.html<br />

eula.en_US README-pa.html RELEASE-NOTES-ko.html<br />

generic.ins README-pt_BR.html RELEASE-NOTES-ml.html<br />

GPL README-ru.html RELEASE-NOTES-mr.html<br />

images/ README-si.html RELEASE-NOTES-or.html<br />

...<br />

This shows that the RHEL 6 install tree is accessible through NFS. Now unmount it and test<br />

the virt-cookbook-RH6/ directory:<br />

# umount /mnt/tmp<br />

# mount localhost:/nfs/virt-cookbook-RH6 /mnt/tmp<br />

# ls -F /mnt/tmp<br />

clone-1.0-9.s390x.rpm README.txt vm/<br />

# umount /mnt/tmp<br />

You should now be able to use this server as the source of a RHEL 6 mainframe Linux<br />

installation. Later you will be able to copy the install tree to a System z Linux virtual<br />

server.<br />

Chapter 6. Configuring an NFS/FTP server 97

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!