- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mirroring
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
07-17-2002 06:56 AM
07-17-2002 06:56 AM
The questions that occur to me are:
1) Am I completely out of my mind?
2) All these lvols have to be in the same VG, right?
3) The mirror copy starts when the mirror is created via lvextend, right?
4) How long is it going to take to copy 140GB of data to the new mirrors?
5) How do I activate the VG in shared mode between the production and development server?
6) Is there a good reference on MirrorDisk/UX out there? All I see is bits and pieces.
Thanks,
Pete
Pete
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 07:05 AM
07-17-2002 07:05 AM
Re: Mirroring
1. Include new LUNs on the existing VG.
2. Do lvextend -m 1 to create the mirror.
3. then break the mirror.
4. Connect the new SC10 to the dev server.
5. Create /dev/vgXX directory and the group file under it.
6. Do vgimport with the LUNs of the new SC10.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 07:07 AM
07-17-2002 07:07 AM
Re: Mirroring
I'm not an expert with performance so I will let question 1 without an answer since the only thing that this could bring you would be a performance improvement.
2) yes all the lvols needs to be in the same VG to use mirroring.
3) exactly
4) 140Gig will take a looooonnnng time I'm not sure of the exact time but I would say multiple hours.
5) What do you really wants to achieve exactly, there is a shared mode available in the VG configuration but I have seen it used only with OPS (oracle parallel server) there could be some other solution like NFS or ServiceGuard depending what you want to do
6) I have not seen any...
I hope this help
Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 07:11 AM
07-17-2002 07:11 AM
SolutionIn order:
1. No, you can use MirrorDisk/UX to replicate.
2. Yes, mirroring is done at the *logical volume* level, so your mirrors (logical volumes) will have to be part of the *same* volume group as that from which you start.
3. Yes, the mirror copy is established with 'lvextend -m 1 ...' (see the man pages of 'lvextend' for details).
4. Mirroring is fast, but "how long" really depends on the I/O characteristics and load on the channels you are using.
5. At most, you will only be able to share a volume group as readonly. Only *one* copy of LVM should ever have write-access.
6. A reasonably good reference for MirrorDisk/UX is the "Managing Systems and Workgroups: A Guide for HP-UX System Administrators". See the section of high-availability strategies.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 07:12 AM
07-17-2002 07:12 AM
Re: Mirroring
Sorry, for the "Managing Systems and Workgroups: A Guide for HP-UX System Administrators" the link is:
http://docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 07:13 AM
07-17-2002 07:13 AM
Re: Mirroring
1) no the way you want to do it make sense and the steps sandip as told you to do it make sense.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 07:26 AM
07-17-2002 07:26 AM
Re: Mirroring
If you want the data to be shared, that would depend on the database software you are using. Sybase and Oracle support replication servers where when one copy of the database is updated, the other copy is also updated.
Remember to have all files closed before you break the mirror. Otherwise you can have corrupted data.
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 08:05 AM
07-17-2002 08:05 AM
Re: Mirroring
1) About the mind, honestly I don't know =)) But it look like you are on the track.
2) I would not agree completely with that. It depends on the current configuration. If in case you have two lvols now (in vg01 and vg02), then you have to add one LUN in vg01 and the next to vg02 and then mirror each one. The rule is - You could do mirroring (software) only in the same VG.
3) Yes.
4) It depends on your system's resource and device speeds. I think it will be faster if you run simultaneous mirrorings on different lvols.
5) I think, You need to have cluster configuration in order to do this. There is an option with vgchange (-a s), but there are limitations for this. Read man pages
6) This will be a good reference, read chapter -7 :
http://www.docs.hp.com/hpux/onlinedocs/B2355-90672/B2355-90672.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 09:12 AM
07-17-2002 09:12 AM
Re: Mirroring
The whole point of this exercise was to share the replicated data with the development server. The part I missed in the original concept was that the lvols would have to be in the same volume group and the volume group can't be activated in shared mode without high availablity software (that's pronounced MCService Guard, I believe).
One last (extremely desperate) question:
can anyone think of some deviously clever way to fool the system and move lvols from one VG to another?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 09:28 AM
07-17-2002 09:28 AM
Re: Mirroring
Moving logical volumes (that is, the filesystem's contained within them) is easy:
# cd /myolddir || exit 1
# find . -depth ???print | cpio -pudlmv /mynewdir
When done, you can edit '/etc/fstab' to rename '/mynewdir' to the name ('/myolddir') it was before you started (or leave it alone if you want replicated data). If you were renaming it to its old name (i.e. moving your data from one logical volume to another, perhaps on a different volume group) then you would simply remove the old mountpoints from '/etc/fstab' and renmae the new ones.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 09:39 AM
07-17-2002 09:39 AM
Re: Mirroring
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 09:42 AM
07-17-2002 09:42 AM
Re: Mirroring
...in that case, I would look use 'dd' to copy the data.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 09:47 AM
07-17-2002 09:47 AM
Re: Mirroring
The only way I could imagine would be to create identical lvols in a different VG and then to use the dd command to copy the raw data over.
What you would really need is something like the bcvsplit (business copy) that is supported by high end disk array (EMC, XP)
You could try to simulate it also by using dd to copy the contents of your original LUNS to the new ones, and then to run a vgchgid on the new LUNS.
Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 09:50 AM
07-17-2002 09:50 AM
Re: Mirroring
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 09:54 AM
07-17-2002 09:54 AM
Re: Mirroring
I think that will work. For efficiency, of course, use a large block size with 'dd' and make sure that nothing is using the sending data! I admit, that I have never played with raw stuff -- only LVM.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 10:00 AM
07-17-2002 10:00 AM
Re: Mirroring
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 11:07 PM
07-17-2002 11:07 PM