From Fedora Project Wiki
(Created page with '{{QA/Test_Case |description= |actions= # create a logical pool #: <pre> #: # pvcreate /dev/sda3 #: # vgcreate lv_pool /dev/lv_pool #: # virsh pool-create-as lv_pool logical --so...') |
(Corrected syntax) |
||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description= | |description=Tests virt pool creation and removal. | ||
|actions= | |actions= | ||
<ol> | |||
<li> create a logical pool | |||
<pre> | |||
# pvcreate /dev/sda3 | |||
# vgcreate lv_pool /dev/lv_pool | |||
# virsh pool-create-as lv_pool logical --source-dev /dev/sda3 --target /dev/lv_pool | |||
Pool lv_pool created | |||
</pre> | |||
<li> destroy the logical pool | |||
<pre> | |||
# virsh pool-destroy lv_pool | |||
Pool lv_pool destroyed | |||
</pre> | |||
<li> create a logical pool with arg ''source-name'' <pre>#virsh pool-create-as lv_pool logical --source-name sda3 --target /dev/lv_pool</pre> | |||
<li> destroy the logical pool | |||
<pre> | |||
# virsh pool-destroy lv_pool | |||
Pool lv_pool destroyed | |||
</pre> | |||
</ol> | |||
|results= | |results= | ||
<ol> | |||
<li> step#1 output: | |||
<pre> | |||
# virsh pool-list --all | |||
Name State Autostart | |||
----------------------------------------- | |||
default active yes | |||
lv_pool active no | |||
</pre> | |||
<li> step#2 output: | |||
<pre> | |||
# virsh pool-list --all | |||
Name State Autostart | |||
----------------------------------------- | |||
default active yes | |||
</pre> | |||
<li> step#3 output: | |||
<pre> | |||
# virsh pool-list --all | |||
Name State Autostart | |||
----------------------------------------- | |||
default active yes | |||
lv_pool active no | |||
</pre> | |||
<li> step#4 output: | |||
<pre> | |||
# virsh pool-list --all | |||
Name State Autostart | |||
----------------------------------------- | |||
default active yes | |||
</pre> | |||
</ol> | |||
}} | }} | ||
[[Category:Virtualization_libvirt_Test_Cases]] | [[Category:Virtualization_libvirt_Test_Cases]] |
Latest revision as of 19:45, 14 April 2011
Description
Tests virt pool creation and removal.
How to test
- create a logical pool
# pvcreate /dev/sda3 # vgcreate lv_pool /dev/lv_pool # virsh pool-create-as lv_pool logical --source-dev /dev/sda3 --target /dev/lv_pool Pool lv_pool created
- destroy the logical pool
# virsh pool-destroy lv_pool Pool lv_pool destroyed
- create a logical pool with arg source-name
#virsh pool-create-as lv_pool logical --source-name sda3 --target /dev/lv_pool
- destroy the logical pool
# virsh pool-destroy lv_pool Pool lv_pool destroyed
Expected Results
- step#1 output:
# virsh pool-list --all Name State Autostart ----------------------------------------- default active yes lv_pool active no
- step#2 output:
# virsh pool-list --all Name State Autostart ----------------------------------------- default active yes
- step#3 output:
# virsh pool-list --all Name State Autostart ----------------------------------------- default active yes lv_pool active no
- step#4 output:
# virsh pool-list --all Name State Autostart ----------------------------------------- default active yes