- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rsync seems very slow between local volume groups
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
01-04-2011 07:38 AM
01-04-2011 07:38 AM
I am working on a DR script on a system that is in production 24x7.
system: rx3600
OS: HP-UX 11i version 3
I have two logical volumes
I am syncing about 45 Gigs of data from /dir1 to /dir2 and the sync is taking about 40 minutes with out coping any data. Because I the company has been on holiday for the past week none of the data on the production side /dir1, there have been no updates.
The command I am using is....
rsync -avcu --delete --stat /dir1/ /dir2/
How can I speed this process up or should I be looking for another solution?
Any help would be greatly appreciated!
Thanks,
Tim
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2011 08:14 AM
01-04-2011 08:14 AM
Re: rsync seems very slow between local volume groups
But I have to ask one question:did this same setup work faster in the past ? If it did, what happened since then ? If this is a new setup and you are not happy with the speed, the only thing you can do is a) if the disk are on the SAN, use a SAN frame based data replication utility of your choice (business copy for HP XP, or Business Continuity Volumes aka BCVs for EMC are some examples); b) if the disks are local, you can use UX-Mirror to create a mirror copy of the disk drive but I am not sure how this can be sued as a DR solution.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2011 08:25 AM
01-04-2011 08:25 AM
Re: rsync seems very slow between local volume groups
You will be better off using vxdump/vxrestore (if your filesystems are vxfs) or fbackup/frestore.
You may also want to look at using LVM Snapshots and pvmove.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2011 08:27 AM
01-04-2011 08:27 AM
Re: rsync seems very slow between local volume groups
Both logical volumes are local and mirrored, so let me explain my logic which could have flaws in it.
Production is running 24x7 so my best bet to get a clean copy of the data is to...
1) pause the database engine
2) rsync the data to another file system
3) enable the database engine
4) transfer the synced data off site
Because it is taking so long to sync the database I cannot pause the database engine for that amount of time. So I modified my logic to the following.
1) pause the database engine
2) break the mirror on lvol1
3) enable the database engine
4) rsync lvol1 to lvol2
5) merge the mirror on lvol1
6) transfer the synced data off site.
I would like to keep the mirrors broke as short of time as possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2011 08:29 AM
01-04-2011 08:29 AM
Re: rsync seems very slow between local volume groups
Then yo can ship out those RMAN files offsite
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2011 08:31 AM
01-04-2011 08:31 AM
Re: rsync seems very slow between local volume groups
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2011 08:33 AM
01-04-2011 08:33 AM
SolutionYears ago, during a SAN migration exercise, we have gained abiout 2.5 times speed advantage using vxdump/vxrestore over doing a plain cp (which is what rsync basically is) but this was a special case to our setup, using an EMC source array and XP1024 as a target. So, your mileage may vary.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2011 08:33 AM
01-04-2011 08:33 AM
Re: rsync seems very slow between local volume groups
The file systems are vfxs and are both local.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2011 08:35 AM
01-04-2011 08:35 AM
Re: rsync seems very slow between local volume groups
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2011 08:45 AM
01-04-2011 08:45 AM
Re: rsync seems very slow between local volume groups
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2011 08:48 AM
01-04-2011 08:48 AM
Re: rsync seems very slow between local volume groups
Does your DB offer any hotbackup facility where its transactions are copy on write/read only so you can vxdump your actual filesystem?
If so, then you should do that if it is feasible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2011 08:56 AM
01-04-2011 08:56 AM
Re: rsync seems very slow between local volume groups
Thanks for all your help!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2011 09:11 AM
01-04-2011 09:11 AM
Re: rsync seems very slow between local volume groups
That's a semi-database engine that use tens of thousands of small files, so rsync (like tar, cpio, etc) will be strangled by all the directory and file ope/close activities.
Try a dd copy between two lvols. Make sure you use the raw volumes and a reasonable block size:
dd if=/dev/vgunidata1/rlvol1 of=/dev/vgunidatadr1/rlvol1 bs=2048k
Ideally, this must be done with both lvols unmounted so that changes in related files will not corrupt the database. Once the initial dd copy is done, try rsync again and you should find the update speed much more reasonable. I have used rsync for 10TB filsystems and millions of files -- the first pass took several days. From then on, the time dropped to 5-10 minutes to update everything for a day's worth of changes. When the two volumes wwere completely synced, a final rsync pass took less than 3 minutes.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2011 09:19 AM
01-04-2011 09:19 AM
Re: rsync seems very slow between local volume groups
This is my issue....
I have already done the initial rsync and I expected it to take a long time. But, the rsync I do after the initial sync are taking about 40 minutes. I was hoping for 5 min or less but it that is not happening.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2011 10:00 AM
01-04-2011 10:00 AM
Re: rsync seems very slow between local volume groups
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2011 06:34 AM
01-05-2011 06:34 AM
Re: rsync seems very slow between local volume groups
You could pause the database, create a snapshot using lvcreate -s (on 11.11) or vxsnap (on 11.23 or later - requires using VxVM volumes) of the logical volumes that you have concerns about, unpause the database, then rsync them to your heart's content.
The difficulty will be the change rate of the data, but if your intent is only to rsync it off, then release the snapshot, you wouldn't need more than 5-10% more disk space available in the source volume group.
Of course, you could just make that the backup you are working from. LV snap the data over to the other LV/mount you are using then use whatever you like to get it off the host.
Just keep in mind that the data change rate will determine how much disk space you need to have reserved. 20% is usually a good starting point, but if your intent is to snapshot, then back it up to something else, it's far easier.
Best regards,
Don