Red Hat ENTERPRISE LINUX 5 - VIRTUALIZATION GUIDE Guida di Installazione Pagina 225

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 224
Directory-based storage pools
215
The storage pool is now created, close the Host Details window.
26.1.3.2. Creating a directory-based storage pool with virsh
1. Create the storage pool definition
Use the virsh pool-define-as command to define a new storage pool. There are two
options required for creating directory-based storage pools:
The name of the storage pool.
This example uses the name guest_images_dir. All further virsh commands used in this
example use this name.
The path to a file system directory for storing virtualized guest image files . If this directory
does not exist, virsh will create it.
This example uses the /guest_images directory.
# virsh pool-define-as guest_images_dir dir - - - - "/guest_images"
Pool guest_images_dir defined
2. Verify the storage pool is listed
Verify the storage pool object is created correctly and the state reports it as inactive.
# virsh pool-list --all
Name State Autostart
-----------------------------------------
default active yes
guest_images_dir inactive no
Vedere la pagina 224
1 2 ... 220 221 222 223 224 225 226 227 228 229 230 ... 329 330

Commenti su questo manuale

Nessun commento