[SOLVED] Virtual disk names
Posted: 2018/10/17 14:42:15
I'm building a test cluster using the host and three virtual machines (VM1, VM2 and VM3). I'm using a single disk partitioned into four: one partition for each VM and the fourth for cluster-wide storage. Up till now VM1, has had /dev/vda mapped to the host /dev/sdc1, VM2 had /dev/sdc2 and VM3 /dev/sdc3. You'll deduce that /dev/sdc4 was the cluster-wide partition.
At some point the device ordering has changed. Partition 4 (formatted as gfs2) has a label visible from the host: "lifeboat:gpfs", but partitions 1-3 do not. Furthermore partition 4 has an entry in /dev/disk/by-uuid, but partitions 1-3 do not. I tried editing (virsh edit) the XML for VM1 to change vdb from '/dev/sdc4' to 'LABEL=lifeboat:gpfs'* but virsh rejects it. I can edit /dev/sdc* to /dev/sdd* but that seems poor practice, I'd prefer to use a partition label, or failing that a UUID.
I expect that I'm missing something obvious, but a shove in the right direction would be appreciated.
*I've now also tried with UUID=string and that also fails.
At some point the device ordering has changed. Partition 4 (formatted as gfs2) has a label visible from the host: "lifeboat:gpfs", but partitions 1-3 do not. Furthermore partition 4 has an entry in /dev/disk/by-uuid, but partitions 1-3 do not. I tried editing (virsh edit) the XML for VM1 to change vdb from '/dev/sdc4' to 'LABEL=lifeboat:gpfs'* but virsh rejects it. I can edit /dev/sdc* to /dev/sdd* but that seems poor practice, I'd prefer to use a partition label, or failing that a UUID.
I expect that I'm missing something obvious, but a shove in the right direction would be appreciated.
*I've now also tried with UUID=string and that also fails.