Difference between revisions of "Virsh pool-define-as"
Jump to navigation
Jump to search
↑ https://linux.die.net/man/1/virsh
(Created page with "<code>virsh pool-define-as</code> Create a permanent pool but do not start it. <code>virsh<ref>https://linux.die.net/man/1/virsh</ref> pool-define-as name type</code><pre>...") |
|||
Line 23: | Line 23: | ||
Pool VMStore marked as autostarted</pre> | Pool VMStore marked as autostarted</pre> | ||
− | <code>[[ | + | <code>[[virsh pool-start]] MY_STORAGE_POOL</code> |
=== Review creation === | === Review creation === |
Revision as of 13:17, 6 January 2020
virsh pool-define-as
Create a permanent pool but do not start it.
virsh[1] pool-define-as name type
[--source-host hostname] [--source-path path] [--source-dev path] [--source-name name] [--target path] [--source-format format] [--auth-type authtype --auth-username username [--secret-usage usage |--secret-uuid uuid]] [[--adapter-name name] [--adapter-wwnn --adapter-wwpn] [--adapter-parent parent]] [--print-xml]
Contents
Create a pool
Create a permanent, autostart pool of type dir
virsh pool-define-as MY_STORAGE_POOL --type dir --target /var/lib/[[libvirt]]/MY_STORAGE_POOL_PATH Pool VMStore defined
virsh pool-autostart MY_STORAGE_POOL Pool VMStore marked as autostarted
virsh pool-start MY_STORAGE_POOL
Review creation
virsh pool-info MY_STORAGE_POOL
Name: MY_STORAGE_POOL UUID: 4a208Ra0-tf7x-49b6-9ad7-47e71dfeb82d State: inactive Persistent: yes Autostart: yes Capacity: 9.02 TiB Allocation: 2.16 TiB Available: 6.87 TiB
virsh vol-list MY_STORAGE_POOL --details
Name Path Type Capacity Allocation ----------------------------------------
Activities
- Understand differences between
pool-define
,pool-define-as
andpool-create
,pool-create-as
- Create a Persistent storage pool
See also
virsh
: Storage information, Connecting, Operations, Memory, Snapshots, Networking, CPU, release notes,virsh nodedev-list
- KVM, Installation, QEMU,
virsh
,virtinst
,libguestfs-tools
, libvirt, qemu, Red Hat Virtualization (RHV), MacVTap, Virtio, oVirt, KVM services, KVM networking, KVM graphics, CPU, KVM on ARM
Advertising: