Virsh Verzeichnis Pool: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
| Zeile 28: | Zeile 28: | ||
default active yes | default active yes | ||
images-on-doom active yes | images-on-doom active yes | ||
=Dump Pool= | |||
*virsh pool-dumpxml images | |||
<pre> | |||
<pool type='dir'> | |||
<name>images</name> | |||
<uuid>fd376830-81e6-4c85-a827-d710106d7bc2</uuid> | |||
<capacity unit='bytes'>98293264384</capacity> | |||
<allocation unit='bytes'>46400319488</allocation> | |||
<available unit='bytes'>51892944896</available> | |||
<source> | |||
</source> | |||
<target> | |||
<path>/var/lib/libvirt/images</path> | |||
<permissions> | |||
<mode>0711</mode> | |||
<owner>0</owner> | |||
<group>0</group> | |||
</permissions> | |||
</target> | |||
</pool> | |||
</pre> | |||
Version vom 16. Oktober 2017, 09:54 Uhr
Virsh XML Definition
- cat virsh-dir.xml
<pool type="dir">
<name>images-on-doom</name>
<target>
<path>/mnt/data/images</path>
</target>
</pool>
Pool definieren
- virsh pool-define virsh-dir.xml
Pools listen
- virsh pool-list --all
Name State Autostart ------------------------------------------- default active yes images-on-doom inactive no
Pool aktivieren
- virsh pool-start images-on-doom
Pool für den Autostart markieren
- virsh pool-autostart images-on-doom
Pools listen
- virsh pool-list --all
Name State Autostart ------------------------------------------- default active yes images-on-doom active yes
Dump Pool
- virsh pool-dumpxml images
<pool type='dir'>
<name>images</name>
<uuid>fd376830-81e6-4c85-a827-d710106d7bc2</uuid>
<capacity unit='bytes'>98293264384</capacity>
<allocation unit='bytes'>46400319488</allocation>
<available unit='bytes'>51892944896</available>
<source>
</source>
<target>
<path>/var/lib/libvirt/images</path>
<permissions>
<mode>0711</mode>
<owner>0</owner>
<group>0</group>
</permissions>
</target>
</pool>