GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Notizen

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

Vagner Aragão EX200 RHCSA Portugiesisch 1 Seite

Inhalt der Notizen (1)

Seite 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

Informationen

Beschreibung
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.
Erstellt von
Vagner Aragão
Aufrufe
4
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck