- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: dd command
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
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
10-30-2002 10:21 AM
10-30-2002 10:21 AM
how can i determinate what block size i must use with dd command if we are using different kind of disks from source to destiny copy?
(faster disk to slow disk)
is the dd command the appropiate command to do this work?
thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2002 10:33 AM
10-30-2002 10:33 AM
SolutionYes, the dd command is appropriate. The block size, however, depends. I usually start with bs=1024k at least and experiment from there. You can let it run for 60 seconds, kill it, and see how many blocks it copied. Then repeat with a larger block size to see if it improves.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2002 10:39 AM
10-30-2002 10:39 AM
Re: dd command
I would pick bs=128k but you could use a larger size if you want. There won't be nearly as much performance increase as going from bs=512 to bs=128k by using bs=256k. A 2Gb disk volume will take a minute or two with bs=128k
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2002 10:46 AM
10-30-2002 10:46 AM
Re: dd command
First, of course, use the raw devices for your copy.
You can use 'diskinfo' to obtain the sector size of your disk. Then, from the 'dd' man page, note:
/begin_quote/
If 'if' or 'of' refers to a raw disk, 'bs' should always be a multiple of sector size of disk. The default 'bs' size used by 'dd' is 512 bytes. If sector size of disk is different from 512 bytes, a 'bs' multiple of sector size should be specified.
/end_quote/
The man pages also note that the most efficient copy will occur for equal blocksizes (in and out). I'd certainly choose a large multiple of the disk sector size, something like 256k.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2002 10:52 AM
10-30-2002 10:52 AM
Re: dd command
timex dd if=/dev/dsk/cxtxdx of=/dev/dsk/cytydy bs=128k
or
timex dd if=/dev/dsk/cxtxdx of=/dev/dsk/cytydy bs=256k
by the way the results I got was that selecting a block size of 128K or 256K was at least 10 times faster than not choosing a block size.