All volumes attached to an instance are not shown in a Linux guest OS
search cancel

All volumes attached to an instance are not shown in a Linux guest OS

book

Article ID: 324730

calendar_today

Updated On:

Products

VMware Integrated OpenStack

Issue/Introduction

Symptoms:

After attaching some volumes to a Linux instance, all volumes are correctly displayed in the guest OS.

For example:

  • On Horizon VIO, seven volumes are attached to the instance.
  • Inside Linux guest OS, only two 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
  • You see this preceding result after scanning the storage interconnects, using this command:

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


Cause

Resolution

To resolve this issue, rescab the SCSI bus.
To re-scan the SCSI bus entirely, reboot the guest operating system.
If the guest OS cannot be rebooted, perform force SCSI rescan 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 correctly show up in 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 when running a rescan directly on Disk Management pane.

Alternative method for disk rescanning using the command line:
  1. Start a command prompt and type diskpart.
  2. At diskpart prompt, type rescan.