- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: DD performance - copying volumes...
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
03-11-2005 06:41 AM
03-11-2005 06:41 AM
In order to copy volumes as fast as we can between servers, we are doing the following:
- Importing the BCVs from the original server on the target server.
- We created volumes on the target that are similar in size to the volumes in the BCV
- We import the original's VGs on the target.
- To make things as fast as possible we issued a dd from volumes of different VGs, as the following:
if=/dev/vgbcv/lv_u05 of=/dev/vgtarget/lv5_u05 bs=8192k
if=/dev/vgbcv/lv_u04 of=/dev/vgtarget/lv5_u04 bs=8192k
(...)
The fact is that it is taking forever.
Despite disk bottleneck issues, anyone have a clue if this is realyy the fastest way to accomplish the copy or if there are some dd's configuration that could speed up things?
Thanks in advance,
Filipe.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 06:51 AM
03-11-2005 06:51 AM
Re: DD performance - copying volumes...
Also try to match dd bs size to that of fs size. If all lvols are vxfs, you should look at vxdump
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 06:53 AM
03-11-2005 06:53 AM
Re: DD performance - copying volumes...
We've had reasonably fast results by using fbackup to back up to a Ultrium tape and then restore after the logical volume and filesystem have been set up again.
The write seems a bit slow, back to disk, but thats an issue of how the disk is presented to the HP-UX server and I can't control that.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 07:02 AM
03-11-2005 07:02 AM
Re: DD performance - copying volumes...
The total amount of information that we are trying to copy is 250gb.
We are trying to copy unmounted devices because we assumed that it would be faster than copying mounted filesystems. The copy is still running and we started it four hours ago.
Would vxdump help us? Can it be quickier than copyng volumes via DD?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 07:13 AM
03-11-2005 07:13 AM
Re: DD performance - copying volumes...
The reason why tape is so fast, is that the new tape format is fast. Plus the write to tape is really a big, gigantic write that completes with nothing else for bandwidth on the tape.
Ultirum 430 tape drives could handle the copy.
I'd futher suggest setting up the two mount filesystems and using a simple cp -r or mv command or scp -rp between systems. The latter would max out your network bandwidth and should be done off peak.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 07:26 AM
03-11-2005 07:26 AM
Re: DD performance - copying volumes...
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 07:51 AM
03-11-2005 07:51 AM
Re: DD performance - copying volumes...
dd if=/dev/vgbcv/rlv_u05 of=/dev/vgtarget/rlv5_u05 bs=1024k &
dd if=/dev/vgbcv/rlv_u04 of=/dev/vgtarget/rlv5_u04 bs=1024k &
I would drop about 4-6 of these at a time into background followed by a wait and then another 4-6.
There is no point in increasing bs above 1024k because the OS will break larger i/o transfers into a series of smaller physical i/o's.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 08:11 AM
03-11-2005 08:11 AM
Re: DD performance - copying volumes...
1. There is no tapes involved. This is just a volume to volume copy from different VGs, one of them are BCVs.
2. What the gain I could have using raw devices istead of cooked ones? Since I am using a 8m buffer, would I gain something using the buffer cache (rdevs) AND dd buffer or what?
I undestand that over some buffer size I wouldn't have any significant increase of the copy performance, AFAIK.
Thanks a bunch,
Filipe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 08:22 AM
03-11-2005 08:22 AM
Re: DD performance - copying volumes...
the immediate reporting (*) of the target disk before you start the dd.
use the scsictl command example
# scsictl -a -m ir=1 -m ir /dev/rdsk/c7t1d0
immediate_report = 0; queue_depth = 8; immediate_report = 1
# dd ...
# scsictl -a -m ir=0 -m ir /dev/rdsk/c7t1d0
You should NOT forget to switch it off after the dd is completed. This is a dangerous option. You can do it for this kind of copy jobs. But you should never switch it on for disk that hold critical data.
Roland
(*)
For devices that support immediate reporting, this mode controls how the device responds to write requests. If immediate report is enabled (1), write requests can be acknowledged before the data is physically transferred to the media. If immediate report is disabled (0), the device is forced to await the completion of any write request before reporting its status.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 08:25 AM
03-11-2005 08:25 AM
Re: DD performance - copying volumes...
You are going to get your best performance if you are able to split your i/o's as much as possible over separate SCSI channels. If you have primary and alternate paths to the same physical devices then split across those.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 08:26 AM
03-11-2005 08:26 AM
Re: DD performance - copying volumes...
The copy of a 5Gb volume using raw devices:
dd if=/dev/vg01/rlv_oracle of=/dev/vgora01/rlv5_oracle bs=16384k
312+1 records in
312+1 records out
real 8:17.39
user 0.01
sys 6.87
... And using cooked:
dd if=/dev/vg01/lv_oracle of=/dev/vgora01/lv5_oracle bs=8192k
625+0 records in
625+0 records out
real 23:19.48
user 0.02
sys 2:19.74
Haw on earth could this happen, since these are exactly the same devices???
Regards,
Filipe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 08:38 AM
03-11-2005 08:38 AM
SolutionWhen literally every block has to read and written one time, the buffer cache overhead is a waste.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 08:45 AM
03-11-2005 08:45 AM
Re: DD performance - copying volumes...
you can prevent data to go through the data buffer cache for block devices, too.
Since HP-UX 11.11 there is the possibility to use vxtunefs parameter "discovered_direct_iosz".
See manpage of vxtunefs(1m)
vxtunefs use just a configuration file /etc/vx/tunefstab with some parameters for each single mount point.
Roland