/sys/class/scsi_host/host0/scan Replace host0 with actual value. You can find..."> /sys/class/scsi_host/host0/scan Replace host0 with actual value. You can find...">

Disk operations in Linux (SAN, VMware, Veritas)

Posted on Sun 27 February 2011 by Pavlo Khmel

1. Scan for new SAN or VMware disk

echo "- - -" > /sys/class/scsi_host/host0/scan

Replace host0 with actual value. You can find scsi_host value using the following command:

ls /sys/class/scsi_host

Output: host0

ls -la /dev/ | grep sd
fdisk -l
tail -f /var/log/message

2. Multipath I/O software:

GNU/Linux DM-Multipath

List DM-Multipath disks

multipath –l

EMC PowerPath

List disks:

powermt display dev=all | grep emcpow

Create new PowerPath devices:

powermt config

Hitachi HiCommand Dynamic Link Manager

List disks:

dlnkmgr view -path
dlnkmgr view -lu

Crete new HDLM devices:

dlmcfgmgr -r

IBM System Storage Multipath Subsystem Device Driver (SDD)

List disks:


Create new IBM SDD disks:


Veritas Volume Manager, VVM or VxVM

List disk groups:

vxdisk -o alldgs list

Scan for new disk:

vxdctl enable

Adding new disk:


3. Emulex HBAnyware

Emulex HBAnyware management application provides comprehensive control of Emulex LightPulse Fibre Channel HBAs and Fibre Channel.
List the Emulex HBAs:

/usr/sbin/hbanyware/hbacmd listHBAS

Show firmware versions, serial numbers, WWN and a variety of model specific information:

/usr/sbin/hbanyware/hbacmd HBAAttrib 10:00:00:00:xx:xx:xx:xx

Show host port information:

/usr/sbin/hbanyware/hbacmd PortAttrib 10:00:00:00:xx:xx:xx:xx

Show the target mapping (the devices connected to the HBA card):

/usr/sbin/hbanyware/hbacmd TargetMapping 10:00:00:00:xx:xx:xx:xx