Last active
July 19, 2018 19:09
-
-
Save dannysauer/f58047ab9cee885e723380ff8768a57a to your computer and use it in GitHub Desktop.
creating an LVM pool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# creating a new VG with the second hard disk in the system | |
sudo virsh pool-define-as default logical - - /dev/sdb libvirt_lvm /dev/libvirt_lvm | |
sudo virsh pool-build default --overwrite | |
sudo virsh pool-start default | |
# as a directory | |
sauer@helium:~/kubic-project/automation> virsh pool-edit default | |
<pool type='dir'> | |
<name>default</name> | |
<uuid>fdab5cc0-94a6-4349-892c-1fe133158406</uuid> | |
<capacity unit='bytes'>0</capacity> | |
<allocation unit='bytes'>0</allocation> | |
<available unit='bytes'>0</available> | |
<source> | |
</source> | |
<target> | |
<path>/home/sauer/kubic-project/virsh_pool</path> | |
</target> | |
</pool> | |
sauer@helium:~/kubic-project/automation> virsh pool-build default | |
sauer@helium:~/kubic-project/automation> virsh pool-start default | |
sauer@helium:~/kubic-project/automation> virsh pool-autostart default | |
# as a logical volume / partition | |
sauer@helium:~/kubic-project/automation> sudo mkdir /srv/libvirt | |
sauer@helium:~/kubic-project/automation> sudo virsh pool-create-as default fs --source-dev /dev/vg00/srv_libvirt --target /srv/libvirt | |
Pool default created |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment