Operating System - HP-UX
1822195 Members
3920 Online
109640 Solutions
New Discussion юеВ

How to create Virtual Hostname

 
joseph51
Regular Advisor

How to create Virtual Hostname

Hi..
Please some some tell me how to create a virtual hostname for a server .
Here we have SAP systems . And I could see that there are two hostname for this server. but The virtual hostname uses the actual package IP . But I could not find where the virtual hostname is defined .The entry I could found only in /etc/hosts file
Some one please tell me
6 REPLIES 6
Zinky
Honored Contributor

Re: How to create Virtual Hostname

The virtual IP of the package will not be in the system but will be in your cluster's.

Say your main LAN is lan900, to start a Virtual IP :

ifconfig lan900:1 ipaddr netmask nm

lan900:1 - means it will be the first VIP
lan900:2 - second... and so on...


In my Poor Man's Clustering recipe (which essentially mimics ServiceGuard via scripts) -- plumbing up of a "package"'s virtual hostname/ip follows the above syntax.
Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
joseph51
Regular Advisor

Re: How to create Virtual Hostname

Hi.

My system is not having APA . Instead of lan1:1 is carrying the IP for the virtual IP . But there is a separate hostname for this IP . How we will create this hostname .Also there is actual physical hostname that is configured with diff IP in lan1
Zinky
Honored Contributor

Re: How to create Virtual Hostname

Irregardless of the LAN interface, APA or not- the IP is defined or plumbed using the above syntax.

How/Where it is defined -- it should be in the clusert/package configuration files.. /etc/cmcluster

urely you have a ServiceGuard person on board - no?
Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
Rita C Workman
Honored Contributor

Re: How to create Virtual Hostname

A moment please - where in the original post did he mention Service Guard.

I am not a SAP person, but I do that in certain kinds of Oracle software it can create/set itself up with a "virtual name" when it installs on a server. Unfortunately, Oracle liked to grab the actual name of the server and use this for it's 'virtual name'. Looks like SAP grabs the 'IP' from what you describe.

So....what I found in this kind of a situation was that it was controlled by some setting in a configuration file *within* the oracle files it loaded.
So I might start looking under the covers of SAP to try and find a configuration file with that info in it.

But if it's anything like Oracle - it's in multiple places and may not be worth trying to fix it yourself.

At least...that was my take on what you mentioned, but maybe I read it wrong.

Rgrds,
Rita
joseph51
Regular Advisor

Re: How to create Virtual Hostname

Thanks for all for the response
joseph51
Regular Advisor

Re: How to create Virtual Hostname

Thanks