
安装Veritas的软件VxVM和VVR后,没有reboot服务器情况下,Veritas的一些命令不可使用,重新reboot服务器后就能够正常使用。个中原因是什么?经过一番探索,找到了它的工作原理。
其工作原理是在Solaris系统中,安装完Solaris的recommand的补丁后,有一个标准的Profile,即“/.profile-EIS”,在这个profile里面,设置了Veritas软件Volume Manager的环境变量。其实只要目录/opt/VRTSvxvm,/opt/VRTSvmsa,/opt/VRTS/man,/opt/VRTS/bin,/opt/VRTSob/bin,/opt/VRTSvlic/bin存在,执行/.profile-EIS后就设置了VxVM和VVR的环境变量。
不过Sun的推荐补丁有一个小小bug,在Solaris 10版本中,安装完Recommend补丁后,其Profile里面没有更新到最新的Volume Manager版本,目前Volume Manger 4.1版本以前的版本停止销售。
/.profile-EIS的片断如下:
#
# Veritas Volume Manager 3.0 - 3.1
#
VXVM3_BASE=/opt/VRTSvxvm
VMSA_BASE=/opt/VRTSvmsa
if [ -d ${VXVM3_BASE} ]
then
MANPATH=${VXVM3_BASE}/man:${MANPATH}
PATH=${PATH}:/etc/vx/bin
fi
if [ -d ${VMSA_BASE} ]
then
VMSAHOME=${VMSA_BASE}
export VMSAHOME
MANPATH=${VMSA_BASE}/man:${MANPATH}
PATH=${PATH}:${VMSA_BASE}/bin
fi
#
# Veritas Volume Manager 3.1.1 onwards or Veritas Filesystem 3.4 onwards
#
VXVM_MAN=/opt/VRTS/man
if [ -d ${VXVM_MAN} ]
then
MANPATH=${VXVM_MAN}:${MANPATH}
fi
#
# Veritas 3.5
#
if [ -d /opt/VRTS/bin ]
then
PATH=${PATH}:/opt/VRTS/bin:/etc/vx/bin
fi
#
# Veritas 3.5 GUI
#
if [ -d /opt/VRTSob/bin ]
then
PATH=${PATH}:/opt/VRTSob/bin
MANPATH=/opt/VRTSob/man:${MANPATH}
fi
#
# Veritas Licensing
#
if [ -d /opt/VRTSvlic/bin ]
then
PATH=${PATH}:/opt/VRTSvlic/bin
fi