- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Clean the LVM structure after removing a packa...
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
12-10-2003 05:01 AM
12-10-2003 05:01 AM
Clean the LVM structure after removing a package
disks - we are using SAN XP disk) after a package is removed from the MCSG environment?
During the process, are there any particular
steps needed attention?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 05:06 AM
12-10-2003 05:06 AM
Re: Clean the LVM structure after removing a package
Did you use cmapplyconf?
Once package has been deleted, you use pvcreate command on those disks and use these disks.
If you are talking abt destroying whole data on disks, you can use mediainit command. Also there is one Gnu utility available for this.
Also a simple dd will erase data on disks.
dd if=/dev/null of=/dev/rdsk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 05:10 AM
12-10-2003 05:10 AM
Re: Clean the LVM structure after removing a package
# lvremove lv_name (repeat for all LVs in that PV)
# vgremove vg_name (if that disk in the only one on that VG) OR
# vgreduce pv_name (if that disk is part of a VG)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 05:12 AM
12-10-2003 05:12 AM
Re: Clean the LVM structure after removing a package
pvremove /dev/rdsk/alldisksinvg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 05:14 AM
12-10-2003 05:14 AM
Re: Clean the LVM structure after removing a package
1) make absolutely sure you have a backup copy of the data because after we delete it is too late to realize they want historical references.
2) In the package control script you will find a list of the logical volumes and mount points it used. Unmount those mount points (should already be done) to free up the LVs.
3) If the VG is still active, skip this step otherwise activate the VG using vgchange -a e
4) Remove the logical volumes using the lvremove command.
5) Reduce the volume group to a single LUN using the vgreduce command.
6) Remove the volume group using the vgremove command.
7) on every node that hosted this package - vgexport the volume group which will remove it from the /dev directory and also the lvmtab directories.
8) clean up the /etc/lvmpvg file if it exists using an editor
Note: if you want to scrub the disks first, then after step 1, activate the volume group, mount the file systems, and using /dev/zero write over all of the data on the file systems. This is usually not done except by the most paranoid among us.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 05:17 AM
12-10-2003 05:17 AM
Re: Clean the LVM structure after removing a package
Once the SG package has been removed, make the vg non-cliuster aware. Then remove the vg and do a dd to the disk to destroy all the info from the disks which were part of that VG.
to make the vg cluster un-aware,
vgchange -c n /dev/vg_name
export the vg,
vgexport /dev/vg_name
now for all the disks that were part of the VG,
dd if=/dev/null of=/dev/rdsk/cxtydz bs=1024k
This will destroy all the info on the disks.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 05:34 AM
12-10-2003 05:34 AM
Re: Clean the LVM structure after removing a package
1. Shutdown package via cluster commandscmhaltpkg sappkg
2. Stop nfs/sbin/init.d/nfs.client stop/sbin/init.d/nfs.server stop/sbin/init.d/nfs.core stop
3. Delete the package
cmdeleteconf -p sapapkg
4. Remove cluster membership
vgchange -c n /dev/vg30
vgchange -c n /dev/vg31
vgchange -c n /dev/vg32
6. Export SAP volumes (from server4, server3, backupserver)
vgexport /dev/vg30
vgexport /dev/vg31
vgexport /dev/vg32
7. Remove access to disks on EMC
8. rmsf device files
9. Remove /etc/cmcluster/SAP
Not actually cleaning the disks - as they are going to be used by another server....
But, if you were to pvcreate -f them and add them to a new temp vg, then create 1 big filesystem on them, you would wipe out the disks...after created - just vgexport it....
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 06:11 AM
12-10-2003 06:11 AM
Re: Clean the LVM structure after removing a package
vgremove and vgexport for removing the
VGs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 06:19 AM
12-10-2003 06:19 AM
Re: Clean the LVM structure after removing a package
I think this link from hp docs site would be much more useful in understanding the lvm process.
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90742/B2355-90742_top.html&con=/hpux/onlinedocs/B2355-90742/00/00/48-con.html&toc=/hpux/onlinedocs/B2355-90742/00/00/48-toc.html&searchterms=vgexport%7cvgreduce&queryid=20031210-121731
Hope this helps.
Regds