- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lvextend on mirrored lv
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
тАО05-30-2003 05:32 AM
тАО05-30-2003 05:32 AM
lvextend on mirrored lv
How do I get rid of the mirror post lvextend? Will the system have issues coming up with the mirroring in this awkward state? I'm not worried about retaining the mirror as the box will be replaced this summer. I have not run extendfs yet as I haven't been able to get the downtime needed...
Thanks,
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 05:35 AM
тАО05-30-2003 05:35 AM
Re: lvextend on mirrored lv
You should be able to do a 'lvreduce -m 1 lv_path pv_path' and remove the mirror from the specified pv_path.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 05:36 AM
тАО05-30-2003 05:36 AM
Re: lvextend on mirrored lv
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 05:36 AM
тАО05-30-2003 05:36 AM
Re: lvextend on mirrored lv
Simply 'lvreduce' the mirror you don't want:
# lvreduce -m 0 /dev/vgXX/lvolX /dev/dsk/cXtYdZ
By providing the pv_path you control the mirror copy you want to eliminate.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 05:37 AM
тАО05-30-2003 05:37 AM
Re: lvextend on mirrored lv
If you didn't yet done the extendfs, you are not yet dead. You can still do the lvreduce. Because lvreduce will remove the PE beginning by the last, if you reduce to exactly the same size than before your lvextend, you will loose nothing, and so you can extend on the specific disk you want by using: lvextend -L new_size lv_name /dev/dsk/cXtYdZ.
Cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 05:39 AM
тАО05-30-2003 05:39 AM
Re: lvextend on mirrored lv
here is s possible solution, but it's best if you previously do a backup:
- remove the mirror
lvextend -m 0 /dev/vgoo/lvolX /dev/dsk/WRONG_ONES
- pvmove the wrong PE from disk to disk
- re-create the mirror
- lvextend -m 1 .........
The pericolous part is the pvmove, if your server goes down in the middle... good luck.
But with this procedure you need no downtime.
And, at the end, remember also to do the fsadm/extendfs to extend your FS !!
BTW i think that shrinking is never good, althought supported in some cases.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 05:40 AM
тАО05-30-2003 05:40 AM
Re: lvextend on mirrored lv
System will not have any issues coming up as long as all the disks are available.
To cleanup your /usr volume, reduce the mirror first, rearrange the logical volume using pvmove onto one disk and then extend the mirror.
lvreduce -m 0 /dev/vg00/lvolx
If this logical volume is distributed across multiple disks after reducing the mirror, use 'pvmove' to put them together on a single disk. Then extend the mirror on selected disk. You can specify a disk while issuing 'lvextend -m 1' command. Look at the man pages of these commands for more information.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 05:42 AM
тАО05-30-2003 05:42 AM
Re: lvextend on mirrored lv
I have just lost my long answer due to forum issues and don't want to write it all out again! so see the man!or just wait for someone else to provide more!