Video Screencast Help
Scheduled Maintenance: Symantec Connect is scheduled to be down Saturday, April 19 from 10am to 2pm Pacific Standard Time (GMT: 5pm to 9pm) for server migration and upgrade.
Please accept our apologies in advance for any inconvenience this might cause.

another few tips with vxvm/vcs

Created: 13 May 2009
Eric Gao's picture
0 0 Votes
Login to vote

Here I put down some tips in the community, in case someone else suffers the same issue.

1. manually import agent/type
There is once a time, I have to install vxvm/vvr on a a server without X environment,  after done all the installation,   I found the problem I have to import few vcs types like RVG, RVGShared, RVGLogowner etc etc, that defined in file /etc/VRTSvcs/conf/VVRTypes.cf.  As I was using a citrix session and I am not allowed to install some X server software,  then that became a problem because I don't remember the syntax to so many commands,  normally I just import the file from hagui,  but not for this time.  Then what to do?   while later on, I got this tip from my friens,

/opt/VRTSvcs/bin/hacf -typetocmd /etc/VRTSvcs/conf/VVRTypes.cf -display

though the sumbcommand typetocmd is not showing up in man page or help page.   then all I need to is pipe the output into a text file and run it from command line,  simple as it is.

2. change hostname? what about vcs & vxvm
After change server's hostname, sometimes vxvm&vcs works without any problem, but sometimes not.  So the straight froward procedure is as below,
For vcs, change /etc/VRTSvcs/conf/sysname accordingly, the name inside this file will become the sys name within the cluster.
For vxvm
collect a copy of vxexplorer  (this is for backup purpose)
vxdg -h <new-hostname> deport dgname
vxdctl hostid <newhostname>
Change the hostname and IP address of the system
reboot server

3. vxvm 4.1 can only see the internal disk, not EMC disks?
This only happened with my case, not sure yours, if so, you might check my comments below

On the new M4000, with install of vxvm/vcs 4.1, we came across a problem that “vxdisk list” only recognize the internal disks, it ignores all the EMC disks, though they are visiable from format command.
Had tried “vxdctl enable” “vxdisk scandisks”, “cfgadm -c configure c2; cfgadm -c configure c4? “restart vxvm daemon”, still no luck.

Since solaris is already able to detect the EMC disk,  there must be something wrong with the device descovery with Veritas vxvm. So we digged around with vxddladm command.

prod1:/opt/VRTS/man # vxddladm listsupport all
LIBNAME VID PID
==============================================================================
libvxap.so SUN All
libvxatf.so VERITAS ATFNODES
libvxcscovrts.so CSCOVRTS MDS9
libvxeccs.so ECCS All
libvxemc.so EMC SYMMETRIX  <-------------------------- here is the library to discover EMC disks
libvxfujitsu.so FUJITSU GR710, GR720, GR730
libvxhds.so HITACHI All
libvxhitachi.so HITACHI DF350, DF400, DF400F
libvxlsiinf.so LSI INF-01-00
libvxnec.so NEC DS1200, DS1200F, DS3000SL
libvxpurple.so SUN T300
libvxrdac.so VERITAS RDACNODES
libvxsena.so SENA All
libvxshark.so IBM 2105
libvxssa.so SSA SSA
libvxstorcomp.so StorComp OmniForce
libvxveritas.so VERITAS All
libvxvpath.so IBM 2105
libvxxp256.so HP All

prod1:/root # vxdisk list <——– no EMC disks are recognized.
DEVICE TYPE DISK GROUP STATUS
c0t0d0s2 auto:none – - online invalid
c0t1d0s2 auto:none – - online invalid

prod1:/root # vxddladm excludearray libname=libvxemc.so <————-here exclude the library for EMC and re-scan disks
prod1:/root # vxdctl enable
prod1:/root # vxdisk list

DEVICE TYPE DISK GROUP STATUS
Disk_0 auto:cdsdisk – - online
Disk_1 auto:cdsdisk – - online
Disk_2 auto:cdsdisk – - online
Disk_3 auto:cdsdisk – - online
c0t0d0s2 auto:none – - online invalid
c0t1d0s2 auto:none – - online invalid

prod1:/root #

After includearray of libvxemc.so, the disks will be gone again, we must exclude this library to get it going.
Not sure what is the side effects of excluding libvxemc.so.