¡GoConqr estrena diseño! Cuéntanos qué te parece.

Apuntes

Exercise 6-4: Create a Storage Pool and Volume Using virsh

Vagner Aragão EX200 RHCSA Portugués 1 página

Contenido del apunte (1)

Página 1

In this exercise, you will use the virsh command to create a file-based storage pool called rhpol_virsh and add a 10GB volume called rhvol_virsh to it. You will use file system directory as the pool type and /var/lib/libvirt/rhpol_virsh as its location. You will ensure that the permissions on the pool directory are 0755, with ownership and group belonging to the root user. You will activate this storage pool and set it to autostart at each system reboot.

1. View avaliable storages

$ virsh pool-list

2. Create pool directory

mkdir /var/lib/libvirt/rhpol_virsh

3. Create a pool as type dir

$ virsh pool-define-as rhpol_virsh dir ---- /var/lib/libvirt/rhpol_virsh

4. Set automatic startup

$ virsh pool-autostart rhpol_virsh

5. Start now

$ virsh pool-start rhpol_virsh

6. Create a volume in pool

$ virsh vol-create-as rhpol_virsh rhvol_virsh 10G

7. List volumes

$ virsh vol-list rhpool_virsh

Información

Descripción
In this exercise, you will use the virsh command to create a file-based storage pool called rhpol_virsh and add a 10GB volume called rhvol_virsh to it. You will use file system directory as the pool type and /var/lib/libvirt/rhpol_virsh as its location. You will ensure that the permissions on the pool directory are 0755, with ownership and group belonging to the root user. You will activate this storage pool and set it to autostart at each system reboot.
Creado por
Vagner Aragão · ene 2019
Actualizado
25 ene 2019
Visitas
4
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?