[PVE-User] Matching WUI VM hardware disks to Linux guest disks

Arjen leesteken at protonmail.ch
Tue Nov 10 09:12:25 CET 2020


On Tuesday, November 10, 2020 9:03 AM, Eneko Lacunza via pve-user <pve-user at lists.proxmox.com> wrote:

> Hi all,
>
> I have hit a simple problem. Let be a VM with 3 disks, with .conf extract:
>
> scsi0: ceph-proxmox:vm-100-disk-1,cache=writeback,size=6G
> scsi1: ceph-proxmox:vm-100-disk-0,cache=writeback,size=400G
> scsi2: ceph-proxmox:vm-100-disk-3,cache=writeback,size=400G
>
> We have two virtual disks with identical size (400G).
>
> How can I be sure what device on Linux guest is each?
>
> lsblk
>
> ======
>
> NAME                  MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
> sda                     8:0    0    6G  0 disk
> ├─sda1                  8:1    0  5.7G  0 part  /
> ├─sda2                  8:2    0    1K  0 part
> └─sda5                  8:5    0  283M  0 part  [SWAP]
> sdb                     8:16   0  400G  0 disk  /mnt
> sdc                     8:32   0  400G  0 disk
> sr0                    11:0    1 1024M  0 rom
>
> What disk is sdb and what sdc? :-)
>
> In this case, I know sdc is scsi1, and sdb is scsi2; which is
> counter-intuitive and WUI doesn't seem to offer any help for this.
>
> (I just added 1G to a disk and then checked sizes on guest).

I think you can deduce the SCSI number from the MINor device number on Linux:
 0/16  = 0: scsi0
 16/16 = 1: scsi1
 32/16 = 2: scsi2

See for more details: https://tldp.org/HOWTO/SCSI-2.4-HOWTO/dnames.html

Best regards




More information about the pve-user mailing list