disks not visible under /dev/disk/by-id

Discussions about using Linux guests in VirtualBox.
Post Reply
Codrut2
Posts: 2
Joined: 28. Mar 2016, 02:51

disks not visible under /dev/disk/by-id

Post by Codrut2 »

I'm running VBox 5.0.16 on Mac OS with Oracle Linux 7.2 as guest. I have 5 disks attached to the SCSI interface:

[root@infra ~]# ls -l /dev/s*
brw-rw----. 1 root disk 8, 0 Mar 28 09:03 /dev/sda
brw-rw----. 1 root disk 8, 1 Mar 28 09:03 /dev/sda1
brw-rw----. 1 root disk 8, 2 Mar 28 09:03 /dev/sda2
brw-rw----. 1 root disk 8, 16 Mar 28 09:03 /dev/sdb
brw-rw----. 1 root disk 8, 32 Mar 28 09:03 /dev/sdc
brw-rw----. 1 root disk 8, 48 Mar 28 09:03 /dev/sdd
brw-rw----. 1 root disk 8, 64 Mar 28 09:03 /dev/sde

But I cannot see ALL of these under:

[root@infra ~]# ls -l /dev/disk/by-id/
total 0
lrwxrwxrwx. 1 root root 9 Mar 28 09:03 ata-VBOX_CD-ROM_VB2-01700376 -> ../../sr0
lrwxrwxrwx. 1 root root 10 Mar 28 09:03 dm-name-ol-root -> ../../dm-0
lrwxrwxrwx. 1 root root 10 Mar 28 09:03 dm-name-ol-swap -> ../../dm-1
lrwxrwxrwx. 1 root root 10 Mar 28 09:03 dm-uuid-LVM-ZqCd5Ey8V8ocqw8n7MWVNsbcDKTKNnf93MYKfIG9o3rjK9dA8UedPo5gwoaxIKVd -> ../../dm-1
lrwxrwxrwx. 1 root root 10 Mar 28 09:03 dm-uuid-LVM-ZqCd5Ey8V8ocqw8n7MWVNsbcDKTKNnf9yjmZVqS6esfdYkJhUhkeGY9YRf7OIkDf -> ../../dm-0
lrwxrwxrwx. 1 root root 10 Mar 28 09:03 lvm-pv-uuid-eG0JG9-SK13-fJkI-l0z1-CYFM-CRC4-DA61yx -> ../../sda2
lrwxrwxrwx. 1 root root 9 Mar 28 09:03 scsi-5 -> ../../sde
[root@infra ~]#

What is wrong?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: disks not visible under /dev/disk/by-id

Post by Perryg »

I suspect what you are seeing is a cause of LVM, but to be absolutely certain you would need to ask the Oracle folks Linux forums
https://community.oracle.com/community/ ... acle_linux
Codrut2
Posts: 2
Joined: 28. Mar 2016, 02:51

Re: disks not visible under /dev/disk/by-id

Post by Codrut2 »

I actually think it's a VBox issue. A similar situation happened on VMWare Fusion where I had to setup disk.EnableUUID = “TRUE” otherwise the guest OS would not see the UUID.
Codrut3
Posts: 2
Joined: 28. Mar 2016, 10:30

Re: disks not visible under /dev/disk/by-id

Post by Codrut3 »

I was able to workaround this issue by changing the storage controller from SCSI to SATA. Not /lib/udev/scsi_id returns values for each disk.
Is this a bug?
Post Reply