Virsh NFS Pool
Version vom 28. Mai 2024, 07:50 Uhr von Thomas.will (Diskussion | Beiträge) (→Virsh XML Definition)
Virsh XML Definition
- cat nfs-pool.xml
<pool type="netfs">
<name>nfs-pool</name>
<source>
<host name="doom.xinux.lan"/>
<dir path="/mnt/md0/virtimages"/>
<format type='nfs'/>
<protocol ver='3'/>
</source>
<target>
<path>/mnt/virtimages</path>
</target>
</pool>
Pool definieren
- virsh pool-define nfs-pool.xml
Pools listen
- virsh pool-list --all
Name State Autostart ------------------------------------------- default active yes images-on-doom active yes nfs-pool inactive no
Pool aktivieren
- virsh pool-start nfs-pool
Pool für den Autostart markieren
- virsh pool-autostart nfs-pool
Pools listen
- virsh pool-list --all
Name State Autostart ------------------------------------------- default active yes images-on-doom active yes nfs-pool active yes