--Apple-Mail=_0FD01BB4-6FFE-420A-805E-4CF6B336A6A8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii
I have a VM with the following disks (in the ordrer return by a get =
query):
=20
<Disk =
href=3D"/api/vms/2ddfb8c3-d258-4d3e-9f65-fc247d0a03f6/disks/1180405d-699e-=
4594-bf73-8b1b170f38a9" id=3D"1180405d-699e-4594-bf73-8b1b170f38a9">
...
<name>vm_sys</name>
<actual_size>17179869184</actual_size> <- 16GiB
<interface>virtio_scsi</interface>
<bootable>true</bootable>
<storage_type>image</storage_type>
</Disk>
<Disk =
href=3D"/api/vms/2ddfb8c3-d258-4d3e-9f65-fc247d0a03f6/disks/1fe74758-c521-=
40ed-b8e5-d02d80188088" id=3D"1fe74758-c521-40ed-b8e5-d02d80188088">
<name>vm_data</name>
<interface>virtio_scsi</interface>
<bootable>false</bootable>
<lun_storage id=3D"3600c0ff00026285a2091355701000000">
<logical_unit id=3D"3600c0ff00026285a2091355701000000">
<size>1099511627776</size> <- 1 TiB.
<paths>0</paths>
</logical_unit>
</lun_storage>
<storage_type>lun</storage_type>
</Disk>
So the first one is a 16 GiB virtual disk, the second one a 1 iTB direct =
access LUN that will contains data.
But once booterd, I see:
lsblk =20
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1T 0 disk=20
...
sdb 8:16 0 16G 0 disk=20
...
and :
ls -l /dev/disk/by-*/*
...
lrwxrwxrwx. 1 root root 9 May 16 09:03 =
/dev/disk/by-path/pci-0000:00:04.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx. 1 root root 9 May 16 09:03 =
/dev/disk/by-path/pci-0000:00:04.0-scsi-0:0:0:1 -> ../../sdb
So the first disk sda is the second non bootable disk.
What set the disk order associated to a VM ? Is there a way to enforce =
that the first disk is really the first disk ?=
--Apple-Mail=_0FD01BB4-6FFE-420A-805E-4CF6B336A6A8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=us-ascii
<html><head><meta http-equiv=3D"Content-Type"
content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div style=3D"margin: 0px 0px 0px 6px; font-family: =
'Helvetica Neue';" class=3D""><span
style=3D"font-family: Helvetica;" =
class=3D"">I have a VM with the following disks (in the ordrer return by =
a get query):</span><div class=3D"" style=3D"font-family: =
Helvetica;"> <div class=3D""><div class=3D""
style=3D"margin: 0px; =
font-size: 11px; font-family: Menlo;"><Disk =
href=3D"/api/vms/2ddfb8c3-d258-4d3e-9f65-fc247d0a03f6/disks/1180405d-699e-=
4594-bf73-8b1b170f38a9" =
id=3D"1180405d-699e-4594-bf73-8b1b170f38a9"></div><div
class=3D"" =
style=3D"margin: 0px; font-size: 11px; font-family: Menlo;"> =
...</div><div class=3D"" style=3D"margin: 0px;
font-size: 11px; =
font-family: Menlo;"> =
<name>vm_sys</name></div><div class=3D""
style=3D"margin: =
0px; font-size: 11px; font-family: Menlo;"> =
<actual_size>17179869184</actual_size> <-
16GiB</div><div =
class=3D"" style=3D"margin: 0px; font-size: 11px; font-family: =
Menlo;"> =
<interface>virtio_scsi</interface></div><div
class=3D"" =
style=3D"margin: 0px; font-size: 11px; font-family: Menlo;"> =
<bootable>true</bootable></div><div
class=3D"" =
style=3D"margin: 0px; font-size: 11px; font-family: Menlo;"> =
<storage_type>image</storage_type></div><div
class=3D""=
style=3D"margin: 0px; font-size: 11px; font-family: =
Menlo;"></Disk></div><div class=3D""
style=3D"margin: 0px; =
font-size: 11px; font-family: Menlo; min-height: 13px;"><br =
class=3D""></div><div class=3D"" style=3D"margin:
0px; font-size: 11px; =
font-family: Menlo;"><Disk =
href=3D"/api/vms/2ddfb8c3-d258-4d3e-9f65-fc247d0a03f6/disks/1fe74758-c521-=
40ed-b8e5-d02d80188088" =
id=3D"1fe74758-c521-40ed-b8e5-d02d80188088"></div><div
class=3D"" =
style=3D"margin: 0px; font-size: 11px; font-family: Menlo;"> =
<name>vm_data</name></div><div
class=3D"" =
style=3D"margin: 0px; font-size: 11px; font-family: Menlo;"> =
<interface>virtio_scsi</interface></div><div
class=3D""=
style=3D"margin: 0px; font-size: 11px; font-family: Menlo;"> =
<bootable>false</bootable></div><div
class=3D"" =
style=3D"margin: 0px; font-size: 11px; font-family: Menlo;"> =
<lun_storage =
id=3D"3600c0ff00026285a2091355701000000"></div><div
class=3D"" =
style=3D"margin: 0px; font-size: 11px; font-family: Menlo;"> =
<logical_unit =
id=3D"3600c0ff00026285a2091355701000000"></div><div
class=3D"" =
style=3D"margin: 0px; font-size: 11px; font-family: Menlo;"> =
=
<size>1099511627776</size> <- 1 TiB.</div><div
class=3D"" =
style=3D"margin: 0px; font-size: 11px; font-family: Menlo;"> =
=
<paths>0</paths></div><div class=3D""
style=3D"margin: 0px; =
font-size: 11px; font-family: Menlo;">
=
</logical_unit></div><div class=3D""
style=3D"margin: 0px; =
font-size: 11px; font-family: Menlo;"> =
</lun_storage></div><div class=3D"" style=3D"margin:
0px; =
font-size: 11px; font-family: Menlo;"> =
<storage_type>lun</storage_type></div><div
class=3D"" =
style=3D"margin: 0px; font-size: 11px; font-family: =
Menlo;"></Disk></div></div><div
class=3D""><br class=3D""></div><div=
class=3D"">So the first one is a 16 GiB virtual disk, the second one a =
1 iTB direct access LUN that will contains data.</div></div><div =
class=3D"" style=3D"font-family: Helvetica;"><br
class=3D""></div><div =
class=3D"" style=3D"font-family: Helvetica;">But once booterd, I =
see:</div><div class=3D"" style=3D"font-family:
Helvetica;"><div =
class=3D"">lsblk </div><div
class=3D"">NAME =
MAJ:MIN RM SIZE RO TYPE MOUNTPOINT</div><div =
class=3D"">sda 8:0
0 =
1T 0 disk </div></div><div
class=3D"" =
style=3D"font-family: Helvetica;">...</div><div class=3D""
=
style=3D"font-family: Helvetica;"><div class=3D"">sdb
=
8:16 0 16G 0 =
disk </div></div><div class=3D""
style=3D"font-family: =
Helvetica;">...</div><div class=3D"" style=3D"font-family:
=
Helvetica;"><br class=3D""></div><div
class=3D"" style=3D"font-family: =
Helvetica;">and :</div><div class=3D""
style=3D"font-family: =
Helvetica;"><div class=3D"">ls -l
/dev/disk/by-*/*</div></div><div =
class=3D"" style=3D"font-family: Helvetica;">...</div><div
class=3D"" =
style=3D"font-family: Helvetica;"><div class=3D"">lrwxrwxrwx.
1 root =
root 9 May 16 09:03 =
/dev/disk/by-path/pci-0000:00:04.0-scsi-0:0:0:0 -> =
../../sda</div></div><div class=3D"" style=3D"font-family:
=
Helvetica;"><div class=3D"">lrwxrwxrwx. 1 root root 9
May 16 09:03 =
/dev/disk/by-path/pci-0000:00:04.0-scsi-0:0:0:1 -> =
../../sdb</div></div><div class=3D"" style=3D"font-family:
=
Helvetica;"><br class=3D""></div><div
class=3D"" style=3D"font-family: =
Helvetica;">So the first disk sda is the second non bootable =
disk.</div><div class=3D"" style=3D"font-family:
Helvetica;">What set =
the disk order associated to a VM ? Is there a way to enforce that the =
first disk is really the first disk ?</div></div></body></html>=
--Apple-Mail=_0FD01BB4-6FFE-420A-805E-4CF6B336A6A8--
Show replies by date