Operating System - HP-UX
1748061 Members
5665 Online
108758 Solutions
New Discussion юеВ

hpvmstop - un-graceful shutdown

 
SOLVED
Go to solution
lshu
Frequent Advisor

hpvmstop - un-graceful shutdown

environment: Serviceguard (SG) cluster at Integrity VM host level with VM guest running as SG package. Integrity VM v3.0 is installed in 2 rx6600 servers. Multiserver environment is setup.

Without SG, admin uses "hpvmstop -g -P " to shutdown VM guest gracefully - running rc scriptings. With SG, when SG halts the package, it executes "hpvmstop -g -F -P ", which doesnot shut the VM guest down gracefully - it just terminates the server.

It seems hpvmstop -g option doesn't work in this matter. Is there a workaround / patch to fix this?

Another minor issue in SG & multiserver environment: the column "runsysid" in hpvmstatus output - it should show the SERVERID defined in database "hpvmdevmgmt -l server" (for example, 1 for server1 and 2 for server2) for the VM guest in SG cluster. However on both VM hosts, the runsysid for local VM guest is correct but the remote VM host shows UP for the same VM guest but 0 as runsysid. SG is running well and Multiserver environment is setup as per the Integrity Admin Config document. Any idea why?


thanks
Lorne
8 REPLIES 8
Eric SAUBIGNAC
Honored Contributor

Re: hpvmstop - un-graceful shutdown

Bonjour Lorne,

What do you mean by graceful shutdown ? Do you expect a behavior like if "shutdown -h 0" would have been issued from the guest ?

As far as I know, nor hpvmstop -h, nor hpvmstop -g work this way. "-g" permits to flush buffers, that's all (man page about -g) :

"Performs a graceful shutdown. The guest operating system is notified of an imminent power failure, which gives it time to perform cleanup operations. This is the default action. HP recommends stopping virtual machines using their native operating system commands."

"HP recommends stopping virtual machines using their native operating system commands" --> In the cluster I have built for one of my client, I have totally rewriten the portion that stop the VM to accomodate this recommandation.

For the sysid problem did you use the script /opt/cmcluster/toolkit/hpvm/hpvmsg_package ? If yes, did you created the VM on both nodes BEFORE ? This script modifies -i and -j flags of the VM on both nodes. Can you control with hpvmstatus -P VM on the VM hosts ?

Regards

Eric
lshu
Frequent Advisor

Re: hpvmstop - un-graceful shutdown

Thanks Eric. I did a test and it was like you described. I must have mistaken.

For the runsysid,
1. I used the script hpvmsg_package;
2. VMs are created before SG & Multiserver Environment setup;
3. the script did -i and -j to the VMs;
4. by means of control, it has to use "-F" option in hpvmstop.

Do you see the correct runsysid in your case?

thanks
Lorne
Eric SAUBIGNAC
Honored Contributor
Solution

Re: hpvmstop - un-graceful shutdown

Bonjour Lorne,

Access to forums is dramatically bad today :-(

Yes I can see correct sysid. See the attached text file.

Also could you post result of following command :

hpvmstatus -M | cut -d: -f 1 | while read VM
do echo
echo -------------
echo $VM
echo -------------
echo
hpvmstatus -V -P $VM | egrep "Running on serverid|Application controllers|Distributed"
done

You will find my results in attached file to compare with yours

Regards

Eric
lshu
Frequent Advisor

Re: hpvmstop - un-graceful shutdown

Hi Eric,

I believe yours is the right one. Where could I do wrong? I will do some troubleshooting tomorrow on it.

If you have any suggestions, please let me know. Is your IVM v3.0?

thanks a lot,
Lorne
Eric SAUBIGNAC
Honored Contributor

Re: hpvmstop - un-graceful shutdown

Bonjour Lorne,

Yes HPVM 3.0, SG 11.18, ...

Patch and versions ? I will connect at client's site at about 11h00 GMT and will post its configuration from VM Host and VM guest point of view.

Regards

Eric
Eric SAUBIGNAC
Honored Contributor

Re: hpvmstop - un-graceful shutdown

Lorne,

You will find in attached text file "swlist" and "swlist -l product" for a host and a guest.

Here is an extract of some componants :


Integrity VM from host :

T2767AC A.03.00 Integrity VM
VMGuestLib A.03.00.76 Integrity VM Guest Support Libraries
VMKernelSW A.02.00 Integrity VM Kernel Software
VMMGR A.03.00.00.05 HP Integrity VM Manager
VMMigrate A.03.00 Integrity VM Migration Bundle
VMProvider A.03.00.76 WBEM Provider for Integrity VM


Integrity VM from guest :

HPVM-Guest A.03.00.01 Integrity VM Guest
VMGuestLib A.03.00.76.01 Integrity VM Guest Support Libraries
VMProvider A.03.00.76 WBEM Provider for Integrity VM


MC/ServiceGuard from host :

PHSS_36997 1.0 Serviceguard A.11.18.00
Package-CVM-CFS A.11.18.00 HP SG Cluster CVM CFS SD Product
SG-Apache-Tool B.04.01 Serviceguard Apache Script Templates
SG-NFS-Tool A.11.23.07 Serviceguard NFS Script Templates
SG-Oracle-Tool B.04.01 Serviceguard Oracle Script Templates
SG-Samba-Tool B.04.01 Serviceguard Samba Script Templates
SG-Tomcat-Tool B.04.01 Serviceguard Tomcat Script Templates
SGManagerPI B.01.01 HP Serviceguard Manager
SGWBEMProviders A.02.00.00 HP Serviceguard WBEM Providers SD Product
ServiceGuard A.11.18.00 Serviceguard SD Product

Maybe you could also post some informations as I did yesterday ?

Regards

Eric
lshu
Frequent Advisor

Re: hpvmstop - un-graceful shutdown

Hi Eric,

The puzzle is resolved. It was a full domain name in the hpvmdevmgmt. Though nothing was wrong with it, it didn't work with hpvmstatus. Once I changed it to short name, it worked.

Thanks a lot for your time & info.

Lorne
lshu
Frequent Advisor

Re: hpvmstop - un-graceful shutdown

Please see my last reply.