- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Reducing LV with lvmpvg issue
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
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
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-16-2006 03:48 AM
10-16-2006 03:48 AM
Two systems with service guard have configured the logical volumen with PVG´s as follows:
VG /dev/vg_nasma
PVG pvg1
/dev/dsk/c4t8d0
/dev/dsk/c4t10d0
PVG pvg2
/dev/dsk/c5t10d0
/dev/dsk/c5t8d0
PV´s from PVG2 are working as mirror PV´s
Customer want halt cluster and create a similar VG with another LV on the second node using controller balance.
One system mounts the logical volume while the other doesn´t mount it.
What i need is to use a C4txdx PV and other from PVG2 (C5txdx) to create the new Volume group on the second node getting in this way balancing controllers but i dont know if its possible to use lvreduce to reduce one disk from each PVG. If i couldn´t, what will i have to do? changing allocation policy?.After i want to do system A will must to use one c4txdx PV and other C5txdx, in the same way that system B, each system will have mounted ,as stand alone systems, a VG with a LV.
Thx a lot !.
Regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2006 04:02 AM
10-16-2006 04:02 AM
Re: Reducing LV with lvmpvg issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2006 04:03 AM
10-16-2006 04:03 AM
Re: Reducing LV with lvmpvg issue
Am I understanding you correctly?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2006 04:18 AM
10-16-2006 04:18 AM
Re: Reducing LV with lvmpvg issue
Sorry my previous explanation, i hope this be a bit clear.
Thx again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2006 06:10 AM
10-16-2006 06:10 AM
Re: Reducing LV with lvmpvg issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2006 10:06 AM
10-16-2006 10:06 AM
Re: Reducing LV with lvmpvg issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2006 12:57 PM
10-16-2006 12:57 PM
Re: Reducing LV with lvmpvg issue
lvreduce -m 0
/dev/vg_nasma/lvol1 /dev/dsk/c5t10d0
/dev/dsk/c5t8d0
lvreduce -m 0
/dev/vg_nasma/lvol2 /dev/dsk/c5t10d0
/dev/dsk/c5t8d0
etc.
Then remove each of the PVs
vgreduce /dev/vg_nasma /dev/dsk/c5t10d0
vgreduce /dev/vg_nasma /dev/dsk/c5t8d0
You'll then have to reimport the modified vg_nasma onto the second node of the cluster because this nod still thinks the VG has 4 PVs instead of 2.
You now have two disks that you can use as you wish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2006 01:28 PM
10-16-2006 01:28 PM
Re: Reducing LV with lvmpvg issue
~hope it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2006 05:47 PM
10-16-2006 05:47 PM
Re: Reducing LV with lvmpvg issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2006 05:32 AM
10-17-2006 05:32 AM
SolutionYou can just do a lvreduce -m 0 for each lvol and not specify from what disks to remove the extents.
You can then do the lvdisplay to see where the data is and use pvmove to move it from the disk you want to free up to the disk you want to keep.
e.g. c4t10d0 -> c5t10d0
c5t8d0 -> c4t8d0
do a vgdisplay -v to ensure there is no more data on the PVs you wish to remove. If they are completely free then do the vgreduce to remove them.