Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copy file system's between volume groups 3

Status
Not open for further replies.

Diogo

Technical User
Mar 22, 2001
143
PT
Hi.

Is there any way to copy a file system from one volume group to another volume group?

Thanks any way.

DR
 
Thanks.
It works just fine.

Only one question:
Is there any way to the new logical volume be in strip?

DR
 
I had tried that before, but we can't copy lv's between vg to an lv already existing.
Only in the same vg, we can copy a lv to an already existing.

Thanks any way...

DR
 
you should be able to do this with cplv:

cplv -e DestinationLogicalVolume [ -f ] SourceLogicalVolume

where the DestinationLogicalVolume is built beforehand with the stripe size you want and made to be of type 'copy'.

from the 5.2 man pages on cplv:

If you are copying a striped logical volume and you have created the destination logical volume, with the mklv command using a different stripe block size and striping width, or the destination is not a striped logical volume, the new characteristics are maintained, and the data is copied from the source logical volume.

now, i have not tried to copy a logical vol where the source was not striped into a destination that was.. but i'm assuming it should work. have you tried this and it did not work?

and if you are dealing with filesystems, you should be able to copy as you want with 'tar':

cd /newfs
tar -cf - -C /oldfs . |tar -xvpf -

in this case, the underlying filesystem structure will not matter.
 
Adding to Breslau's excellent information, to change a pre-existing lv's type to "copy" you would simply use the command "chlv -t copy DestLVName".


Jim Hirschauer
 
Thanks Breslau.
It work just like i want.

What i said before is that i can't use the 'cplv -e', if the volume group isn´t the same.

But the 'tar' command that you give me it work's just fine.

Thanks one time more...

DR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top