From: Yao C. L. <yc...@as...> - 2014-07-29 08:15:54
|
Thanks. It is very clearly explained. /Ted -----Original Message----- From: Mathivanan Naickan Palanivelu [mailto:mat...@or...] Sent: Tuesday, July 29, 2014 8:29 AM To: Yao Cheng LIANG; Anders Bjornerstedt Cc: ope...@li...; santosh satapathy Subject: RE: [users] AmfNodeName ClmNodeName and hostname Hi, This had slipped through, Comments inline: >-----Original Message----- >From: Yao Cheng LIANG [mailto:yc...@as...] >Sent: Tuesday, July 15, 2014 5:12 PM >To: Anders Bjornerstedt >Cc: ope...@li...; santosh satapathy >Subject: [users] AmfNodeName ClmNodeName and hostname > >Dear all, > >I noticed that there are AmfNodeName and ClmNodeName configured in >imm.xml, as blow shows onf of my SC node, >----------------------------------------------------------------------- >------------------------ >-------------------------- > <object class="SaAmfNode"> > <dn>safAmfNode=SC-2,safAmfCluster=myAmfCluster</dn> > <attr> > <name>saAmfNodeSuFailoverMax</name> > <value>2</value> > </attr> > <attr> > <name>saAmfNodeSuFailOverProb</name> > <value>1200000000000</value> > </attr> > <attr> > <name>saAmfNodeClmNode</name> > <value>safNode=WR20-64_25,safCluster=myClmCluster</value> > </attr> > </object> >----------------------------------------------------------------------- >------------------------ >-------------------------- >root@WR20-64_32:/etc/opensaf<mailto:root@WR20-64_32:/etc/opensaf>> >cat node_name >WR20-64_32 >----------------------------------------------------------------------- >------------------------ >-------------------------- >root@WR20-64_32:/etc/opensaf<mailto:root@WR20-64_32:/etc/opensaf>> >hostname >WR20-64_32 >----------------------------------------------------------------------- >------------------------ >------------------------- > >I am curious to know when a node boots up, which it would read to get >the clmNodeName, from :/etc/opensaf<mailto:root@WR20- >64_32:/etc/opensaf>/node_name or from hostname? > By default, when you install opensaf, the default value in /etc/opensaf/node_name will be the output of the command 'hostname -s'. The value in /etc/opensaf/node_name represents the rdn of the CLM node name. >And in readme_config, it says: >----------------------------------------------------------------------- >------------------------ >----------------------- >2) Edit nodes.cfg > >The third column in nodes.cfg should be edited to match the short form >of the hostname (as shown by 'hostname -s') for each host. >----------------------------------------------------------------------- >------------------------ >------------------------ > >The what the second column and the third used for? > [Mathi] The first column is node_type, second column contains rdn value of AMF node name, and The 3rd column represents the rdn value of the CLM node name. Typically the CLM node name would be the hostname. The nodes.cfg is generated with default values set to SC-1, SC-2 etc. **This value should match The value that you specify in /etc/opensaf/node_name**. In your case, if you want safNode=WR20-64_25,safCluster=myClmCluster as your CLM node name, And if you want the AMF node name as safAmfNode= WR20-64_25,safAmfCluster=myAmfCluster, THEN You should configure /etc/opensaf/node_name with the value WR20-64_25 And your nodes.cfg should look like For eg:- SC WR20-64_25 WR20-64_25 Mathi. >Thanks. > >Ted > > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >This message (including any attachments) is for the named >addressee(s)'s use only. It may contain sensitive, confidential, >private proprietary or legally privileged information intended for a >specific individual and purpose, and is protected by law. If you are >not the intended recipient, please immediately delete it and all copies >of it from your system, destroy any hard copies of it and notify the >sender. Any use, disclosure, copying, or distribution of this message and/or any attachments is strictly prohibited. >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >----------------------------------------------------------------------- >------- Want fast and easy access to all the code in your enterprise? >Index and search up to 200,000 lines of code with a free copy of Black >Duck Code Sight - the same software that powers the world's largest >code search on Ohloh, the Black Duck Open Hub! Try it now. >http://p.sf.net/sfu/bds >_______________________________________________ >Opensaf-users mailing list >Ope...@li... >https://lists.sourceforge.net/lists/listinfo/opensaf-users ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This message (including any attachments) is for the named addressee(s)'s use only. It may contain sensitive, confidential, private proprietary or legally privileged information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. Any use, disclosure, copying, or distribution of this message and/or any attachments is strictly prohibited. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |