- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can I split a mirrored LV and then import the spli...
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
12-29-2006 04:56 AM
12-29-2006 04:56 AM
Can I split a mirrored LV and then import the split LV on another server?
Two HP-UX servers running 11i. Both attached to the SAN an able to see the same disk. Both have MIRROR-UX installed.
I have a filesystem on server A that is mirrored and the entire mirror exists on a single SAN disk. I'd like to split the mirror and present server B with that same disk and be able to somehow import the LV or create a VG with the disk such that the data on the disk is useable. Basically, I want to split a mirror on one server and use the mirror as an actual LV on another server.
How do I tell LVM on server A that the LV no longer exists there without doing an actual lvremove command? This is going on the assumption that using an lvremove to remove the LV on server A and then vgreducing the disk from server A would actually remove the data from the disk.
I'd really appreciate any thoughts on this! I know that I could just create a new LV and copy the data but we're looking to minimize downtime when moving a database.
Thanks in advance!
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2006 05:07 AM
12-29-2006 05:07 AM
Re: Can I split a mirrored LV and then import the split LV on another server?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2006 05:17 AM
12-29-2006 05:17 AM
Re: Can I split a mirrored LV and then import the split LV on another server?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2006 05:17 AM
12-29-2006 05:17 AM
Re: Can I split a mirrored LV and then import the split LV on another server?
The main question is, how are you going to tell server B that it got a new disk, without a doing a pvcreate, on an vgcreate or lvcreate.
Those are the only ways that I know to present a new disk to an existing server. Unless it's the vg00.
To answer you other question I believe that the lvsplit command does the trick, thinking that you can actually make the server see that new drive.
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2006 05:34 AM
12-29-2006 05:34 AM
Re: Can I split a mirrored LV and then import the split LV on another server?
The vgchgid command was designed for use with the BCVs created from EMC Symmetrix arrays. The BCVs are the same as the lvols created with the lvsplit command.
~hope it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2006 05:42 AM
12-29-2006 05:42 AM
Re: Can I split a mirrored LV and then import the split LV on another server?
Are you looking to keep the database active on A as well as B? Or will A not be used when things are moved over to B?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2006 05:49 AM
12-29-2006 05:49 AM
Re: Can I split a mirrored LV and then import the split LV on another server?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2006 07:06 AM
12-29-2006 07:06 AM
Re: Can I split a mirrored LV and then import the split LV on another server?
What your attempting to do is (without the extra fancy software) to create what we call a BCV (business continance volume).
Yes you can do it...
But it is a bit tricky this way...since you know how to split the mirror-I'll omit that syntax.
You have to create your mapfile from node A and copy that file over to node B.
Now on node B you do:
mkdir
mknod
NOW the FUN...
vgimport with that mapfile BUT.....................................
the trick is you only want the mirrored disk. So to ensure you don't get disk-brain stroke happening, you have to create a file that has /dev/dsk/c-t-d (in one continual line) of the disk addresses of ONLY those mirrored disk.
So your vgimport might look something like this:
vgimport -v -m /etc/lvmconf/vgmapfile -f /path/
Create your mount points; run fsck on them NEXT and then see if you can mount them.
You could script all of this, to take them down, allow them to remirror, and then split and remount. We use EMC Timefinder software to lend us a hand. But if your flying solo...then you'll have a great opportunity to prove your 'metal'.
Hope this helps,
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2006 07:21 AM
12-29-2006 07:21 AM
Re: Can I split a mirrored LV and then import the split LV on another server?
Thanks for the responses! I'm going to attempt the process that Rita describes. I'm sure it will work because, let's face it, it's Rita :)
I will follow up with the results. Thanks again!
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2006 07:31 AM
12-29-2006 07:31 AM
Re: Can I split a mirrored LV and then import the split LV on another server?
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2006 06:23 PM
12-29-2006 06:23 PM
Re: Can I split a mirrored LV and then import the split LV on another server?
Can u pls update if you are able to get this task done and how u did that?I think Rita's idea was good ,You faced any issues with that
Cheers!
Marvik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2007 08:54 AM
01-02-2007 08:54 AM
Re: Can I split a mirrored LV and then import the split LV on another server?
I've had no luck with this unfortunately. This is the message that I am getting:
/root # vgimport -v -m /root/mapfile -f /root/vgdisk /dev/vg02
Beginning the import process on Volume Group "/dev/vg02".
vgimport: Warning: Volume Group belongs to different CPU ID.
Can not determine if Volume Group is in use on another system. Continuing.
Logical Volume is not defined on any physical volume.
"/dev/vg02/lvol1_copy" is missing Physical Volumes.
Volume group "/dev/vg02" has been successfully created.
Warning: A backup of this volume group may not exist on this machine.
Please remember to take a backup using the vgcfgbackup command after activating the volume group.
It says the vg is created but it's not.
Any ideas?
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2007 09:02 AM
01-02-2007 09:02 AM
Re: Can I split a mirrored LV and then import the split LV on another server?
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2007 09:54 AM
01-02-2007 09:54 AM
Re: Can I split a mirrored LV and then import the split LV on another server?
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066374323
~hope it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2007 11:27 AM
01-02-2007 11:27 AM
Re: Can I split a mirrored LV and then import the split LV on another server?
Bottom line is I believe this can be done but probably shouldn't be done with disks that contain data of any importance. It is extremely easy to get your LVM out of whack.
In the end, I will still mirror the data that needs to move onto disks at the remote location and on the day of the move I'll remove the mirror copy from the local disks so the data remains on the disks at the remote location.
Thanks for the help everyone!
Tim