12.4.
12.4.1. 复制链接链接已复制到粘贴板!
# virsh pool-define ~/guest_images.xml
Pool defined from guest_images_dir
|
|
|
|
|
|
|
|
|
<pool type='dir'>
<name>dirpool</name>
<target>
<path>/guest_images</path>
</target>
</pool>
12.4.2. 复制链接链接已复制到粘贴板!
# virsh pool-define ~/guest_images.xml
Pool defined from guest_images_disk
|
|
|
|
|
|
|
|
|
|
|
|
<pool type='disk'>
<name>phy_disk</name>
<source>
<device path='/dev/sdb'/>
<format type='gpt'/>
</source>
<target>
<path>/dev</path>
</target>
</pool>
12.4.3. 复制链接链接已复制到粘贴板!
# virsh pool-define ~/guest_images.xml
Pool defined from guest_images_fs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<pool type='fs'>
<name>guest_images_fs</name>
<source>
<device path='/dev/sdc1'/>
<format type='auto'/>
</source>
<target>
<path>/guest_images</path>
</target>
</pool>
12.4.4. 复制链接链接已复制到粘贴板!
# virsh pool-define ~/guest_images.xml
Pool defined from guest_images_glusterfs
|
|
|
|
|
|
|
|
|
|
|
|
<pool type='gluster'>
<name>Gluster_pool</name>
<source>
<host name='111.222.111.222'/>
<dir path='/'/>
<name>gluster-vol1</name>
</source>
</pool>
12.4.5. 复制链接链接已复制到粘贴板!
# virsh pool-define ~/guest_images.xml
Pool defined from guest_images_iscsi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<pool type='iscsi'>
<name>iSCSI_pool</name>
<source>
<host name='server1.example.com'/>
<device path='iqn.2010-05.com.example.server1:iscsirhel7guest'/>
</source>
<target>
<path>/dev/disk/by-path</path>
</target>
</pool>
12.4.6. 复制链接链接已复制到粘贴板!
# virsh pool-define ~/guest_images.xml
Pool defined from guest_images_logical
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<source>
<device path='/dev/sda1'/>
<device path='/dev/sdb3'/>
<device path='/dev/sdc2'/>
...
</source>
<pool type='logical'>
<name>guest_images_lvm</name>
<source>
<device path='/dev/sdc'/>
<name>libvirt_lvm</name>
<format type='lvm2'/>
</source>
<target>
<path>/dev/libvirt_lvm</path>
</target>
</pool>
12.4.7. 复制链接链接已复制到粘贴板!
# virsh pool-define ~/guest_images.xml
Pool defined from guest_images_netfs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<pool type='netfs'>
<name>nfspool</name>
<source>
<host name='file_server'/>
<format type='nfs'/>
<dir path='/home/net_mount'/>
</source>
<target>
<path>/var/lib/libvirt/images/nfspool</path>
</target>
</pool>
12.4.8. 复制链接链接已复制到粘贴板!
# virsh pool-define ~/guest_images.xml
Pool defined from guest_images_vhba
|
|
|
|
|
|
|
|
|
|
|
|
<pool type='scsi'> <name>vhbapool_host3</name> <source> <adapter type='fc_host' wwnn='5001a4a93526d0a1' wwpn='5001a4ace3ee047d'/> </source> <target> <path>/dev/disk/by-path</path> </target> </pool><pool type='scsi'> <name>vhbapool_host3</name> <source> <adapter type='fc_host' parent='scsi_host3' wwnn='5001a4a93526d0a1' wwpn='5001a4ace3ee047d'/> </source> <target> <path>/dev/disk/by-path</path> </target> </pool>