Search the VMware Knowledge Base (KB)
View by Article ID

VIO Not all the volumes attached to an instance are correctly shown up inside a Linux guest OS. (2151093)

  • 0 Ratings

Symptoms

After attaching some volumes to a Linux instance, not all of them, are correctly displayed inside the guest OS.

For example:

  1. On Horizon VIO, seven volumes are attached to the instance.
  2. Inside Linux guest OS, only two of them are correctly displayed:

    [root@Linuxtest]# lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sda 8:0 0 12G 0 disk
    ├─sda1 8:1 0 1M 0 part
    ├─sda2 8:2 0 200M 0 part /boot
    └─sda3 8:3 0 4.8G 0 part
    └─VolGroup00-LogVol00 253:0 0 4.6G 0 lvm /
    sdb 8:16 0 10G 0 disk
    sr0 11:0 1 548K 0 rom 

  3. Preceding result is shown after scanning the storage interconnects, using this command:

    echo "1" > /sys/bus/pci/rescan 

Cause

The SCSI bus must be re-scanned, to correctly identify all the attached volumes. 

Resolution

To re-scan the SCSI bus entirely, reboot the guest operating system. 

If the guest OS cannot be rebooted, a forced SCSI re-scan should be attempted, using this command:
 
root@Linuxtest]# echo "- - -" > /sys/class/scsi_host/*/scan
 
where the hyphens ""- - -" represent "controller channel lun" . Therefore, – – – indicates all controllers, all channels and all luns.
 
After running the preceding command, all the volumes should be correctly show up inside the guest OS:
 
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 12G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 200M 0 part /boot
└─sda3 8:3 0 4.8G 0 part
└─VolGroup00-LogVol00 253:0 0 4.6G 0 lvm /
sdb 8:16 0 10G 0 disk
sdc 8:32 0 1G 0 disk
sdd 8:48 0 5G 0 disk
sde 8:64 0 1G 0 disk
sdf 8:80 0 10G 0 disk
sdg 8:96 0 10G 0 disk
sr0 11:0 1 604K 0 rom
[root@vio-poc-nfscommon-0<mailto:root@vio-poc-nfscommon-0> ~]# lsscsi
[0:0:0:0] disk ATA VMware Virtual I 0001 /dev/sda
[0:0:1:0] cd/dvd NECVMWar VMware IDE CDR01 1.00 /dev/sr0
[2:0:0:0] disk VMware Virtual disk 2.0 /dev/sdb
[2:0:1:0] disk VMware Virtual disk 2.0 /dev/sdc
[2:0:2:0] disk VMware Virtual disk 2.0 /dev/sdd
[2:0:3:0] disk VMware Virtual disk 2.0 /dev/sde
[2:0:4:0] disk VMware Virtual disk 2.0 /dev/sdf
[2:0:5:0] disk VMware Virtual disk 2.0 /dev/sdg

Additional Information

Windows guest OS should pick up all the attached volumes and all the change in the discs, running a Re-scan directly on Disk Management pane.

Another method for disk re-scanning, can be performed trough the command line:
  1. Start a command prompt and type diskpart.
  2. At diskpart prompt, type rescan.

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 0 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)




Please enter the Captcha code before clicking Submit.
  • 0 Ratings
Actions
KB: