- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Oracle Packages failed to switch
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
10-23-2002 09:34 AM
10-23-2002 09:34 AM
I noticed this in the package log:
umount: cannot unmount /u02/oradata/QTM3 : Device busy
ERROR: Function umount_fs
ERROR: Failed to unmount /dev/vg_qtm3/lvol1
Oct 23 11:17:48 - Node "sdatpp02": Deactivating volume group vg_qtm3
vgchange: Couldn't deactivate volume group "vg_qtm3":
Device busy
ERROR: Function deactivate_volume_group
ERROR: Failed to deactivate vg_qtm3
It looks as if the logical volume did not unmount cleanly because there were processes running at the time of the service interruption. What happened is that the package could not fail over to it's alternate server, because the volume group was still active on the primary. The result was a down package that should not have been.
How do I implement the fuser -k command in the shutdown script with oracle databases to to insure a 'clean' failover ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 09:44 AM
10-23-2002 09:44 AM
Re: Oracle Packages failed to switch
fuser -k is incorporated in the package control file already . When a shutdown of a package is commenced , it runs the customer defined halt scripts first , then doeas an fuser -ku on all mounted logical volume of that pakage , then unmounts and deactivates the VG .
However , fuser -ku will the process occupying that logical volume , but there might be some ipcs ( inter process communications ) that might have been started from that logical volume , and fuser won't be able to kill them . That would resilt in the logical volume not being able to unmount . This is particularly true for oracle logical volumes .
YOu can write a script that does an ipcrm against those processes and put it in your customer defined halt scripts .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 09:44 AM
10-23-2002 09:44 AM
SolutionAssuming you are using the ORACLE.sh from the toolkit, what is the flag that you are using in the customer_defined_halt_commands?
Are you using shutdown or halt?
The shutdown does a shutdown immediate, which is fine for normal operations, but reaks havoc when you have a true failover situation because it tries to wait until all transactions are finished before stopping.
The halt flag issues a shutdown abort, which "kicks" everybody off the database and allows the clean failover you desire.
There is a lot of controversey as to whether you use a shutdown abort or immediate. I chose to use the abort. I have never had a problem and my packages have run without incident for years.
I am assuming you are doing a normal shutdown and let you decide whether or not to change it.
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 10:07 AM
10-23-2002 10:07 AM
Re: Oracle Packages failed to switch
You can do like this
fuser -ck /mount point ; umount /mount point in the same line , this will ensure the second command to run immedialtey after the first one so that no porcess grabs the mount point.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 11:55 PM
10-23-2002 11:55 PM
Re: Oracle Packages failed to switch
Also, you do not say which version of SG you are on, and there were some changes to later versions to retry file system unmounts, due to time delays in processes closing off.
One thing we do know is that Oracle often has an open socket connection into a directory, which fuser cannot detect.
For thsi you can use the unsupported utility lsof obtainable at ath eporting archives around the world.
This lists open files including those opened by a network socket, and then allows them to be closed off.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2002 12:08 AM
10-24-2002 12:08 AM
Re: Oracle Packages failed to switch
I agree with Christopher.
We use "shutdown abort" to bring down the database, start it up again and shut it down with "shutdown immediate"
We use this scenario for years and it works fine, we had never problems with umounting filesystems because of processes or ipc's
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2002 03:35 AM
10-24-2002 03:35 AM
Re: Oracle Packages failed to switch
The version of MCSG we are using is 11.09 on these servers in a preproduction cluster.
We use the default toolkit scripts for Oracle also.
Our cntl script uses LV_UMOUNT_COUNT=1
We also issue a shutdown command with the startup and shutdown script. Could we chage this to "
Thank you again for you help :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2002 03:36 AM
10-24-2002 03:36 AM
Re: Oracle Packages failed to switch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2002 03:45 AM
10-24-2002 03:45 AM
Re: Oracle Packages failed to switch
You could also look at changing the variable
FS_UMOUNT_COUNT from 1 to something like 4, and then it will try 4 times to umount the file system on package shutdown.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2002 04:13 AM
10-24-2002 04:13 AM
Re: Oracle Packages failed to switch
PHSS_25124 1.0 MC/ServiceGuard and SG-OPS Edition A.11.13
PHSS_26928 1.0 MC/ServiceGuard and SG-OPS Edition A.11.13
PHSS_27087 1.0 MC/ServiceGuard and SG-OPS Edition A.11.13
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2002 04:26 AM
10-24-2002 04:26 AM
Re: Oracle Packages failed to switch
You indicated:
"Our cntl script uses LV_UMOUNT_COUNT=1 "
Have you thought of increasing that value to give Oracle more time to wrap up and exit? Try it - you might like it :)
-s.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2002 04:52 AM
10-24-2002 04:52 AM
Re: Oracle Packages failed to switch
Could we chage this to "
No, the command you would use to do a shutdown abort is "
I would also look into the possibility of patching your service guard version as necessary, as Melvyn suggested.
The purpose of issuing a shutdown abort is on the premise that you have a node that has/is failed and the database needs to be shut down NOW, which is what the halt flag (shutdown abort) accomplishes.
For your consideration.
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2002 05:06 AM
10-24-2002 05:06 AM
Re: Oracle Packages failed to switch
Warmest Regards
Brent W. Moll
Atlanta GA