- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Package move/failover
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
Discussions
Discussions
Forums
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
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
тАО07-01-2010 06:42 AM
тАО07-01-2010 06:42 AM
Package move/failover
The package creates a logfile which I need to examine from an ssh connection to either of the cluster members. The disk (/data1a) is moved with the package. In the case I have, I am running tail -f /data1a/log/djtest.log. When the move occurs away from the cluster member I am logged into, the cmhaltpkg kills the process that is running the tail. Note: I have not cd'd to the logging disk. The package fails to start on the other node (error trap below) because it cannot get the disk. I checked after the failure and the /data1a disk is still mounted. I umounted the disk, but the package still refuses to come up on the other node (same error).
I have attached the script that is doing the moves for me. How can I avoid this problem? When I go to the full application, I will have many gigs of logfiles that I need to scan and analyze periodically, which should work well unless a failover occurs. Then I will be stuck with not an HA system.
Thanks
Jul 1 12:34:42 root@faadev2.duats.com master_control_script.sh[5348]: ###### Starting package djtest ######
Jul 1 12:34:42 root@faadev2.duats.com volume_group.sh[5373]: Activating volume group /dev/vg01 with exclusi
ve option.
vgchange: Activation of volume group "/dev/vg01" denied by another node in the cluster.
Request on this system conflicts with Activation Mode on remote system.
Jul 1 12:34:42 root@faadev2.duats.com volume_group.sh[5373]: ERROR: Function sg_activate_volume_group
Jul 1 12:34:42 root@faadev2.duats.com volume_group.sh[5373]: ERROR: Failed to activate /dev/vg01
Jul 1 12:34:42 root@faadev2.duats.com master_control_script.sh[5348]: ##### Failed to start package djtest,
rollback steps #####
Jul 1 12:34:42 root@faadev2.duats.com volume_group.sh[5413]: Deactivating volume group /dev/vg01
Volume group "/dev/vg01" has been successfully changed.
Jul 1 12:34:42 root@faadev2.duats.com master_control_script.sh[5348]: ###### Failed to start package for dj
test ######
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 07:02 AM
тАО07-01-2010 07:02 AM
Re: Package move/failover
The most probable reason behind here is your VG is not deactivating correctly as you had a process tail running on it.
So better you change the VG and start on other machine
you need to look over pkg.cntl file what exactly is happening.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 08:21 AM
тАО07-01-2010 08:21 AM
Re: Package move/failover
As to the volume group errors:
make sure /dev/vg01 was initialized with vgchange -c y /dev/vg01 (means make /dev/vg01 cluster aware) I am not sure if you are using legacy or modular package scripts but here is an example of a legacy script parameters:
VGCHANGE="vgchange -a e" # Default
VG[0]=vg01
LV[0]=/dev/vg01/lvol1; FS[0]=/u01
FS_MOUNT_OPT[0]="-o delaylog,largefiles"
FS_UMOUNT_OPT[0]=""; FS_FSCK_OPT[0]=""; FS_TYPE[0]=vxfs
# FILESYSTEM UNMOUNT COUNT
# Specify the number of unmount attempts for each filesystem during package
# shutdown. The default is set to 1.
FS_UMOUNT_COUNT=5
# NOTE: If the FS_MOUNT_RETRY_COUNT > 0, the script will execute
# "fuser -ku" to freeup busy mount point.
FS_MOUNT_RETRY_COUNT=1
CONCURRENT_VGCHANGE_OPERATIONS=1
CONCURRENT_FSCK_OPERATIONS=1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 11:09 AM
тАО07-01-2010 11:09 AM
Re: Package move/failover
You can put it in a script and run it here too to clean up processes holding file(s) open. Just some simple command lines, like you might use:
who -u
ps -ef | grep
..and so forth...
Example of a script to kill 'tail' processes might say:
for a in `ps -ef | grep tail | awk '{print $2'}'`
do
kill $a
(or if you feel you need to kill -9 $a)
done
Run the command as part of the pkg halt section, so when it goes to take down the mountpoints...it cleans up everything first.
Just a thought,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2010 12:41 AM
тАО07-06-2010 12:41 AM
Re: Package move/failover
It seems that letting SG kill the processes does not get it done at the right time. When I explicitly checkec the mountpoint for the VG with fuser, I found them and I killed the processes in my halt script. This takes care of it at the right time and eliminates the timing glitch. THANKS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2010 12:42 AM
тАО07-06-2010 12:42 AM