系統管理
1751792 會員
4984 線上
108781 解決方案
發表新文章

有關於MC / ServiceGuard volume group

 
watermelonyu
教授

有關於MC / ServiceGuard volume group

在MC / ServiceGuard share volume group 中先執行vgchange -a s vg_ops的那一台

會成為server

另一台會成為client

但是server 再重新開機後,再一次加入cluster後就會變成client

1)

請問這裡的server and client跟資料寫入有關聯嗎

我的oracle datafile 是用raw device

client 那一台的oracle 資料寫入是透過server 嗎,還是透過自己

2)如果我想讓client 變成server,我要怎樣才能切換

7則回覆 7
watermelonyu
教授

有關於MC / ServiceGuard volume group

應該說, 看你當時cluster package的設定來了解當機器出問題時, cluster package與cluster node之間的行為模式.



在你的OPS server重開機前, package應當是自動切換到node2(原來的client)上, 簡單的驗證方法, 如沒有service impact的話, 先在node2執行一個do, loop去下cmviewcl來觀察整個cluster的切換的過程, 然後將node1重開機, 就可以知道了.



或者到/etc/cmcluster去看cluster package的log.

watermelonyu
教授

有關於MC / ServiceGuard volume group

node1 reboot後,server是已經切換到node2,但是當我node1開起來之後,可以手動切回node1當server 嗎?
watermelonyu
教授

有關於MC / ServiceGuard volume group

joey:

以下是我的个人意见:

你如果想把你的server和client对换,你必须得更改你的/etc/cmcluster/cluster.ascii文件,然后再apply,前提是ap都stop的时候。

另外,当你的node1起来后你的oracle pkg是可以切换的!



希望大家讨论,小弟也能多学点东西!
watermelonyu
教授

有關於MC / ServiceGuard volume group

我想我寫得不夠清楚,我是指volume group 的server and client

當rac1 reboot 後rac2 vg_ops會成為server

我怎樣把rac1 vg_ops 變成server

example:

# vgchange -a s vg_ops

Activated volume group in Shared Mode.

This node is the Server.

Volume group "vg_ops" has been successfully changed.

#vgdisplay -v vg_ops

rac1 Server

rac2 Client
watermelonyu
教授

有關於MC / ServiceGuard volume group

Try following steps.



On each node

#vgchange -a n /dev/vg_ops



On one of node

# vgchange -S y -c y /dev/vg_ops



on your first node.

# vgchange -a s -p /dev/vg_ops

Activated volume group in shared mode.This node is the Server.



on your second node

# vgchange -a s -p /dev/vg_ops

Activated volume group in shared mode.This node is a Client.
watermelonyu
教授

有關於MC / ServiceGuard volume group

請問這裡的client and server,跟我的i/o流向有關嗎

watermelonyu
教授

有關於MC / ServiceGuard volume group

答joey:

我怎樣把rac1 vg_ops 變成server:



我的操作方法是:

在rac1上:如果要变成server,首先你得使用

#vgchange -a s /dev/vg_ops

#vgdisplay -v vg_ops

然后你可以在rac2上使用命令

#vgchange -a n /dev/vg_ops

#vgchange -a s /dev/vg_ops

就可以把原来rac1上的client变成server了!