这些池是如何或在哪里创建的?配置文件在哪里?
$ virsh pool-list --all
Name State Autostart
-------------------------------------------
default active yes
Downloads active yes
$ virsh pool-info Downloads
Name: Downloads
UUID: fdbe7407-67c4-405d-8e46-9c2695a8b353
State: running
Persistent: yes
Autostart: yes
Capacity: 219.88 GiB
Allocation: 34.87 GiB
Available: 185.01 GiB
$ virsh pool-info default
Name: default
UUID: cb72b02e-b436-4ec9-9460-d297744c4c69
State: running
Persistent: yes
Autostart: yes
Capacity: 219.88 GiB
Allocation: 34.95 GiB
Available: 184.93 GiB
我相信池是由virt-manager
GUI 创建的。
上有可用空间吗default
?我认为Downloads
游泳池可能是多余的。
答案1
在这里他们是:
$ ll /etc/libvirt/storage
total 20
drwxr-xr-x 3 root root 4096 Nov 14 00:39 ./
drwxr-xr-x 7 root root 4096 Nov 12 14:22 ../
drwxr-xr-x 2 root root 4096 Nov 14 00:39 autostart/
-rw------- 1 root root 538 Nov 12 14:22 default.xml
-rw------- 1 root root 541 Nov 14 00:39 Downloads.xml
实际文件:
$ sudo cat /etc/libvirt/storage/default.xml
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh pool-edit default
or other application using the libvirt API.
-->
<pool type='dir'>
<name>default</name>
<uuid>cb72b02e-b436-4ec9-9460-d297744c4c69</uuid>
<capacity unit='bytes'>0</capacity>
<allocation unit='bytes'>0</allocation>
<available unit='bytes'>0</available>
<source>
</source>
<target>
<path>/var/lib/libvirt/images</path>
</target>
</pool>
$ sudo cat /etc/libvirt/storage/Downloads.xml
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh pool-edit Downloads
or other application using the libvirt API.
-->
<pool type='dir'>
<name>Downloads</name>
<uuid>fdbe7407-67c4-405d-8e46-9c2695a8b353</uuid>
<capacity unit='bytes'>0</capacity>
<allocation unit='bytes'>0</allocation>
<available unit='bytes'>0</available>
<source>
</source>
<target>
<path>/home/thufir/Downloads</path>
</target>
</pool>