- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How long should the dd command take?
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
Discussions
Discussions
Discussions
Forums
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
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
тАО08-03-2007 01:39 AM
тАО08-03-2007 01:39 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2007 01:55 AM
тАО08-03-2007 01:55 AM
Solutionare you using something like
dd if=/dev/null of=/dev/dsk/cxtydz bs= ..k?
Is cxtydz the primary disk of vg00?
In this case you erased also the command dd.
do you disk activity? Otherwise the system might hang.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2007 01:57 AM
тАО08-03-2007 01:57 AM
Re: How long should the dd command take?
Depending on the exact command syntax, and especially if a small bs (blocksize) was specified, 'dd' may take a very long time to complete.
If you have 'tusc' installed, you can use 'tusc
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2007 02:13 AM
тАО08-03-2007 02:13 AM
Re: How long should the dd command take?
# dd if=/dev/zero of=/dev/rdsk/c2t2d0 bs=1024
615525+0 records in
615524+0 records out
I started it again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2007 02:18 AM
тАО08-03-2007 02:18 AM
Re: How long should the dd command take?
# iostat
device bps sps msps
c2t2d0 0 0.0 1.0
# ps -ef | grep dd
root 19018 29666 0 10:18:30 pts/ta 0:00 grep dd
root 18985 4305 0 10:13:03 pts/tc 0:01 dd if=/dev/zero of=/dev/rdsk/c2t2d0 bs=1024
# iostat
device bps sps msps
c2t2d0 0 0.0 1.0
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2007 02:20 AM
тАО08-03-2007 02:20 AM
Re: How long should the dd command take?
A blocksize of 1024 bytes is much too small and is hardly better than the default 512. You need to append a 'k' to your value so that, for example, bs=1024, specifies a 1MiB (1024KiB) blocksize. This will make you dd's go much faster. Anything above 1024KiB is pointless and indeed, you will only see very modest changes above 64KiB. With these larger blocksizes, your dd's should be finished in a few tens of minutes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2007 02:24 AM
тАО08-03-2007 02:24 AM
Re: How long should the dd command take?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2007 02:25 AM
тАО08-03-2007 02:25 AM
Re: How long should the dd command take?
# iostat
device bps sps msps
c2t2d0 0 0.0 1.0
# iostat
device bps sps msps
c2t2d0 0 0.0 1.0
# iostat
device bps sps msps
c2t2d0 0 0.0 1.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2007 02:38 AM
тАО08-03-2007 02:38 AM
Re: How long should the dd command take?
# od -x /dev/rdsk/c2t2d0 |head -n 10
Now, you need to specify an interval (and optionally, a count) with 'iostat'. For example:
# iostat 5 12
instead of:
# iostat
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2007 02:41 AM
тАО08-03-2007 02:41 AM
Re: How long should the dd command take?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2007 02:52 AM
тАО08-03-2007 02:52 AM
Re: How long should the dd command take?
# ps -ef | grep dd
root 19088 19058 0 10:48:38 pts/ta 0:00 grep dd
root 19033 29666 227 10:23:34 pts/ta 0:09 dd if=/dev/zero of=/dev/rdsk/c2t2d0 bs=1024k
Might have some action. I can not execute some scripts anymore in my home directory. I guess I have to be patient. Thanks for all of the help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2007 02:57 AM
тАО08-03-2007 02:57 AM
Re: How long should the dd command take?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2007 06:30 AM
тАО08-06-2007 06:30 AM