how to check lun id in linux vmware


How to find SAN Disk LUN id in Linux? We appreciate your interest in having Red Hat content localized to your language. In vSphere, select the host configuration tab, storage. your will provided WWN Number to the storage team then they will check that WWN number at their end & identify which WWN ID is free from the new lun which u required or if YOU want to extend any lun then they will extended that lun at their end after that you have to work on that one. But, from Redhat Linux 5.4 onwards, Redhat introduced /usr/bin/rescan-scsi-bus.sh script to scan all the LUNs and update the SCSI layer to reflect new devices. To check the attached LUN from a storage device in Linux, we can use the /proc/scsi/scsi file content but it will give you some information and you can not be able to distinguish physical attached drive to LUN. Right click the LUN in the Devices list and select "Copy identifier to clipboard" How to establish passwordless ssh between two servers, How to disable iptables firewall temporarily, How to identify current boot disk in HPUX, How to install EC2 Linux server in AWS with screenshots, How to disable direct root login on Linux & HPUX, How to list YUM repositories in RHEL / CentOS, How to change timezone in Linux server (RedHat, CentOS, Ubuntu), How to enable repository using subscription-manager in RHEL, 4 ways to check the size of physical memory (RAM) in Linux, How to start, stop & restart MariaDB server in Linux, How to rescan disk in Linux after extending VMware disk, How to reset iptables to the default settings, mount.nfs: requested NFS version or transport protocol is not supported, How to remount filesystem in the read-write mode under Linux, How to configure login banners in Linux (RedHat, Ubuntu, CentOS, Fedora). Highlighted output is showing that scsi channel id is 8 and LUN id is 1, Like wise we can identify the associated disk name /dev/sde and its LUN id. Are you sure you want to request a translation? Check the number of attached disks Check the highlighted portion in both commands to correlate. Select the Devices View Sort by LUN # and locate the LUN you want to verify. Display the content as below as below To get WWID of LUN you can use the /dev/disk/by-id/ file: # ls -la /dev/disk/by-id/ scsi-3600508b400105e210000900000490000 ->../../dm-1 Now its easier to understand that dm-1 has WWID 3600508b400105e210000900000490000 Method 2 Now login to Linux VM and execute below command : # dmesg | grep -i 'Attached SCSI disk' Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Attached scsi disk sdb at scsi0, channel 0, id 1, lun 0 Edit settings on the VM, then Open the disk in question and see the Physical Lun line. To scan new FC LUNS and SCSI disks in Linux, you can use the echo script command for a manual scan that doesn't require a system reboot. Find SAN Disk Lun id All Rights Reserved. No fancy mapping, and no errors as the linux admin, the VMware admin, and the SAN team can talk the same language. it's depend whether it is used as LVM or With out LVM. Inside vmware gui you can find that number in the middle of the vml for the disk. The content is copyrighted to Shrikant Lavhate & can not be reproduced either online or offline without prior permission. Collect LUN id and path details go to SAN console and match with LUN id.