11/17/2007
Data Test Program (dt)
38
Copy and Verify I/O Mode
ndt’s iomode= option controls {copy, test, or verify} modes.
nThe copy is an image mode copy automatically verified.
nUseful for copying CD/DVD ISO’s to disk (preferred over dd).
n
nExample:
ushaix11# dt of=/dev/hdisk0 bs=64k pattern=iot aios=16 stats=none (prime hdisk0 data)
ushaix11# dt if=/dev/hdisk0 of=/dev/rhdisk1 bs=64k aios=16 iomode=copy
u
uCopy Statistics:
u    Data operation performed: Copied '/dev/hdisk0' to '/dev/rhdisk1'.
u     Total records processed: 16384 @ 65536 bytes/record (64.000 Kbytes)
u     Total bytes transferred: 1073741824 (1048576.000 Kbytes, 1024.000 Mbytes)
u      Average transfer rates: 35078139 bytes/sec, 34255.995 Kbytes/sec
u     Number I/O's per second: 535.250
u      Total passes completed: 0/1
u       Total errors detected: 0/1
u          Total elapsed time: 00m30.61s
u           Total system time: 00m00.79s
u             Total user time: 00m00.06s
u               Starting time: Wed May 16 09:53:02 2007
u                 Ending time: Wed May 16 09:53:33 2007
u ...
ushaix11# dt if=/dev/rhdisk1 bs=64k aios=16 pattern=iot stats=brief (verify hdisk1 data)
u/dev/rhdisk1 Totals: 2097152 blocks, 1024.000 Mbytes, errors 0/1, passes 1/1, elapsed 01m13.10s
ushaix11#