- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LV remove from a disk
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
тАО08-31-2010 08:39 PM
тАО08-31-2010 08:39 PM
I have a LV in disk 'A' with 2 mirror copies in other disks.I want the LV to be removed from the disk 'A '.
mirrored LV should be available in other disks .
Pls help me on this....
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2010 08:50 PM
тАО08-31-2010 08:50 PM
Solution# lvreduce -m 0 /dev/vg12/lvol4 /dev/dsk/c0t1d0
to remove the lvol4 of vg12 from disk c0t1d0.
If you have more mirrors, adjust the "-m x" value.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2010 09:23 PM
тАО08-31-2010 09:23 PM
Re: LV remove from a disk
Thanks for your valuable reply.
I will try the command and will let you know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2010 10:27 PM
тАО08-31-2010 10:27 PM
Re: LV remove from a disk
Should i follow any commands after lvreduce ?
Will it be available in mirrored disks?
will the lvdisplay show the LE on mirrored disks?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2010 10:35 PM
тАО08-31-2010 10:35 PM
Re: LV remove from a disk
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2010 11:10 PM
тАО08-31-2010 11:10 PM
Re: LV remove from a disk
You have to use
#lvreduce -m 1 /dev/vgnn/lvnn /dev/dsk/diskA
This will remains no:of mirror copies to 1.
ie.The LV is available in two disks(One original and one mirror copy).
note Torsten's comment
"If you have more mirrors, adjust the "-m x" value"
Which command you have applied?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2010 12:25 AM
тАО09-01-2010 12:25 AM
Re: LV remove from a disk
I want to remove the original copy and need to use the disk for other VG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2010 01:10 AM
тАО09-01-2010 01:10 AM
Re: LV remove from a disk
This will remove the LV,(/dev/vgnn/lvnn) from the disk,/dev/dsk/diskA .
Do the same for all the LVs belongs to that PV.
Verify with lvdisplay and pvdisplay.
If everything OK, remove the disk from the VG.
#vgreduce /dev/vgnn /dev/dsk/diskA.
Verify with vgdisplay and #strings /etc/lvmtab.
It is better you keep a backup of lvmtab and vgnn.conf before doing this.
#cp /etc/lvmtab /etc/lvmtab.bak
#cp /etc/lvmconf/vgnn.conf /etc/lvmconf/vgnn.conf.bak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2010 08:25 PM
тАО09-01-2010 08:25 PM
Re: LV remove from a disk
Best practice in my suggestion is do the complete breaking mirror and do pvmove to move the physical extents for logical volume /dev/vgxx/lvolx that are currently on /dev/dsk/cxtxdx to /dev/dsk/cytydy. Then u mirror it from here as you desire to keep the mirrors.
Cool...