Excluding local disk from monitoring
[DEV][root@server1 bin]# vxdmpadm getctlr
LNAME PNAME VENDOR CTLR-ID
=============================================================================================
c4 c4 - -
c0 c0 Emulex 10:00:00:90:fa:xx:xx:xx
c2 c2 Emulex 10:00:00:90:fa:yy:yy:yy
[DEV][root@server1 bin]# A
[DEV][root@server1 bin]# vxdmpadm getctlr | grep "c4"
c4 c4 - -
[DEV][root@server1 bin]# vxdmpadm getctlr | grep c4 | awk '{print $1}' | xargs -I {} vxdmpadm exclude vxvm ctlr={}
[DEV][root@server1 bin]# vxdmpadm getctlr
LNAME PNAME VENDOR CTLR-ID
=============================================================================================
c0 c0 Emulex 10:00:00:90:fa:xx:xx:xx
c2 c2 Emulex 10:00:00:90:fa:yy:yy:yy
[DEV][root@server1 bin]# vxdmpadm getctlr
LNAME PNAME VENDOR CTLR-ID
=============================================================================================
c4 c4 - -
c0 c0 Emulex 10:00:00:90:fa:xx:xx:xx
c2 c2 Emulex 10:00:00:90:fa:yy:yy:yy
[DEV][root@server1 bin]# A
[DEV][root@server1 bin]# vxdmpadm getctlr | grep "c4"
c4 c4 - -
[DEV][root@server1 bin]# vxdmpadm getctlr | grep c4 | awk '{print $1}' | xargs -I {} vxdmpadm exclude vxvm ctlr={}
[DEV][root@server1 bin]# vxdmpadm getctlr
LNAME PNAME VENDOR CTLR-ID
=============================================================================================
c0 c0 Emulex 10:00:00:90:fa:xx:xx:xx
c2 c2 Emulex 10:00:00:90:fa:yy:yy:yy
Above given solution will work from SF 5.0 onward....
No comments:
Post a Comment