storage - Re-scan LUN on Linux -
we have expend existing lun size on emc storage , want re-scan on host side don't know how figure out scsi id of specific lun. new storage.. doing don't know whether right way or not
pseudo name=emcpowerj clariion id=apm00112500570 [oracle_cluster] logical device id=200601602e002900b6bca114c9f8e011 [lun01] state=alive; policy=claropt; priority=0; queued-ios=0; owner: default=sp a, current=sp array failover mode: 1 ============================================================================== --------------- host --------------- - stor - -- i/o path -- -- stats --- ### hw path i/o paths interf. mode state q-ios errors ============================================================================== 2 qla2xxx sdaj sp a1 active alive 0 1 2 qla2xxx sdaw sp b1 active alive 0 4 1 qla2xxx sdj sp a0 active alive 0 1 1 qla2xxx sdw sp b0 active alive 0 4
here running find command on sdx device find out scsi id can echo 1 > /sys/bus/scsi/drivers/x:x:x:x/rescan
re-scan lun
$ find /sys/devices -name "*block*" | grep -e "sdaj" -e "sdaw" -e "sdj" -e "sdw" /sys/devices/pci0000:00/0000:00:09.0/0000:05:00.1/host2/rport-2:0-1/target2:0:1/**2:0:1:8**/block:sdaw /sys/devices/pci0000:00/0000:00:09.0/0000:05:00.1/host2/rport-2:0-0/target2:0:0/**2:0:0:8**/block:sdaj /sys/devices/pci0000:00/0000:00:09.0/0000:05:00.0/host1/rport-1:0-1/target1:0:1/**1:0:1:8**/block:sdw /sys/devices/pci0000:00/0000:00:09.0/0000:05:00.0/host1/rport-1:0-0/target1:0:0/**1:0:0:8**/block:sdj
or there alternative or other way scan lun?
i use "lsscsi" program, available distribution.
% lsscsi [0:0:0:0] cd/dvd necvmwar vmware ide cdr00 1.00 /dev/sr0 [2:0:0:0] disk vmware, vmware virtual s 1.0 /dev/sda [2:0:1:0] disk vmware, vmware virtual s 1.0 /dev/sdb
as rescanning bus, that's pretty it.
Comments
Post a Comment