UnixPedia : HPUX / LINUX / SOLARIS: HPUX :HP-UX 11I V3 - "IO_REDIRECT_DSF" CANNOT PERFORM REDIRECTION ISSUE

Thursday, December 5, 2013

HPUX :HP-UX 11I V3 - "IO_REDIRECT_DSF" CANNOT PERFORM REDIRECTION ISSUE



Issue

# io_redirect_dsf -d /dev/disk/disk14 -n /dev/disk/disk28
/dev/disk/disk14 is being used. Cannot perform redirection.
Solution
/usr/sbin/io_redirect_dsf is actually a script that you can look at.
It is using iostat to check if the disk is still in use. If the disk is not in use, it uses rmsf and ioinit to reassign the device file.

#iostat

  device    bps    sps   msps

     disk14     17    2.2    1.0
If the disk shows up in iostat , there is no chance to redirect it. If tried to rmsf this device file, a device busy message is obtained. If a system is not patched well, disks will show up in iostat , even if they are not used.
There is also a bug in the older io_redirect_dsf scripts:

# what /usr/sbin/io_redirect_dsf
io_redirect_dsf:
 io_redirect_dsf $Date: 2008/10/21 01:56:37 $Revision: r11.31_hot/4 PATCH_11.31 (PHCO_38991)
If there is no patch PHCO_38991 or later installed, then install the patch. This patch only replaces the io_redirect_dsf script and can be installed on-line.
Other reasons could be that they are still activated in LVM or VxVM.
For LVM use pvchange -a n /dev/disk/disk14
For VxVM use vxprint to see if the disk is configured. Use vxdiskadm (a menue driven utility) to remove the disk.
Also try to kill the disk_em monitor if nothing else helps.


[root@EARTH:/.root]#
#->  io_redirect_dsf -d /dev/disk/disk4 -n /dev/disk/disk22
/dev/disk/disk4 is being used. Cannot perform redirection.
[root@EARTH:/.root]#

#-> ioscan -m lun | grep -i DG146BB976
disk      4  64000/0xfa00/0x0    esdisk  NO_HW       DEVICE       offline  HP      DG146BB976
disk      5  64000/0xfa00/0x1    esdisk  CLAIMED     DEVICE       online   HP      DG146BB976
disk     22  64000/0xfa00/0xf3   esdisk  CLAIMED     DEVICE       online   HP      DG146BB976
[root@EARTH:/var/adm/install-logs]#

#->  ioscan -m lun /dev/disk/disk22  <---- NDEW DISK PATH
Class     I  Lun H/W Path  Driver  S/W State   H/W Type     Health  Description
======================================================================
disk     22  64000/0xfa00/0xf3   esdisk  CLAIMED     DEVICE       online  HP      DG146BB976
             0/4/1/0.0x5000c5000bbf5ae1.0x0
                      /dev/disk/disk22      /dev/disk/disk22_p1   /dev/disk/disk22_p2   /dev/disk/disk22_p3   /dev/rdisk/disk22     /dev/rdisk/disk22_p1  /dev/rdisk/disk22_p2  /dev/rdisk/disk22_p3
[root@EARTH:/var/adm/install-logs]#

#-> ioscan -m lun /dev/disk/disk4   <---- OLD DISK PATH
Class     I  Lun H/W Path  Driver  S/W State   H/W Type     Health   Description
=======================================================================
disk      4  64000/0xfa00/0x0   esdisk  NO_HW       DEVICE       offline  HP      DG146BB976
             0/4/1/0.0x5000c5000c9cae01.0x0
                      /dev/disk/disk4      /dev/disk/disk4_p1   /dev/disk/disk4_p2   /dev/disk/disk4_p3   /dev/rdisk/dis

#-> pvdisplay /dev/disk/disk22
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/disk/disk22" belongs.
pvdisplay: Cannot display physical volume "/dev/disk/disk22".
[root@EARTH:/var/adm/install-logs]#
#-> pvdisplay /dev/disk/disk4
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/disk/disk4" belongs.
pvdisplay: Cannot display physical volume "/dev/disk/disk4".
[root@EARTH:/var/adm/install-logs]#

 

No comments:

Post a Comment