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
11-12-2001 05:08 PM
11-12-2001 05:08 PM
I need to split primary copy of mirror and leave secondry.
Thanks in advance.
Mike
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 05:22 PM
11-12-2001 05:22 PM
Re: Lvsplit
If you want to split the logical volume
#lvsplit /dev/vg00/lvolx
# fsck /dev/vg00/lvolxb
#mount /dev/vg00/lvolxb /xyz.backup
Remove mirror copies of logical extents of a logical volume from the
physical volume /dev/dsk/c1t0d0:
#lvreduce -m 0 /dev/vg01/lvol4 /dev/dsk/c1t0d0
best of luck
Animesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 05:25 PM
11-12-2001 05:25 PM
Re: Lvsplit
Logical volume "/dev/vg00/lvol4b" has been successfully created with
character device "/dev/vg00/rlvol4b".
Logical volume "/dev/vg00/lvol4" has been successfully split.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con
f
that's for /tmp
I could now mount the lvol4b
To remerge them:
lvmerge /dev/vg00/lvol4b /dev/vg00/lvol4
Logical volume "/dev/vg00/lvol4b" has been successfully merged
with logical volume "/dev/vg00/lvol4".
Logical volume "/dev/vg00/lvol4b" has been successfully removed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con
f
...and straight from the man page:
Split an online logical volume which is currently mounted on /usr so
that a backup can take place:
lvsplit /dev/vg00/lvol1
fsck /dev/vg00/lvol1b
mount /dev/vg00/lvol1b /usr.backup
Perform a backup operation, then:
umount /usr.backup
lvmerge /dev/vg00/lvol1b /dev/vg00/lvol1
Scott.
It's lots of fun to do, but not fun when you're fresh faced and everything is shiny new and you realise you've installed a system and mirrored something other than lvol1 first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 05:28 PM
11-12-2001 05:28 PM
Re: Lvsplit
I am trying to split PE1 and make my PE2 as primary copy. The way you are saying that will not help because the minute I split copy my secondary goes away and primary stays.
I want keep PE2 as online copy.
Thanks in advance
Thanks,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 05:31 PM
11-12-2001 05:31 PM
Re: Lvsplit
Just out of interest, why?
Scott.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 05:39 PM
11-12-2001 05:39 PM
Re: Lvsplit
Because on this one logical volume group(disk) my PE1 status is "stale". What I am trying to do is split the primary mirror copy, then do lvreduce on that disk and lvextend back with the same disk. I am also trying to avoid downtime. My database will be running on a mirror copy. I have looked at all the options and I can't get the right answer. Hopefully someone has the answer.
Thanks for your quick reply.
Thanks,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 05:41 PM
11-12-2001 05:41 PM
Re: Lvsplit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 05:43 PM
11-12-2001 05:43 PM
Re: Lvsplit
What are you spliting? the mirror or lv ?
In case of of lvsplit ,you can use the /xyz.backup file system and rename the mount point as required and umount the original one.
Still not sure why you want that way !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 05:55 PM
11-12-2001 05:55 PM
Re: Lvsplit
Try
#lvchange -a y /dev/vgxx/lvolx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 06:02 PM
11-12-2001 06:02 PM
Re: Lvsplit
Did you try lvsync ?
#lvsync /dev/vgxx/lvolx
Sorry for my splitted replies :)
Animesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 06:50 PM
11-12-2001 06:50 PM
Re: Lvsplit
Take a look at the threads below,
http://us-support.external.hp.com/cki/bin/doc.pl/sid=a0a8afd118d1ef8d9e/screen=ckiDisplayDocument?docId=200000054599402
http://us-support.external.hp.com/cki/bin/doc.pl/sid=a0a8afd118d1ef8d9e/screen=ckiDisplayDocument?docId=200000048194460
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 06:50 PM
11-12-2001 06:50 PM
SolutionUnder normal conditions, that is all extents in all physical volumes of a mirrored logical volume are current, then 'lvsplit' is used to create an unmirrored copy which can be used for backup purposes, for instance.
Under normal conditions, if you simply want to eliminate a mirrored logical volume, one uses 'lvreduce -m 0 /dev/vgXX/lvolN /dev/dsk/cXtYdZ'. This specifies the physical volume on which you no longer want the mirror.
In the case you report, you have "stale" extents. This may mean a faulty disk. It may also indicate a temporary situation following a power-failed disk event. Thus, 'lvsync' or 'vgsync' is approriate.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 07:00 PM
11-12-2001 07:00 PM
Re: Lvsplit
In the event that an 'lvsync' or 'vgsync' does not return your stale extents to "current", have a lool at Technical Knowledge Base document #KBRC00002271 for further help troubleshooting stale mirrors (attached).
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 07:18 AM
11-13-2001 07:18 AM
Re: Lvsplit
James has hit the jackpot. I got my answer and works like fine. I wanted to split first copy of mirror and I was able to do that using his recommendation.
Lvdisplay ???v ???k /dev/vg00/lvolx (to find out mirror PV number) then do
Lvreduce ???m 0 /dev/vgXX/lvolN /devdsk/cXtYdZ
Thanks to all of you for your quick reply and help.
Thanks,
Mike