In VM we need only uuid not WWPN or WWN number of any disk if you need any information related to the disk then below are command for the same.
Like in RHEL6 if you need to install ASM then there is no package for that, hence we need configure the udev rule so that RAW disk work perfectly so we generated the UUID of the disk in the VM below are the command used fot that
scsi_id command examples
For SCSI attached disk use scsi_id command which queries a SCSI device via the SCSI INQUIRY vital product data (VPD) page 0x80 or 0x83 and uses the resulting data to generate a value that is unique across all SCSI devices that properly support page 0x80 or page 0x83.
# scsi_id -s /block/sda
# scsi_id -a -s /block/sda
# scsi_id -gus /block/sda
Where,
-s : Generate an id for the sysfs-device
-a : Always print information (model, vendor strings) about the device even if it does not support VPD pages.
-g : Treat the device as white listed. The -g option must be specified on the command line or in the scsi_id configuration file for scsi_id to gener ate any output
-u : Reformat the output : replace all whitespaces by underscores
As you said
Quote:
"However, when running that same command from inside a VM that doesn't work. Does anyone know how to determine a WWN from inside Red Hat Linux while in a VM?"
|
for that below are Procedure to enable uuid in the vm machine
shut down your virtual machine
right-click the VM’s entry in the left-hand panel and select Edit Settings
click the Options tab Select the Advanced -> General item on the left and click the Configuration Parameters... button you then see displayed on the right
Click the Add Row button
Add disk.EnableUUID as the name of the new row, and the word TRUE as its value (don’t use quotation marks around either of these entries).
Click OK to make the new parameter addition ‘stick’.
You can then reboot your virtual machine.
disk.EnableUUID = TRUE
Quote:
In some situations I've been able to determine which disk is which by doing an lsscsi, and comparing the virtual device node SCSI ID, but sometimes that doesn't match up with what lsscsi output shows.
|
that will help you to compare the Graphic view of the VM disk in the settings tap & Below command
Quote:
#sudo find /sys/devices -name block:sd* |awk -F/ '{ print $NF, $(NF-1)}' |awk -F: '{ print $2 ":" $4 }'
sdb 0:1
sda 0:0
|