- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Backup using 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
12-11-2003 07:24 AM
12-11-2003 07:24 AM
I guess to take a cold backup of the m1 and either keep the m0 running.
I can only guess at this point.
I guess to then resync later... not exactly sure...
Any advice on the trepidation of doing this? Is it a viable option? is it inherently dangerous...
I will post back when I know more if it is needed.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 07:26 AM
12-11-2003 07:26 AM
Re: Backup using mirroring
Yes, it's absolutely a valid method. It's even taught in HP's "Hands On With LVM and Mirror/UX" course.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 07:26 AM
12-11-2003 07:26 AM
Re: Backup using mirroring
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 07:28 AM
12-11-2003 07:28 AM
Re: Backup using mirroring
I had that course but it has been a few years...
Would that be with lvsplit or simply lvreduce -m1? How would I go about it?
I am very knowledgeable about LVM, just not in this manner.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 07:32 AM
12-11-2003 07:32 AM
SolutionYes it can be done this way. But it's much safer to use a 3-way (-m 2) for this because with a 2-way mirror, when you split one away you'll have an SPOF for the time that it's not in the mirror set.
So you would do a
lvreduce -m 1 /dev/vg_name/lv_name /dev/dsk/cXtYdZ
to split it off
And a
lvextend -m 2 /dev/vg_name/lv_name /dev/dsk/cXtYdZ
to bring it back & sync it.
We did this with OpenMail datastore disks all the time. It assures the data is completely inactive for a backup of the data on that disk.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 07:33 AM
12-11-2003 07:33 AM
Re: Backup using mirroring
As said a very viable method, BUT
I would suggest using a tripple mirror on a live important database - spit one away and you still have a mirror safty net.
Basically
1. Split the mirror
2. Mount the mirror split
3. Back it up
4. Join the mirror.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 07:36 AM
12-11-2003 07:36 AM
Re: Backup using mirroring
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 07:38 AM
12-11-2003 07:38 AM
Re: Backup using mirroring
This however, is for an application unlike mine...they dont have BCVs.
heh my company is a big one and requires red tape/capacity planning/Project Creation, et al for disk purchases...long and drawn out..
they only have 2 mirrors m1 and m2... I fear they wont have time or $$ to get additional disks...
also, we are talking about 1TB of data here... across several fielsystems/LVOLS...
As I think about it more... I think they are going to be shooting themselves in the foot by trying to find a shortcut....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 07:39 AM
12-11-2003 07:39 AM
Re: Backup using mirroring
/dev/vg_name/lv_nameb
it suffixes b to the org lv_name.
You have to fsck the "b" LV before you can mount it for "cooked" access.
You then umount the b LV use lvmerge to rejoin them.
But the same rule applies - A 2-way mirror split any way will leave you exposed for the amount of time it's not in the mirror set.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 07:46 AM
12-11-2003 07:46 AM
Re: Backup using mirroring
No it's not wrong - it just depends on the backup method you intend to use.
You can lvreduce/lvextend if you are going to backup it up raw - like using dd or such.
There's more than one way to skin a cat my friend.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 07:48 AM
12-11-2003 07:48 AM
Re: Backup using mirroring
The mirror is there as a safety net, but split it apart a you are then running on one set of data with no protection and as sure as eggs are eggs one day when the mirror is slip a disk will fail.
It will then be very deep DO0DO0 time.
How much is the data worth?
How much to have downtime - my last company £100000 / hour.
A terabyte of disks may be expensive, but in relationship to what could happen just how expensive are they.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 07:54 AM
12-11-2003 07:54 AM
Re: Backup using mirroring
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062951377
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 08:04 AM
12-11-2003 08:04 AM
Re: Backup using mirroring
Not sure how much space you'd need for the snaplv, or
even if it's a valid consideration in your case.
Just throwing it out there.
It would certainly be safer than running without your mirror.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 08:59 AM
12-11-2003 08:59 AM
Re: Backup using mirroring
Thought about it some over lunch, and I think that if you go the lvreduce/lvextend route, then you're likely to end up with a very messy, dead cat. What do you do if the disk you're backing up has multiple logical volumes defined on it? And if, the extents assigned to the lvol you want to backup weren't even contiguous? What would you do if the logical volume was built using extent-based mirrored striping, then you'd have to know the layout of each disk involved?
The only sane scenario I can think of where it would be OK to use lvreduce/lvextend would be where you know that the disk has only a single logical volume defined.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2003 01:41 AM
12-12-2003 01:41 AM
Re: Backup using mirroring
I will pass on your info to the other group for their perusal...
Hopefully they will go buy some disks...
Just an aside... other groups are looking at this as a backup solution for systems with much larger data...I just hope they decide to use BCVs... or at least a 3rd mirror of regular disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2003 03:09 AM
12-12-2003 03:09 AM
Re: Backup using mirroring
Once split, HP-UX maintains an in-memory bitmap of the LV so that it can identify extents that are stale. lvmerge then only has to resync stale extents (those which have been updated since the split). See man lvmerge.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2003 03:52 AM
12-12-2003 03:52 AM
Re: Backup using mirroring
I totally agree that lvplit/lvmerge is the preferred way to do this, I'm just pointing out that with a lot of 'NIX stuff - there are usually several ways to do it. Besides I just like to stir the pot from time to time =~))
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2004 02:53 AM
01-05-2004 02:53 AM
Re: Backup using mirroring
This is the de-facto approach we are using in the enterprise we're in. And we've architected it in the fashion that does not use array based mirroring (ie, BCV or Business Copy) but just use a bunch of disks to mirror (for backup purposes) filesystems. We use both VxVM and LVM for our volume management.
I suppose you are using NetBackup (still) for which it already has some built in scripts for Oracle backups using split mirrors either with LVM or VxVM. Omniback and TSM also provides ready scripts fro this purpose... essentially what it does is :
1. put the DB Instance in hotbackup mode
2. Optionally suspend the database
3. split the mirrors
4. resume the database
5. get DB instance out of hotbackup mode
Steps 1-5 usually will happen in less than 1 minute so there is practically no noticeable impact. On some of our environments, the split mirror filesystems are "floated" to a different server where it is moved to tape. This is done by either using LVM/VxVM export and import... Once on the backup server, the backup software will at its lesisure move data to tape without affecting the source server or the LAN at all.. once movement to tape is done, the LUNs comprising the mirror filesystems are "floated" back to its original server and resynched for another round of backups...
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2004 03:04 AM
01-05-2004 03:04 AM
Re: Backup using mirroring
I wasnt too clear initially, but it was for another application managed by a different SA, where they have no BCVs and their data is very large. They dont trust that their backup solution will be able to back it up within a required window.
They were just trying to bounce ideas off those of us who have existing solutions.
I believe they will be using a 3rd mirror for the snapshot but that will require them to purchase a boat-load of disks.