Editing Virsh pool-define-as
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
− | <code>virsh<ref>https://linux.die.net/man/1/virsh</ref> pool-define-as name type</code> | + | <code>virsh<ref>https://linux.die.net/man/1/virsh</ref> pool-define-as name type</code><pre> |
− | |||
− | |||
− | <pre> | ||
[--source-host hostname] | [--source-host hostname] | ||
[--source-path path] | [--source-path path] | ||
Line 20: | Line 17: | ||
== Create a pool == | == Create a pool == | ||
=== Create a permanent, autostart pool of type dir === | === Create a permanent, autostart pool of type dir === | ||
− | + | <pre>virsh pool-define-as MY_STORAGE_POOL --type dir --target /var/lib/[[libvirt]]/MY_STORAGE_POOL_PATH | |
− | + | Pool VMStore defined</pre> | |
− | |||
− | + | <pre>virsh pool-autostart MY_STORAGE_POOL | |
− | + | Pool VMStore marked as autostarted</pre> | |
− | + | <code>[[virsh pool-start]] MY_STORAGE_POOL</code> | |
− | |||
=== Review creation === | === Review creation === | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<code>[[virsh pool-info]] MY_STORAGE_POOL</code> | <code>[[virsh pool-info]] MY_STORAGE_POOL</code> | ||
<pre> | <pre> | ||
Line 51: | Line 39: | ||
− | <code>[[virsh vol-list]] MY_STORAGE_POOL --details</code> | + | <code>[[virsh/virsh vol-list|virsh vol-list]] MY_STORAGE_POOL --details</code> |
<pre> | <pre> | ||
Name Path Type Capacity Allocation | Name Path Type Capacity Allocation | ||
Line 60: | Line 48: | ||
# Understand differences between <code>pool-define</code>, <code>pool-define-as</code> and <code>pool-create</code>, <code>pool-create-as</code> | # Understand differences between <code>pool-define</code>, <code>pool-define-as</code> and <code>pool-create</code>, <code>pool-create-as</code> | ||
# Create a Persistent storage pool | # Create a Persistent storage pool | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == |
Advertising: