分类: 系统运维
2012-11-08 01:39:03
一. 单机改主机名需更改以下文件:
/etc/hosts
/etc/hostname.hme0(根据主网口更改)
/etc/nodename
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts
/etc/net/tilts/hosts
二. VCS双机更改主机名步骤:
1. 停掉VCS软件
# /opt/VRTS/bin/hastop –all
可以用一下命令查询双机是否停掉:
# /opt/VRTS/bin/hastatus
group resource system message
--------------- -------------------- --------------- --------------------
aaa01 RUNNING
aaa02 RUNNING
sdaaa aaa01 ONLINE
sdaaa aaa02 OFFLINE
-------------------------------------------------------------------------
aaa aaa01 ONLINE
aaa aaa02 OFFLINE
ardg aaa01 ONLINE
ardg aaa02 OFFLINE
arip aaa01 ONLINE
-------------------------------------------------------------------------
arip aaa02 OFFLINE
armount aaa01 ONLINE
armount aaa02 OFFLINE
backupmount aaa01 ONLINE
backupmount aaa02 OFFLINE
-------------------------------------------------------------------------
datamount aaa01 ONLINE
datamount aaa02 OFFLINE
arnic aaa01 ONLINE
arnic aaa02 ONLINE
arvol01 aaa01 ONLINE
-------------------------------------------------------------------------
arvol01 aaa02 OFFLINE
arvol02 aaa01 ONLINE
arvol02 aaa02 OFFLINE
arvol03 aaa01 ONLINE
arvol03 aaa02 OFFLINE
以上状态表示双机正常
2. 分别在两台上更改单机文件
/etc/hosts
/etc/hostname.hme0
/etc/nodename
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts
/etc/net/tilts/hosts
3. 更改双机所需文件
/etc/llthosts
/etc/llttab
/etc/VRTSvcs/conf/sysname
/etc/VRTSvcs/conf/config/main.cf
4. 用init 6 或者reboot同时重起2台双机
5. 检查双机状态
用# /opt/VRTS/bin/hastatus 察看双机是否正常启动
如果双机正常,则更改完成。
6. 如果双机没有正常启动
用命令强制接受设置
# /opt/VRTS/bin/hasys -force new system name
重起双机。