Posts

Showing posts with the label LUN reset

How to do Lun reset and target reset on RHEL 6.x and 7.x OS version ?

LUN reset - Resets the specified LUN by clearing any reservation on the LUN and making the LUN available to all servers again. The reset does not affect any of the other LUNs on the device. If another LUN on the device is reserved, it remains reserved. Target reset - Resets the entire target. The reset clears any reservations on all the LUNs associated with that target and makes the LUNs available to all servers again. Make sure if below package is installed on your RHEL host: # rpm -qa | grep sg3 sg3_utils-libs-1.37-12.el7.x86_64 sg3_utils-1.37-12.el7.x86_64 "sg_reset" command comes bundled with "sg3_utils" package, so install it if not installed already.  Get the wwid for the device which needs to be reset: # multipath -ll 360002ac000000000000000820001cb64 dm-23 3PARdata,VV size=2.5T features='1 queue_if_no_path' hwhandler='1 alua' wp=rw `-+- policy='round-robin 0' prio=50 status=active   |- 0:0:0:5  sdj  8:144  ac...

How to do Lun reset and target reset operations on ESXi 6.x ?

LUN reset - Resets the specified LUN by clearing any SCSI reservation on the LUN and making the LUN available to all servers again. The reset does not affect any of the other LUNs on the device. If another LUN on the device is reserved, it remains reserved. Target reset - Resets the entire target. The reset clears any SCSI reservations on all the LUNs associated with that target and makes the LUNs available to all servers again. To check all the available devices: # esxcfg-scsidevs -l naa.60002ac000000000000000860001cb64    Device Type: Direct-Access    Size: 2609152 MB    Display Name: 3PARdata Fibre Channel Disk (naa.60002ac000000000000000860001cb64)    Multipath Plugin: NMP    Console Device: /vmfs/devices/disks/naa.60002ac000000000000000860001cb64    Devfs Path: /vmfs/devices/disks/naa.60002ac000000000000000860001cb64    Vendor: 3PARdata  Model: VV        ...