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 MY_STORAGE_POOL defined</pre> | |
− | |||
− | + | # <pre>virsh pool-autostart MY_STORAGE_POOL | |
− | + | Pool MY_STORAGE_POOL marked as autostarted</pre> | |
− | + | # <code>[[virsh pool-start]] MY_STORAGE_POOL</code> | |
− | + | Pool MY_STORAGE_POOL started | |
=== Review creation === | === Review creation === | ||
− | + | virsh pool-list | |
Name State Autostart | Name State Autostart | ||
------------------------------------------- | ------------------------------------------- | ||
Line 61: | Line 57: | ||
# Create a Persistent storage pool | # Create a Persistent storage pool | ||
# Create a Persistent storage pool and migrate some machines: [[Offline Migrate or move a virtual machine between two KVM servers without shared storage]] | # Create a Persistent storage pool and migrate some machines: [[Offline Migrate or move a virtual machine between two KVM servers without shared storage]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == |
Advertising: