HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Re-allocation of extents from breaking mirror
Operating System - HP-UX
1833060
Members
2726
Online
110049
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-10-2008 04:39 PM
11-10-2008 04:39 PM
Have a LV of approx 200gb that is mirrored and there are 6 PV's (LUNS) associated with it.
I want to break the mirror with the usual command i.e. lvreduce -m 0 and then use the resulting extents for another LV within the same VG.
However I notice that one of the PV's extents is being used as the primary as well as the secondary i.e.
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c11t0d1 00940 current /dev/dsk/c11t1d7 00638 current
12169 /dev/dsk/c11t1d7 00544 current /dev/dsk/c11t1d5 04179 current
So I guess my question is:-
Once I break the mirroring will these extents automatically be available again within the VG to allocate to another LV ?
OR this was my idea
If c11t1d7 had not been used as both PV1 and PV2 in the mirroring I could have just done a pvremove from LVM and then pvcreate'd again.
Input would be mosr welcome
I want to break the mirror with the usual command i.e. lvreduce -m 0 and then use the resulting extents for another LV within the same VG.
However I notice that one of the PV's extents is being used as the primary as well as the secondary i.e.
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c11t0d1 00940 current /dev/dsk/c11t1d7 00638 current
12169 /dev/dsk/c11t1d7 00544 current /dev/dsk/c11t1d5 04179 current
So I guess my question is:-
Once I break the mirroring will these extents automatically be available again within the VG to allocate to another LV ?
OR this was my idea
If c11t1d7 had not been used as both PV1 and PV2 in the mirroring I could have just done a pvremove from LVM and then pvcreate'd again.
Input would be mosr welcome
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2008 04:54 PM
11-10-2008 04:54 PM
Solution
Hi Kenneth:
> Once I break the mirroring will these extents automatically be available again within the VG to allocate to another LV ?
Yes, once you do:
# lvreduce -m 0 /dev/vgNN/lvolM /dev/dsk/cXtYdZ
...the physical extents thus freed on cXtYdZ are available for reuse. You can choose the target *physical* disk from which to remove the logical extents.
At this point, you can use 'pvmove' [not 'pvremove'] to move the remaining logical extents around as you see fit.
Be aware that if you use 'pvmove', do not interrupt it or run it in a manner in which it might be interruped. To do so can leave your logical volume in an unusable state.
Regards!
...JRF...
> Once I break the mirroring will these extents automatically be available again within the VG to allocate to another LV ?
Yes, once you do:
# lvreduce -m 0 /dev/vgNN/lvolM /dev/dsk/cXtYdZ
...the physical extents thus freed on cXtYdZ are available for reuse. You can choose the target *physical* disk from which to remove the logical extents.
At this point, you can use 'pvmove' [not 'pvremove'] to move the remaining logical extents around as you see fit.
Be aware that if you use 'pvmove', do not interrupt it or run it in a manner in which it might be interruped. To do so can leave your logical volume in an unusable state.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2008 05:22 PM
11-10-2008 05:22 PM
Re: Re-allocation of extents from breaking mirror
Thanks for that James. Will let LVM automatically take care of allocating the extents when I lvextend the LV that needs to be increased in size.
My main worry was that the freed extents from the breaking of the mirror would not automaticaly be available
My main worry was that the freed extents from the breaking of the mirror would not automaticaly be available
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2008 05:34 PM
11-10-2008 05:34 PM
Re: Re-allocation of extents from breaking mirror
Hi (again) Kenneth:
> Will let LVM automatically take care of allocating the extents when I lvextend the LV that needs to be increased in size.
My main worry was that the freed extents from the breaking of the mirror would not automaticaly be available
Yes. The 'lvreduce' will mark the previously used physical extents as free, and then as such, they are available for use during a subsequent 'lvextend' or 'lvcreate'.
The only constraint is that any strict and/or contiguous policies are enforced during subsequent allocation, as always. See the 'lvcreate' manpages for more information.
For mirrored logical volumes, increaing the size of the logical volume automatically adjusts all logical extents on all mirrors.
Regards!
...JRF...
> Will let LVM automatically take care of allocating the extents when I lvextend the LV that needs to be increased in size.
My main worry was that the freed extents from the breaking of the mirror would not automaticaly be available
Yes. The 'lvreduce' will mark the previously used physical extents as free, and then as such, they are available for use during a subsequent 'lvextend' or 'lvcreate'.
The only constraint is that any strict and/or contiguous policies are enforced during subsequent allocation, as always. See the 'lvcreate' manpages for more information.
For mirrored logical volumes, increaing the size of the logical volume automatically adjusts all logical extents on all mirrors.
Regards!
...JRF...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP