GoConqr has a new look! Let us know what you think.

Notes

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

Vagner Aragão EX200 RHCSA Portuguese 1 page

Content of the notes (1)

Page 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

Information

Description
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.
Created by
Vagner Aragão
Views
4
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?