This article will guide you through the process of locating a specific storage service instance (Virtual Disk) in the OS (Windows and Linux).
Suppose you want to locate a Virtual Disk named "MyDisk03". You need PCUBus information of the target Virtual Disk. From the screenshot below, PCUBus of MyDisk03 is 0:3.
PCIBus consists of two field. The first field, 0, is the bus number. The latter field, 3, is the target ID. So we are going to find a disk having bus number 0 and target ID 3.
1. Open Administrative tools -> Disk Management
2. Locate the target disk in the lower left list, and right-click on it. Choose "Properties" from the context menu.
3. In the "General" tab, look for the Location field. There are Bus Number and Target Id of the disk.
4. If this is not the target disk, repeat the process for other disks until you find the one with the matching Bus Number and Target Id.
1. Run the following command:
readlink -f /sys/block/sd*
2. The output will look similar to the following:
$ readlink -f /sys/block/sd* /sys/devices/pci0000:00/0000:00:15.0/0000:03:00.0/host2/target2:0:0/2:0:0:0/block/sda /sys/devices/pci0000:00/0000:00:15.0/0000:03:00.0/host2/target2:0:1/2:0:1:0/block/sdb /sys/devices/pci0000:00/0000:00:15.0/0000:03:00.0/host2/target2:0:2/2:0:2:0/block/sdc /sys/devices/pci0000:00/0000:00:15.0/0000:03:00.0/host2/target2:0:3/2:0:3:0/block/sdd
3. Identify the
target*:*:* portion of each line. This segment has three fields divided by ":":
- The first field is the SCSI host number.
- The second filed is the bus number.
- The last field is the target ID.
4. Look for the device name, like
sda, at the end of each line.
5. Use the information gathered in steps 3 and 4 to determine which disk you are looking for. In this example,
sdd is the disk we are looking for (0:3).