SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 06:02 AM
 
Posts: n/a
Default Need to copy data from a logical volume or the whole volumegroup toanother

I am running HP-UX rp4440 B.11.11 U 9000/800. I need to copy data from
2 logical volumes to other 2 or the whole volume group to another. all
of similar sizes. What command can I use?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 06:02 AM
root
 
Posts: n/a
Default Re: Need to copy data from a logical volume or the whole volumegroup to another

In article <b4f8b553-4d60-44dd-a13c-99300444c69c@c29g2000hsa.googlegroups.com>,
[email protected] writes:
> I am running HP-UX rp4440 B.11.11 U 9000/800. I need to copy data from
> 2 logical volumes to other 2 or the whole volume group to another. all
> of similar sizes. What command can I use?


Well, I used rsync with good success. Just create the new volume group(s)
and/or logical volumes. Then create empty filesystems. Then you rsync to
create a "mirror" ot the old filesystem.

vgcreate -e 8192 -p 64 -s 32 vgabc /dev/dsk/c1t5d0 /dev/dsk/c2t5d0
lvcreate -n lvabc -L 20000 /dev/vgabc
newfs -F vxfs /dev/vgabc/rlvabc
mount /dev/vgabc/lvabc /nabc
/usr/local/bin/rsync -avz --delete --inplace /oabc/ /nabc

Assuming /oabc contains your old filesystem, /nabc will be the new one.

Yours, Hans Martin.

(rsync can be obtained from the HP-UX Porting Centre http://hpux.connect.org.uk)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 06:02 AM
edcrosbys
 
Posts: n/a
Default Re: Need to copy data from a logical volume or the whole volumegroupto another

On Nov 15, 6:28 am, [email protected] (root) wrote:
> In article <b4f8b553-4d60-44dd-a13c-99300444c...@c29g2000hsa.googlegroups.com>,
> [email protected] writes:
>
> > I am running HP-UX rp4440 B.11.11 U 9000/800. I need to copy data from
> > 2 logical volumes to other 2 or the whole volume group to another. all
> > of similar sizes. What command can I use?

>
> Well, I used rsync with good success. Just create the new volume group(s)
> and/or logical volumes. Then create empty filesystems. Then you rsync to
> create a "mirror" ot the old filesystem.
>
> vgcreate -e 8192 -p 64 -s 32 vgabc /dev/dsk/c1t5d0 /dev/dsk/c2t5d0
> lvcreate -n lvabc -L 20000 /dev/vgabc
> newfs -F vxfs /dev/vgabc/rlvabc
> mount /dev/vgabc/lvabc /nabc
> /usr/local/bin/rsync -avz --delete --inplace /oabc/ /nabc
>
> Assuming /oabc contains your old filesystem, /nabc will be the new one.
>
> Yours, Hans Martin.
>
> (rsync can be obtained from the HP-UX Porting Centrehttp://hpux.connect.org.uk)


We've moved Terabytes around with cpio (most of our SAN Migrations).
cd dir
find ./ -depth -print |cpio -pdmuxv /mig/new_dir (with new_dir being
new mount point)

But you could use cp, dd or rsync as well. I do assume these are all
on the same server.