
Checking the status of the fauly disk which is having more H/w error.
[root@unixrock ~]# iostat -en|grep -i c1t2d0Trying to unconfigure the disk in OS level by using cfgadm command
---- errors ---
s/w h/w trn tot device
0 133 55 188 c1t2d0
[root@unixrock ~]# cfgadm -al |grep -i c1t2d0
c1::dsk/c1t2d0 disk connected configured unknown
[root@unixrock ~]#
[root@unixrock ~]# cfgadm -c unconfigure c1::dsk/c1t2d0Checking the status is Vxdmpadm level
cfgadm: Component system is busy, try again: failed to offline:
Resource Information
------------------ -------------------------
/dev/dsk/c1t2d0s2 Device being used by VxVM
[root@unixrock ~]#
[root@unixrock ~]# vxdmpadm getsubpaths ctlr=c1while trying to disable the particular path c1t2d0s2 from vxdmpadm, getting error "VxVM vxdmpadm ERROR V-5-1-13080"
NAME STATE[A] PATH-TYPE[M] DMPNODENAME ENCLR-TYPE ENCLR-NAME ATTRS
================================================================================
c1t1d0s2 ENABLED(A) - disk_1 Disk disk -
c1t2d0s2 ENABLED(A) - disk_2 Disk disk -
[root@unixrock ~]#
[root@unixrock ~]# vxdmpadm disable path=c1t2d0s2Trying to disable the path forcefully and confirmed that vxdmpadm the disks state changed as disabled.
VxVM vxdmpadm ERROR V-5-1-13080 Attempt to disable all paths through portid and enclosure failed. Last path to the disk can not be disabled.
[root@unixrock ~]#
[root@unixrock ~]# vxdmpadm -f disable path=c1t2d0s2Let we try to unconfgure the disk.
[root@unixrock ~]# vxdmpadm getsubpaths ctlr=c1
NAME STATE[A] PATH-TYPE[M] DMPNODENAME ENCLR-TYPE ENCLR-NAME ATTRS
================================================================================
c1t1d0s2 ENABLED(A) - disk_1 Disk disk -
c1t2d0s2 DISABLED(M) - disk_2 Disk disk -
[root@unixrock ~]#
[root@unixrock ~]# cfgadm -c unconfigure c1::dsk/c1t2d0Yes.....we have successfully unconfigured the disk from OS level..... Thanks for reading this post and leave you valuable comments and suggestion.
[root@unixrock ~]#
[root@unixrock ~]#
[root@unixrock ~]# cfgadm -al|grep -i c1t2d0
c1::dsk/c1t2d0 disk connected unconfigured unknown
[root@unixrock ~]#