Tuesday, June 23, 2015


1.       Login to the vcenter server
2.       Edit the virtual machine settings by right click on the server which we are going to add the LUN
3.       Click on ADD

4.       Specify device type high light on Hard Disk and click next


5.       Select a Disk type as Raw Device Mappings and click next




6.       Select the Raw LUN and click on next (Note: If already the raw LUN is mapped or data storage is created for that LUN then the new LUN will not be shown here)




7.       Select Store with Virtual Machine and click on Next




8.       Select compatibility mode as physical and click on next



9.       Select the SCSI Device Node




10.   Click on Finish to complete and check it in the Active Tasks to be completed


11.   Login to the server where the Raw Device has been Mapped

12.   Goto start Right click on the computer and select manage





13.   Click on Disk Management, here you can see the new raw device which is mapped


14.   Right click on the new drive and click on the New partition

15.   Partition the drive for the required size, assign the Drive letter and format it with NTFS file system

16.   Wait until the format to be complete and check the drive in the my computer.
How to identify/get QLogic/Emulex WWN on Red Hat Enterprise Linux 5 (RHEL5).
First identify your installed or recognized

# lspci | grep -i fibre
04:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
04:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
05:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
05:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
On  Red Hat Enterprise Linux 5 (5.x) is on /sys/class/fc_host/hostX/port_name
(X is your device 1,2,3,…N)
For get use:
cat /sys/class/fc_host/hostX/port_name
Sample with multiple HBA (Fibre) QLogic
# ls /sys/class/fc_host/
host3  host4  host5  host6
# cat /sys/class/fc_host/host[3-6]/port_name
0x2100001b32936e24
0x2101001b32b36e24
0x2100001b32932821
0x2101001b32b32821
On Red Hat Enterprise Linux 4 (AS/ES) is on /proc/scsi/qla2xxx/1 (1,2,3,..N)
Sample:
# egrep [node|port] /proc/scsi/qlx2xxx/0
scsi-qla0-adapter-node=200000e08b1c19f2;
scsi-qla0-adapter-port=210000e08b1c19f2;