- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to reset the host name in a applicatoin co...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2005 11:33 PM
12-09-2005 11:33 PM
how to reset the host name in a applicatoin conf file in SG failover?
When we manually switch the package by using sg cmmands cmhaltpkg, and cmrunpkg, every thing is fine, and the host name in the app. is correctly refected. However, when we panic the node a, for instance, the package did fail over to node b, but the problem is that the app. configuration file still contains the name of node a, where it should be changed to node b.
How do we resolve the problem. I'm thinking we should add a few statements in the package control script, to manually set the host name in the applicatoin conf file. But how?
Please let me know. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2005 01:46 AM
12-10-2005 01:46 AM
Re: how to reset the host name in a applicatoin conf file in SG failover?
customer_defined_run_commands
. /path/to/shared/disk/packagename.env
And in that file,
HOST=`uname -n`
export $HOST
Something like that...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2005 01:48 AM
12-10-2005 01:48 AM
Re: how to reset the host name in a applicatoin conf file in SG failover?
HOST=`uname -n`
export $HOST
in the customer_defined_run_commands...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2005 02:37 AM
12-10-2005 02:37 AM
Re: how to reset the host name in a applicatoin conf file in SG failover?
hostname > /full/pathof/theapplication/file
in the custom_defined_run_cmds function.
Is this right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2005 07:22 AM
12-10-2005 07:22 AM
Re: how to reset the host name in a applicatoin conf file in SG failover?
Try not to use the hostname. If possible try to use the application to attach to a IP which could be the floating ip of the package.
Take a look at this from hp docs on SG,
http://docs.hp.com/en/B3936-90073/apcs03.html
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2005 07:40 AM
12-10-2005 07:40 AM
Re: how to reset the host name in a applicatoin conf file in SG failover?
You probably don't understand the issue here.
It is the applications requiring the node name where it is going to be started. So, we have to use the host name in the application configuration file, otherwise, the it won't be started.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2005 07:42 AM
12-10-2005 07:42 AM
Re: how to reset the host name in a applicatoin conf file in SG failover?
In my SG environments - users and apps point to the dns name of the floating ip's....
For example, my nodes are svr0003 and svr0004 - but the app only points to prddbci - which is the floating ip address of the package...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2005 08:14 AM
12-10-2005 08:14 AM
Re: how to reset the host name in a applicatoin conf file in SG failover?
Let me ask you this question though. When system panic, and reboot itself, Did customer_define_halt_cmds get the chance to be executed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2005 08:40 AM
12-10-2005 08:40 AM
Re: how to reset the host name in a applicatoin conf file in SG failover?
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2005 08:44 AM
12-10-2005 08:44 AM
Re: how to reset the host name in a applicatoin conf file in SG failover?
hostname > /full/pathof/theapplication/file
Sure that would work...
Another thing you could do - is maintain 2 copies of "file" say in /etc - and make /full/pathof/theapplication/file a symbolic link to /etc/file
Only diffenernce between file on nodea and nodeb - the hostname.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2005 08:47 AM
12-10-2005 08:47 AM
Re: how to reset the host name in a applicatoin conf file in SG failover?
I guess, the only solution here is direct the right node name in the file everytime when the package is started which could be performed in the cutomer_run_cmds function.