- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: SGX 11.18 problem - vgchange -a n fails but it...
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
тАО11-19-2008 02:59 AM
тАО11-19-2008 02:59 AM
SGX 11.18 problem - vgchange -a n fails but it tries to stop md mirrors!
Im hoping the HP Serviceguard team see this and can help. I will log a ticket for HP but often the forums are faster...
Our config;
2xDL580's running Redhat 4.6/64bit with MCSG A11.18 and SGX and san mirrored using mdadm.
Problem;
On cmahltpkg the deactivate_vg routine fails (due to unable to kill processes holding lvols open) but the package control script then tries to deactivate the md mirrors anyway! so we are left in a state where some md mirrors are stopped (mdadm -S) but others fail to stop as the vg is still active as some of its lvols are still active. Seems like a code bug to me.
Here is the code in question;
elif [[ "$1" = "stop" ]]
then
echo -e "\n####### Node \"$(hostname)\": Halting package at $(date) #######"
check_gfs
halt_services
customer_defined_halt_cmds
if [[ "$HA_APP_SERVER" = "post-IP" ]]
then
verify_ha_server $1
fi
remove_ip_address
if [[ "$HA_APP_SERVER" = "pre-IP" ]]
then
verify_ha_server $1
fi
umount_fs
deactivate_volume_group
deactivate_md
verify_physical_data_replication $1
# Check exit value
if (( $exit_value == 1 ))
then
echo "###### Node \"$(hostname)\": Package halted with ERROR at $(date) ######"
exit 1
Now it seems to me that if the part above which says umount_fs OR the deactivate_volume_group fail then it SHOULD NOT try to run the deactivate_md routine as this causes a mess resulting in having to reboot the nodes.
So I think there should be a variable set globally and in the umount_fs and deactivate_volume_group sections if they fail doing an umount or vgchange -a n then this variable is set and before the deactivate_md is run above it checks this variable before deciding to do it or not.
Anyone else had a similar problme ? Any comments about this ?
The same should apply to the pkg "start" section - if activating mirrors fails it should not try to activate vg or mount lvols.
This is not the first time we have found bugs in the package sh script and had to fix it. Maybe HP know about it or have a new version which fixes the above issues ?
Thanks,
Unix Team
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2008 04:41 AM
тАО11-19-2008 04:41 AM
Re: SGX 11.18 problem - vgchange -a n fails but it tries to stop md mirrors!
We had the same prolem. In our server some of the scripts from cron was accessing the lvs every minutes , so cmhaltpkg was not able to unmount the lvs.
What we used to hash the crontab entries before starting cmhaltpkg command.
You can add some entries in contrl file of package to kill the process when cmhalt trying to unmount the lvs
Regards
Prasu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2008 09:05 AM
тАО11-20-2008 09:05 AM
Re: SGX 11.18 problem - vgchange -a n fails but it tries to stop md mirrors!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2008 09:26 PM
тАО11-20-2008 09:26 PM
Re: SGX 11.18 problem - vgchange -a n fails but it tries to stop md mirrors!
Looks more like an interoperability issue. The cmahltpkg is causing more volume groups to be corrupted, maybe HP will work closely with the upstream LVM hackers and get this issue fixed. The LVM hackers maybe hampered by dearth of test resources which HP has! Can HP help the community move forward?
--
A hacker is not a cracker
http://www.catb.org/jargon/html/index.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2008 01:12 AM
тАО11-21-2008 01:12 AM
Re: SGX 11.18 problem - vgchange -a n fails but it tries to stop md mirrors!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2008 08:28 AM
тАО11-21-2008 08:28 AM
Re: SGX 11.18 problem - vgchange -a n fails but it tries to stop md mirrors!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2008 08:51 AM
тАО11-21-2008 08:51 AM