- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need to remove apackage as well as its Vgs from cl...
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
тАО12-18-2010 12:38 PM
тАО12-18-2010 12:38 PM
I have to perform the following:
1) Delete a package
2)Delete few of the Vgs which were used in this package.
My plan is as below:
1. halt the typical package ==> cmhaltpkg -v pkgname [ from the node where the pkg is running]
2. Delete the package configuration from cluster:
# cmdeleteconf -p package-name
3. Delete the Vgs& related Lvs
Hope while halting the package it self all the Vgs under this package will be in deactivated state.
So can I directly do --> vgexport /dev/vgname [ for all vgs to be removed? ]
4. Do the same vgexports from all cluster nodes
I have a confusion here:
Do I need to copy the /etc/lvmtab file to all cluster nodes? [ I believe no !!!] pls confirm..
5. then rm -r /etc/cmcluster/packagename
this is my rough plan.
Pls correct me if some more steps to be added here to complete my task?
many thanks in advance.
Rgds
Sree
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2010 01:28 PM
тАО12-18-2010 01:28 PM
Re: Need to remove apackage as well as its Vgs from cluster
Can I ask a simple question?
Sometimes adding is better than deleting.
How would you add a new vg group, to a running cluster? - Then work backwards, if you get my point.
That's how I solved this problem.
Terry Giblin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2010 06:49 PM
тАО12-18-2010 06:49 PM
Re: Need to remove apackage as well as its Vgs from cluster
Your steps looks ok to me except for copying the lvmtab file to other nodes.
1. when you halt the package your vg's normally get unavailable but it might not for many reasons like errors in the package control script and file systems still being mounted. So you can check this by running vgdisplay and if it is still active it would be good to see why it is still active.
once these are fixed you can manualy run a vgchange -a n for these vg's and then export vg's.
when you export the Volume group (vgexport ) it will update /etc/lvmtab file only on the host you are running the command.
The lvmtab file is specific to each and every cluster node and normally you do not copy the lvmtab file to other nodes.
So you have to manualy run vgexport on all nodes to update the lvmtab file to remove the volume group.
Cheers
WCI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2010 10:33 PM
тАО12-18-2010 10:33 PM
Re: Need to remove apackage as well as its Vgs from cluster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2010 10:34 PM
тАО12-18-2010 10:34 PM
Re: Need to remove apackage as well as its Vgs from cluster
Thnx all for your help.
So I hope I can go ahead with the mentioned steps.
I will wait for closing this Thread till my work is completed successfully :-)
Rgds
Sree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2010 11:28 PM
тАО12-18-2010 11:28 PM
SolutionSteps except for the lvmtab looks good
DO NOT COPY THE /etc/lvmtab to the other systems. You can corrupt it especially since vg00 will have a different vgid on the other systems.
after removing the package
goto each of your systems and export the volume group from each system.
Then on the last system you can either export the volume group.
THen to use the disks you will need to do a pvcreate -f
or you can activate the vg
vgchange -c n vgXX
vgchange -a y vgxx
vgremove vgXX
after you remove all of the volume groups and disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2011 11:29 PM
тАО01-05-2011 11:29 PM
Re: Need to remove apackage as well as its Vgs from cluster
thanks much for your help.
The thread is closed.
happy new year to all.
Iam just going through my old querris and closing if needed ONLY after assignig points :-)
thnx again.
Rgds
Sree