The small linux problem thread

Update: My issue was resolved here: Can't setup Physical Disk storage pool through virt-manager - #18 by magicthighs


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 - #12 by nx2l)

It kinda almost seems like it was a fluke and it’s not really configured correctly maybe?