1825766 Members
2175 Online
109687 Solutions
New Discussion

vxdump vs dd

 
SOLVED
Go to solution
Rick Garland
Honored Contributor

vxdump vs dd

Hi all:

Going to be transferring large amounts of data from 1 array to another array.

Question - which is the better command to use, dd or vxdump? What are the differences?
6 REPLIES 6
Kevin Wright
Honored Contributor
Solution

Re: vxdump vs dd

for differences, dd performs a low-level byte copy of the disk, whereas vxdump copy at the filesystem level. Either one will get the job done for you. If you will have both filesystems mounted at the same time, I would use find . -print |cpio -pdm /mntpnt.
Pete Randall
Outstanding Contributor

Re: vxdump vs dd

Rick,

The obvious questions:

First, this is a VxVM file system, right?

Second, you are planning on dumping to an intermediate tape and then using vxrestore, right?


Given that this is exactly what vxdump/vxrestore was created for, I would lean toward using them. No idea on the relative speed of each approach, however. It might be interesting to do some comparisons.


Pete


Pete
Alzhy
Honored Contributor

Re: vxdump vs dd

If both arrays will be mounted on the same server, I will urge you to use [vx]dump/[vx]restore no matter which volume manager (LVM or VxVM):

vxdump 0f - /srcfs|(cd /tgtfs;vxrestore rf -)

If array is on a remote server (set authentication for root, ie. SSH, remsh or rsh ... you know this):

On source server do,

vxdump 0f - /srcfs | rsh tgtserver "(cd /tgtfs;vxrestore rf -)

rsh can be substituted with ssh,remsh...etc.

HTH.

Hakuna Matata.
Rick Garland
Honored Contributor

Re: vxdump vs dd

Nelson:

Why would you urge vxdump usage over dd?

Alzhy
Honored Contributor

Re: vxdump vs dd

dd is best suited for RAW copies -- that is if your target and source disk or LVOLS or VOL are sized exactly the same. dd is your only means if you have data that is actually stored raw .. ie. Oracle and Sybase instances that use raw devices.

vxdump/vxrestore is the safest IMHO if transferring/migrating data accross filesystems as it takes care of links (bad or good), permissions and ownerships... cpio I will use at directory level copies although latest versions of VxFS (3.4) already supports dumping directories instead of whole filesystems.

Hakuna Matata.
Rick Garland
Honored Contributor

Re: vxdump vs dd

Many thanks to all responses!