1)如何修改IP地址和主機(jī)名
IP地址涉及的文件有:
/etc/hosts (change the IP address)
/etc/netmasks (if subnetting)
/etc/defaultrouter (to specify the new gateway for this subnet)
改變主機(jī)名涉及的文件有:
/etc/hosts (change to the new hostname)
/etc/nodename (change to the new hostname)
/etc/hostname.
interface for this system, i.e hostname.hme0 or hostname.le0.
Change to the new hostname.)
/etc/net/ticlts/hosts (change both columns to the new hostname)
/etc/net/ticots/hosts (change both coluums to the new hostname)
/etc/net/ticotsord/hosts (change both columns to the new hostname)
改完上述文件之后推薦重起一下機(jī)器 。
2)如何配置hme0、hme1兩塊網(wǎng)卡的主備關(guān)系
只要給hme0配置地址就夠了 。
然后會(huì)再后面的雙機(jī)配置中執(zhí)行下面的命令建立邏輯機(jī)的時(shí)候會(huì)創(chuàng)建出這種關(guān)系來(lái) 。
#scconf smcp -L smcpwork -n smcp01,smcp02 -g smcpdg -i hme0,hme0,smcpwork -m
3) 配置NAFO (Network Adapter Fail Over)
/opt/SUNWpnm/bin/pnmset
以下顯示相關(guān)信息
In the following, you will be prompted to do
configuration for network adapter failover
do you want to continue ... [y/n]: y
How many NAFO backup groups on the host [1]:
Enter backup group number [0]:
Please enter all network adapters under nafo0
hme0 hme1
The following test will evaluate the correctness
of the customer NAFO configuration...
name duplication test passed
Check nafo0... < 20 seconds
hme0 is active
remote address = 129.9.168.101
test hme1 wait...
nafo0 test passed 本信息表明通過(guò)測(cè)試
注意:
NAFO配置時(shí)對(duì)網(wǎng)線(xiàn)的要求較高,有時(shí)要做多次才能成功 。
B、配置雙機(jī)
雙機(jī)配置的一般過(guò)程是,先啟動(dòng)雙機(jī)系統(tǒng),在一個(gè)節(jié)點(diǎn)上配置cluster和包,
檢查無(wú)誤后,使配置生效,然后就可以進(jìn)行相應(yīng)操作 。
注意:
使用雙機(jī)前,需要檢查 smcpdg,querydg 的狀態(tài) 。執(zhí)行如下步驟:
(1) 在兩個(gè)節(jié)點(diǎn)分別執(zhí)行:
# vxdg list
應(yīng)該只看到 rootdg,不能看到 smcpdg 和 querydg 。
(2) 如果上以步操作看到 smcpdg 或 querydg,需要檢查IDS是否在運(yùn)行(Online) 。
如果在運(yùn)行,先終止IDS運(yùn)行,然后使用 vxdg deport 放棄對(duì) Disk Group 的控制 。
====================
雙機(jī)配置的一般過(guò)程是,先啟動(dòng)雙機(jī)系統(tǒng),在一個(gè)節(jié)點(diǎn)上配置cluster和包,檢查無(wú)誤后,使配置生效,然后就可以進(jìn)行相應(yīng)操作 。
注意:
使用雙機(jī)前,需要檢查 smcpdg,querydg 的狀態(tài) 。執(zhí)行如下步驟:
在兩個(gè)節(jié)點(diǎn)分別執(zhí)行:
# vxdg list
應(yīng)該只看到 rootdg,不能看到 smcpdg 和 querydg 。
如果上以步操作看到 smcpdg 或 querydg,需要檢查IDS是否在運(yùn)行(Online) 。如果在運(yùn)行,先終止IDS運(yùn)行,然后使用 vxdg deport 放棄對(duì) Disk Group 的控制 。
對(duì)雙機(jī)系統(tǒng)進(jìn)行配置
在1號(hào)機(jī)運(yùn)行#scadmin startcluster smcp01 smcp 。
待1號(hào)機(jī)雙機(jī)軟件起來(lái)之后,在2號(hào)機(jī)運(yùn)行#scadmin startnode,將其作為節(jié)點(diǎn)加入雙機(jī)
對(duì)雙機(jī)系統(tǒng)上邏輯機(jī)的配置
邏輯機(jī)與應(yīng)用程序?qū)?yīng),是雙機(jī)系統(tǒng)管理應(yīng)用程序的方式,每個(gè)邏輯機(jī)在雙機(jī)系統(tǒng)上只對(duì)外提供一個(gè)IP地址 。
================================================
(2)配置cluster
僅僅在一臺(tái)主機(jī)上運(yùn)行
#scconf iin -L scpwork -n smcp02,smcp01 -g scpdg -i hme0,hme0,scpwork -m
注意:
該命令格式為:
scconf
-g
-m
其中 的順序決定了該邏輯機(jī)在node1 上是主用,在node2上是備用 。
備注:這里的邏輯機(jī)的主機(jī)名對(duì)應(yīng)的浮動(dòng)IP地址必須要在/etc/hosts文件中配置 。
推薦閱讀
- Solaris 命令格式
- Solaris 8 如何使用及編輯PostScript字體?
- Solaris Veritas安裝記錄
- 中文打印工具 Solaris 8 如何打印中文
- Solaris dd命令復(fù)制硬盤(pán)
- 安裝 Solaris 9.0 OS 的 x86 Platform Edition 介紹
- Solaris 8 管理登錄管理器
- Solaris 進(jìn)程管理
- Solaris 8 如何定制您的OpenWindows工作區(qū)
- 如何在本地OpenWindows V3.x系統(tǒng)顯示遠(yuǎn)程O(píng)penWindows V2.x
