[Invalid] some disks cannot be visible under /dev

Discussions about using Linux guests in VirtualBox.
Post Reply
Stephen.xxx
Posts: 7
Joined: 10. Apr 2019, 03:17

[Invalid] some disks cannot be visible under /dev

Post by Stephen.xxx »

Question 1, From /proc/partitions, 9 disks can be visible per SATA controller, but some disks cannot be visible under /dev or fdisk -l.

Question 2, If I use others controller, I cannot list these disks's UUID.

Code: Select all

[root@node1 ~]# cat /proc/partitions |grep sd*
major minor  #blocks  name
  11        0    1048575 sr0
   8        0   31457280 sda
   8        1     512000 sda1
   8        2   30944256 sda2
   8       16    1048576 sdb
   8       32    1048576 sdc
   8       48    1048576 sdd
   8       64    1048576 sde
   8       80    1048576 sdf
   8       96    1048576 sdg
   8      112    1048576 sdh
   8      128    1048576 sdi

[root@node1 ~]# ls -l /dev/sd*
brw-rw---- 1 root disk 8,   0 Apr 10  2019 /dev/sda
brw-rw---- 1 root disk 8,   1 Apr 10 08:58 /dev/sda1
brw-rw---- 1 root disk 8,   2 Apr 10  2019 /dev/sda2
brw-rw---- 1 root disk 8,  16 Apr 10 08:59 /dev/sdb
brw-rw---- 1 root disk 8,  32 Apr 10 08:59 /dev/sdc
brw-rw---- 1 root disk 8,  48 Apr 10 08:59 /dev/sdd
brw-rw---- 1 root disk 8,  64 Apr 10 08:59 /dev/sde
brw-rw---- 1 root disk 8, 112 Apr 10  2019 /dev/sdh
brw-rw---- 1 root disk 8, 128 Apr 10  2019 /dev/sdi

[root@node1 ~]# fdisk -l| grep '/dev/sd*'
Disk /dev/sda: 32.2 GB, 32212254720 bytes
/dev/sda1   *           1          64      512000   83  Linux
/dev/sda2              64        3917    30944256   8e  Linux LVM
Disk /dev/sdb: 1073 MB, 1073741824 bytes
Disk /dev/sdc: 1073 MB, 1073741824 bytes
Disk /dev/sdd: 1073 MB, 1073741824 bytes
Disk /dev/sde: 1073 MB, 1073741824 bytes
Disk /dev/sdh: 1073 MB, 1073741824 bytes
Disk /dev/sdi: 1073 MB, 1073741824 bytes
Last edited by socratis on 10. Apr 2019, 13:45, edited 3 times in total.
Reason: Marked as [Invalid].
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: some disks cannot be visible under /dev

Post by socratis »

Is there a VirtualBox question in here? If yes, then please read the following: Minimum information needed for assistance.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Stephen.xxx
Posts: 7
Joined: 10. Apr 2019, 03:17

Re: some disks cannot be visible under /dev

Post by Stephen.xxx »

vbox host: vbox on windows 10 64-bit.
vbox version: 6.0.4
Guest Additions: installed.
ISO: Oracle linux 6.9 64-bit.
Memory: 4GB

Code: Select all

D:\Applications\Vbox>VBoxManage list extpacks
Extension Packs: 0

Code: Select all

D:\Applications\Vbox>VBoxManage showvminfo "11gRAC-1" --details
Name:                        11gRAC-1
Groups:                      /
Guest OS:                    Oracle (64-bit)
UUID:                        4ca4dc95-f725-4149-83b0-34b7e8fc32f4
Config file:                 D:\VMs\11gRAC-1\11gRAC-1.vbox
Snapshot folder:             D:\VMs\11gRAC-1\Snapshots
Log folder:                  D:\VMs\11gRAC-1\Logs
Hardware UUID:               4ca4dc95-f725-4149-83b0-34b7e8fc32f4
Memory size                  4096MB
Page Fusion:                 disabled
VRAM size:                   16MB
CPU exec cap:                100%
HPET:                        disabled
CPUProfile:                  host
Chipset:                     piix3
Firmware:                    BIOS
Number of CPUs:              2
PAE:                         enabled
Long Mode:                   enabled
Triple Fault Reset:          disabled
APIC:                        enabled
X2APIC:                      enabled
Nested VT-x/AMD-V:           disabled
CPUID Portability Level:     0
CPUID overrides:             None
Boot menu mode:              message and menu
Boot Device 1:               HardDisk
Boot Device 2:               DVD
Boot Device 3:               Network
Boot Device 4:               Not Assigned
ACPI:                        enabled
IOAPIC:                      enabled
BIOS APIC mode:              APIC
Time offset:                 0ms
RTC:                         local time
Hardw. virt.ext:             enabled
Nested Paging:               enabled
Large Pages:                 enabled
VT-x VPID:                   enabled
VT-x unr. exec.:             enabled
Paravirt. Provider:          Default
Effective Paravirt. Prov.:   KVM
State:                       running (since 2019-04-10T02:06:37.708000000)
Monitor count:               1
3D Acceleration:             disabled
2D Video Acceleration:       disabled
Teleporter Enabled:          disabled
Teleporter Port:             0
Teleporter Address:
Teleporter Password:
Tracing Enabled:             disabled
Allow Tracing to Access VM:  disabled
Tracing Configuration:
Autostart Enabled:           disabled
Autostart Delay:             0
Default Frontend:
Storage Controller Name (0):            IDE
Storage Controller Type (0):            PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  2
Storage Controller Port Count (0):      2
Storage Controller Bootable (0):        on
Storage Controller Name (1):            SATA
Storage Controller Type (1):            IntelAhci
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1):  30
Storage Controller Port Count (1):      10
Storage Controller Bootable (1):        on
IDE (1, 0): D:\Applications\Vbox/VBoxGuestAdditions.iso (UUID: 16319954-09a1-4313-aa83-d49a13174d55)
SATA (0, 0): D:\VMs\11gRAC-1\11gRAC-1_d1.vdi (UUID: f4a19d57-34fa-4e18-845a-5d38fc5a008d)
SATA (1, 0): D:\VMs\11gRAC-1\11gRAC_sd1.vdi (UUID: df30b030-8af1-454c-9125-e157248416b2)
SATA (2, 0): D:\VMs\11gRAC-1\11gRAC_sd2.vdi (UUID: 53f26e4b-4970-4cb5-97e1-defc25c19bed)
SATA (3, 0): D:\VMs\11gRAC-1\11gRAC_sd3.vdi (UUID: e3729a62-6309-4434-880c-b4ef4b253c15)
SATA (4, 0): D:\VMs\11gRAC-1\11gRAC_sd4.vdi (UUID: 4c21431a-c3bb-4879-8a91-a99f9478813b)
SATA (5, 0): D:\VMs\11gRAC-1\11gRAC_sd5.vdi (UUID: 363f21d0-2e9e-4dc1-a8d3-9f876ca78419)
SATA (6, 0): D:\VMs\11gRAC-1\11gRAC_sd6.vdi (UUID: 6ad30aa7-d901-47b6-a345-d99dec186a51)
SATA (7, 0): D:\VMs\11gRAC-1\11gRAC_sd7.vdi (UUID: 1b2b5d5c-d335-479c-aeee-a3fc0eec4eca)
SATA (8, 0): D:\VMs\11gRAC-1\11gRAC_sd8.vdi (UUID: 5ce55c4f-160f-448f-94f3-2864358e1350)
NIC 1:                       MAC: 080027E2C535, Attachment: Host-only Interface 'VirtualBox Host-Only Ethernet Adapter', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 2:                       MAC: 080027DB5624, Attachment: Host-only Interface 'VirtualBox Host-Only Ethernet Adapter', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 3:                       MAC: 08002721B3F3, Attachment: Host-only Interface 'VirtualBox Host-Only Ethernet Adapter', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 4:                       MAC: 0800279981F3, Attachment: Host-only Interface 'VirtualBox Host-Only Ethernet Adapter', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 5:                       disabled
NIC 6:                       disabled
NIC 7:                       disabled
NIC 8:                       disabled
Pointing Device:             PS/2 Mouse
Keyboard Device:             PS/2 Keyboard
UART 1:                      disabled
UART 2:                      disabled
UART 3:                      disabled
UART 4:                      disabled
LPT 1:                       disabled
LPT 2:                       disabled
Audio:                       enabled (Driver: DSOUND, Controller: AC97, Codec: AD1980)
Audio playback:              disabled
Audio capture:               enabled
Clipboard Mode:              Bidirectional
Drag and drop Mode:          Bidirectional
Session name:                GUI/Qt
Video mode:                  800x600x32 at 0,0 enabled
VRDE:                        disabled
OHCI USB:                    disabled
EHCI USB:                    disabled
xHCI USB:                    disabled

USB Device Filters:

<none>

Available remote USB devices:

<none>

Currently Attached USB Devices:

<none>

Bandwidth groups:  <none>

Shared folders:<none>

VRDE Connection:             not active
Clients so far:              0

Capturing:                   active
Capture audio:               active
Capture screens:             0
Capture file:                D:\VMs\11gRAC-1\11gRAC-1.webm
Capture dimensions:          1024x768
Capture rate:                512kbps
Capture FPS:                 25kbps
Capture options:             ac_enabled=true,vc_enabled=true,ac_profile=med

Guest:

Configured memory balloon size: 0MB
OS type:                     Oracle_64
Additions run level:         0

Guest Facilities:

No active facilities.
Attachments
VBox.log
(101.39 KiB) Downloaded 15 times
Last edited by socratis on 10. Apr 2019, 04:24, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
Stephen.xxx
Posts: 7
Joined: 10. Apr 2019, 03:17

Re: some disks cannot be visible under /dev

Post by Stephen.xxx »

log
Attachments
VBoxHardening.zip
(27.12 KiB) Downloaded 16 times
VBoxHardening.zip
(27.12 KiB) Downloaded 15 times
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: some disks cannot be visible under /dev

Post by socratis »

Thank you for that, I should have mentioned that you should ZIP your logs. It helps you, it helps us, it helps the server, it helps save a (virtual) tree or two... ;)

Now, what's the VirtualBox questions? I don't quite understand them, could you expand or rephrase them?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Stephen.xxx
Posts: 7
Joined: 10. Apr 2019, 03:17

Re: some disks cannot be visible under /dev

Post by Stephen.xxx »

I added 9 disks to virtual host per SATA controller, from /proc/partitions, 9 disks can be visible, but some disks cannot be visible under /dev or fdisk -l.
There is missing some disks under /dev.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: some disks cannot be visible under /dev

Post by mpack »

This does not look like a "Windows Hosts" question to me. Moving it to "Linux Guests".
andyp73
Volunteer
Posts: 1631
Joined: 25. May 2010, 23:48
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Assorted Linux, Windows Server 2012, DOS, Windows 10, BIOS/UEFI emulation

Re: some disks cannot be visible under /dev

Post by andyp73 »

Stephen.xxx wrote:I added 9 disks to virtual host per SATA controller, from /proc/partitions, 9 disks can be visible,
The information in the first post showing the output of the cat /proc/partitions command shows this to be true. On that basis, VirtualBox has presented all of the disks to the guest and the Linux kernel within the guest has detected them. Running "dmesg | grep sd" in the guest will confirm.
Stephen.xxx wrote:but some disks cannot be visible under /dev or fdisk -l
If my memory serves me correctly then fdisk will only show disks that have a pre-existing entry in /dev. Why /dev/sdf and /dev/sdg entries haven't been created I think it between you and the configuration of the Linux guest.

-Andy.
My crystal ball is currently broken. If you want assistance you are going to have to give me all of the necessary information.
Please don't ask me to do your homework for you, I have more than enough of my own things to do.
Stephen.xxx
Posts: 7
Joined: 10. Apr 2019, 03:17

Re: some disks cannot be visible under /dev

Post by Stephen.xxx »

My question is why disk is missing under /dev ? The missing disk is not always /dev/sdf and /dev/sdg, may be others.

Code: Select all

[root@node1 ~]# dmesg|grep sd
[   19.801452] sd 2:0:0:0: [sda] 62914560 512-byte logical blocks: (32.2 GB/30.0 GiB)
[   19.801479] sd 2:0:0:0: [sda] Write Protect is off
[   19.801481] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
[   19.801493] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   19.801851] sd 3:0:0:0: [sdb] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)
[   19.801882] sd 3:0:0:0: [sdb] Write Protect is off
[   19.801885] sd 3:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[   19.801899] sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   19.802266] sd 4:0:0:0: [sdc] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)
[   19.802291] sd 4:0:0:0: [sdc] Write Protect is off
[   19.802294] sd 4:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[   19.802305] sd 4:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   19.802594] sd 5:0:0:0: [sdd] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)
[   19.802618] sd 5:0:0:0: [sdd] Write Protect is off
[   19.802620] sd 5:0:0:0: [sdd] Mode Sense: 00 3a 00 00
[   19.802631] sd 5:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   19.802892] sd 6:0:0:0: [sde] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)
[   19.802917] sd 6:0:0:0: [sde] Write Protect is off
[   19.802920] sd 6:0:0:0: [sde] Mode Sense: 00 3a 00 00
[   19.802931] sd 6:0:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   19.804394]  sda: sda1 sda2
[   19.805262] sd 4:0:0:0: [sdc] Attached SCSI disk
[   19.805301] sd 3:0:0:0: [sdb] Attached SCSI disk
[   19.805306] sd 2:0:0:0: [sda] Attached SCSI disk
[   19.805343] sd 5:0:0:0: [sdd] Attached SCSI disk
[   19.805381] sd 6:0:0:0: [sde] Attached SCSI disk
[   19.805452] sd 7:0:0:0: [sdf] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)
[   19.805475] sd 8:0:0:0: [sdg] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)
[   19.805479] sd 7:0:0:0: [sdf] Write Protect is off
[   19.805481] sd 7:0:0:0: [sdf] Mode Sense: 00 3a 00 00
[   19.805494] sd 7:0:0:0: [sdf] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   19.805501] sd 8:0:0:0: [sdg] Write Protect is off
[   19.805504] sd 8:0:0:0: [sdg] Mode Sense: 00 3a 00 00
[   19.805516] sd 8:0:0:0: [sdg] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   19.805659] sd 9:0:0:0: [sdh] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)
[   19.805685] sd 9:0:0:0: [sdh] Write Protect is off
[   19.805687] sd 9:0:0:0: [sdh] Mode Sense: 00 3a 00 00
[   19.805699] sd 9:0:0:0: [sdh] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   19.805828] sd 10:0:0:0: [sdi] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)
[   19.805855] sd 10:0:0:0: [sdi] Write Protect is off
[   19.805858] sd 10:0:0:0: [sdi] Mode Sense: 00 3a 00 00
[   19.805870] sd 10:0:0:0: [sdi] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   19.807403] sd 8:0:0:0: [sdg] Attached SCSI disk
[   19.807435] sd 9:0:0:0: [sdh] Attached SCSI disk
[   19.807469] sd 10:0:0:0: [sdi] Attached SCSI disk
[   19.807562] sd 7:0:0:0: [sdf] Attached SCSI disk
[   20.000135] dracut: Scanning devices sda2  for LVM logical volumes VolGroup/lv_swap VolGroup/lv_root 
[   23.826029] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   23.826057] sd 3:0:0:0: Attached scsi generic sg2 type 0
[   23.826084] sd 4:0:0:0: Attached scsi generic sg3 type 0
[   23.826111] sd 5:0:0:0: Attached scsi generic sg4 type 0
[   23.826138] sd 6:0:0:0: Attached scsi generic sg5 type 0
[   23.826166] sd 7:0:0:0: Attached scsi generic sg6 type 0
[   23.826193] sd 8:0:0:0: Attached scsi generic sg7 type 0
[   23.826220] sd 9:0:0:0: Attached scsi generic sg8 type 0
[   23.826271] sd 10:0:0:0: Attached scsi generic sg9 type 0
[   27.703701] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
Last edited by socratis on 10. Apr 2019, 13:34, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
andyp73
Volunteer
Posts: 1631
Joined: 25. May 2010, 23:48
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Assorted Linux, Windows Server 2012, DOS, Windows 10, BIOS/UEFI emulation

Re: some disks cannot be visible under /dev

Post by andyp73 »

Stephen.xxx wrote:My question is why disk is missing under /dev ?
That is a question you will need to ask in a Linux support forum. As I stated earlier, the output from /proc/partitions and verified with the output from dmesg shows that VirtualBox has done its job and the Linux kernel has detected all of the disks it has been given.

-Andy.
My crystal ball is currently broken. If you want assistance you are going to have to give me all of the necessary information.
Please don't ask me to do your homework for you, I have more than enough of my own things to do.
Stephen.xxx
Posts: 7
Joined: 10. Apr 2019, 03:17

Re: some disks cannot be visible under /dev

Post by Stephen.xxx »

ok, tks.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: some disks cannot be visible under /dev

Post by socratis »

Marking as [Invalid].
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply