General
cancel
Showing results for 
Search instead for 
Did you mean: 

fbackup question - copying entire volume to another disk

SOLVED
Go to solution
Gino Castoldi_2
Honored Contributor

fbackup question - copying entire volume to another disk

Hi,

Servers: HP-UX 11.11 rp5470/L2000 MC/SG

We have two servers in a cluster. We are switching the SAN storage device (new EMC frame). We plan on copying the data (20GB) on the SAN (before we make the switch) to a local disk. (One volume with three mount points).
Once the servers are switched to the new SAN storage device we are going to restore the original copied data to it.

Can we use the fbackup utility to do this or is there a better way?

10 points to any answer.
Thank you
-Gino
2 REPLIES
James R. Ferguson
Acclaimed Contributor
Solution

Re: fbackup question - copying entire volume to another disk

Hi Gino:

If you can concurrently attach the SAN storage devices (old and new) you could use LVM MirrorDisk to replicate your data. Otherwise, you could use your local disk as a temporary backup. There are various ways to copy the data, among them:

# cd srcdir && pax -r -w -pe . dstdir

# cd srcdir && fbackup -i . -f - | ( cd dstdir && frecover -Xsrf - )

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: fbackup question - copying entire volume to another disk

Shalom,

If both disks are accessible, there are a number of ways to pull this off.

fbackup will work.

cp -rp
# will work.

You can even umount the filesystems and use dd
dd if=/dev/dsk/(source disk) of=/dev/dsk/(dest disk) bs=(check lvdisplay for this) count=(work with block size to cover every block).

Lots of ways.

scp -rp will work if another system currently owns the disk.

create a tar file with tar cvf and then tar tvf it after of course setting up a logical volume and a file system.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com