Red Hat LINUX VIRTUAL SERVER 4.6 - ADMINISTRATION Manuale di Installazione Pagina 169

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 296
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 168
Chapter 8. Installing and configuring the golden image 149
To configure automount, perform the following steps:
1. Make a backup copy of the /etc/auto.master file and add the following line at the bottom:
# cd /etc
# cp auto.master auto.master.orig
# vi auto.master // add one line at the bottom
...
#
+auto.master
/nfs /etc/auto.cloner
2. The new line specifies that the file system mounted under the /nfs/ directory will be
configured in the /etc/auto.cloner file. Now create the /etc/auto.cloner file, and add
one line that points to the RHEL 6 installation tree that is NFS-exported from the cloner:
# vi auto.cloner
rhel6 -ro,hard,intr 9.60.18.223:/nfs/rhel6
This line specifies that under /nfs/ (in auto.master), when the rhel6/ directory (field 1) is
accessed, the automounter will use the specified options (field 2) to mount the directory
(field 3).
3. Create the /nfs/ directory. Restart the autofs service to pick up the new configuration. List
the contents of the /nfs/rhel6/ directory. Even though this directory does not exist as a
local file system, it is automatically mounted when referenced:
# mkdir /nfs
# service autofs reload
Reloading maps
4. Show that the /nfs/rhel6/ directory is automatically mounted:
# ls /nfs/rhel6
boot.cat RELEASE-NOTES-es-ES.html RELEASE-NOTES-pt-BR.html
EULA RELEASE-NOTES-fr-FR.html RELEASE-NOTES-ru-RU.html
...
8.2.2 Configuring the yum command for online updates
You now configure the yum command so it can install RPMs from the automounted installation
tree. The configuration is identical to the cloner because in both instances the installation tree
is in the /nfs/rhel6/ directory. However, on the cloner, this directory is local, while on the
golden image (and later the clones), the directory is automounted.
To configure the yum command, perform the following steps:
1. You could create a file named rhel6.repo in the /etc/yum.repos.d directory again, or you
could copy the same file from the cloner that you created previously. In this example, the
scp command is used to copy the file:
# cd /etc/yum.repos.d
# scp gpok223:/etc/yum.repos.d/rhel6.repo .
The authenticity of host 'gpok223 (9.60.18.223)' can't be established.
RSA key fingerprint is 37:5f:83:99:ba:9e:10:14:04:65:06:e1:11:d9:d9:cd.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'gpok223,9.60.18.223' (RSA) to the list of known
hosts.
root@gpok223's password:
rhel6.repo 100% 73 0.1KB/s 00:00
Vedere la pagina 168
1 2 ... 164 165 166 167 168 169 170 171 172 173 174 ... 295 296

Commenti su questo manuale

Nessun commento