- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lvsplit
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
05-09-2002 08:14 AM
05-09-2002 08:14 AM
I have a two way mirrored volume. I want to split this to three.. How will I proceed? Normally lvsplit will split in to two, After that it would not allow to split unless until U do lvmerge.
TIA
Shhaul
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 08:45 AM
05-09-2002 08:45 AM
Re: lvsplit
Whatever you said is correct. You cannot use lvsplit to split the mirror in to three. It allows only splitting in to two.
Why do you want to use this option ? Normally this option is used for backing up the online data from the mirror. In this case, it does not matter if you split in to two or three !
If you want to free-up the space which is used by the *third LV space* , then use lvreduce -m 1
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 08:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 08:58 AM
05-09-2002 08:58 AM
Re: lvsplit
# lvdisplay -v /dev/vgXX/lvolX
==> shows 3 columns of LVs
when you run lvsplit it'll split into 2-copies ..
first copy=the 2-way mirrored LVs
2nd copy=the single LV from the last column in "lvdisplay"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 09:54 AM
05-09-2002 09:54 AM
Re: lvsplit
It can be done, but you need to CHEAT. The CHEATing comes from forcing the MIRROR BIT MAP to be DISCARDED. To DISCARD the MIRROR BIT map, you simply extend the logical volume.
Let's say you have a two way mirror (original lvol plus 2 mirrors) (and the lvols have 500 extents):
lvsplit -s one /dev/vg01/lvol1
fsck /dev/vg01/lvol1one
lvextend -l 501 /dev/vg01/lvol1one
lvsplit -s two /dev/vg01/lvol1
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 10:30 AM
05-09-2002 10:30 AM
Re: lvsplit
That's an interesting cheating ! In that case, what will happen if you want to 'merge' it back using 'lvmerge' ? Is it possible ?
just curious ..
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 10:37 AM
05-09-2002 10:37 AM
Re: lvsplit
# lvreduce -l 500 /dev/vg01/lvol1one
When a logical volume is reduced useful data might get lost;
do you really want the command to proceed (y/n) : y
Logical volume "/dev/vg01/lvol1one" has been successfully reduced.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
# lvmerge /dev/vg01/lvol1two /dev/vg01/lvol1
Logical volume "/dev/vg01/lvol1two" has been successfully merged
with logical volume "/dev/vg01/lvol1".
Logical volume "/dev/vg01/lvol1two" has been successfully removed.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
# lvmerge /dev/vg01/lvol1one /dev/vg01/lvol1
Logical volume "/dev/vg01/lvol1one" has been successfully merged
with logical volume "/dev/vg01/lvol1".
Logical volume "/dev/vg01/lvol1one" has been successfully removed.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 11:21 AM
05-09-2002 11:21 AM
Re: lvsplit
Thanks a lot for sharing the info. Learning new things everyday !
live free or die =))
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 11:50 AM
05-09-2002 11:50 AM
Re: lvsplit
Thanks Harry.
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2002 08:23 AM
05-10-2002 08:23 AM
Re: lvsplit
Thanks to all... Special thanks to John palmer and Harry.
Shiju Don't worry.. I have done it.. Working fine...
Thanks
Shahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2002 02:14 AM
05-21-2002 02:14 AM