Update: My issue was resolved here: Can't setup Physical Disk storage pool through virt-manager
Maybe not a small problem but it seems like it ought to just work and Iām missing something.
Iāve mounted a physical drive as some kind of 'unknown' Linux
partition via virt-manager
's graphical interface & when I reboot the host, that storage pool fails to connect again.
Storage Pools in Virtual Machine Manager
fdisk -l
Disk /dev/sda: 223.6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2fb0da7b
Device Boot Start End Sectors Size Id Type
/dev/sda1 63 467668214 467668152 223G 83 Linux
As for the virt-manager
config stuff, this is the only info Iāve been able to gather on my own (practically zero experience with command line kvm/qemu stuff):
:/etc/libvirt/storage$ sudo cat SPCC.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 SPCC
or other application using the libvirt API.
-->
<pool type='disk'>
<name>SPCC</name>
<uuid>4b793b32-8e87-44d3-bb33-c5a5ba1bf0b6</uuid>
<capacity unit='bytes'>0</capacity>
<allocation unit='bytes'>0</allocation>
<available unit='bytes'>0</available>
<source>
<device path='/dev/sda'/>
<format type='unknown'/>
</source>
<target>
<path>/media/SPCC</path>
</target>
</pool>
Which doesnāt seem to totally line up with the virsh pool-edit SPCC
contents:
virsh pool-edit SPCC
<pool type='disk'>
<name>SPCC</name>
<uuid>4b793b32-8e87-44d3-bb33-c5a5ba1bf0b6</uuid>
<capacity unit='bytes'>240054796800</capacity>
<allocation unit='bytes'>239446093824</allocation>
<available unit='bytes'>608670720</available>
<source>
<device path='/dev/sda'>
<freeExtent start='239446126080' end='240054796800'/>
</device>
<format type='dos'/>
</source>
<target>
<path>/media/SPCC</path>
</target>
</pool>
At this moment, the drive is mounted via virt-manager
and fully functional but Iām pretty sure if I reboot, it will fail to re-mount (it has once already anyway).
If possible, Iād like to verify that it will in fact be re-mounting automatically at startup before rebooting the host as I donāt want to have to format the drive and start over.
I donāt really know how the pool was mounted the first time when being configured via virt-manager
: (Canāt setup Physical Disk storage pool through virt-manager)
It kinda almost seems like it was a fluke and itās not really configured correctly maybe?