取消
顯示結果 
搜尋替代 
您的意思是: 

/etc/clua_services 的作用?

/etc/clua_services 的作用?

請問一般的非 cluster 的 OS, 都有 /etc/services 去定義哪個 service 用哪個 port, 而 TruCluster 還有另外的 /etc/clua_services 的作用是什麼?



Thanks



Eric
1 回覆

/etc/clua_services 的作用?

Hi Eric,



Please see the online manual for detailed explanation as you want.



# man clua_services

.

NAME

clua_services - Defines sockets, protocols, and connection attributes for

Internet services that use cluster aliases

.

By default, the /etc/clua_services file contains a subset of the services

defined in the /etc/services file. You can add user-defined services to

/etc/clua_services. If you modify the clua_services file, run cluamgr-f on

each cluster member in order for the modifications to take effect.

.

# man services

.

NAME

services - Defines the sockets and protocols used for Internet services

.

.

# grep -e telnet -e "^ftp" /etc/clua_services /etc/services

/etc/clua_services:ftp 21/tcp in_multi

/etc/clua_services:telnet 23/tcp in_multi,out_alias

/etc/services:ftp 21/tcp

/etc/services:telnet 23/tcp

# cat /etc/clu_alias.config

/usr/sbin/cluamgr -a selw=3,selp=1,join,alias=DEFAULTALIAS

#



The inetd refer to "/etc/inetd.conf" and "/etc/services" for Internet service.

But the aliasd refer to clu_alias.config and clua_services via cluamgr for cluster aliases.

It different to services file has more definition, such as in_single, in_multi...



See the best practices if you're interest.

http://h30097.www3.hp.com/docs/best_practices/BP_TCR_ORA_SS/TITLE.HTM



Best regards,

Richard.