Quantcast
Channel: UnixRock
Viewing all articles
Browse latest Browse all 25

cfgadm Device being used by VxVM

$
0
0
Just want to share with you all which i encounter the issue recently when I trying to unconfigure the faulty disk by using cfgadm command, But i got an error "Device being used by VxVM". Please follow the steps to fix the issue.

Checking the status of the fauly disk which is having more H/w error.
[root@unixrock ~]# iostat -en|grep -i c1t2d0
---- 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 ~]#
Trying to unconfigure the disk in OS level by using cfgadm command
[root@unixrock ~]# cfgadm -c unconfigure c1::dsk/c1t2d0

cfgadm: Component system is busy, try again: failed to offline:
Resource Information
------------------ -------------------------
/dev/dsk/c1t2d0s2 Device being used by VxVM
[root@unixrock ~]#
Checking the status is Vxdmpadm level
[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 ENABLED(A) - disk_2 Disk disk -
[root@unixrock ~]#
while trying to disable the particular path c1t2d0s2 from vxdmpadm, getting error "VxVM vxdmpadm ERROR V-5-1-13080"
[root@unixrock ~]# vxdmpadm disable path=c1t2d0s2
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 ~]#
Trying to disable the path forcefully and confirmed that vxdmpadm the disks state changed as disabled.
[root@unixrock ~]# vxdmpadm -f disable path=c1t2d0s2
[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 ~]#
Let we try to unconfgure the disk.
[root@unixrock ~]# cfgadm -c unconfigure c1::dsk/c1t2d0
[root@unixrock ~]#
[root@unixrock ~]#
[root@unixrock ~]# cfgadm -al|grep -i c1t2d0
c1::dsk/c1t2d0 disk connected unconfigured unknown
[root@unixrock ~]#
Yes.....we have successfully unconfigured the disk from OS level..... Thanks for reading this post and leave you valuable comments and suggestion.


Viewing all articles
Browse latest Browse all 25

Trending Articles