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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy logical volume aix4.3

Status
Not open for further replies.

redsydus

Programmer
Nov 21, 2003
23
0
0
FR
HI all,

I'm working on RS6000 4.3.3, i want to copy a logical volume on a new drive.
I'm using smit cplv : copy to a system created LV'
Does a copy to a system created logical volume copy also the source logical volume contents.
My new logical volume is created but the new logical volume is empty !!!
Could you explain me what are the differents steps to copy a logical volume ??

Thks in advance ...

 
hi,
what do you mean "is empty" : there are not files ?

Files ( as commonly intended ) are atoms of FileSystem and when you copy or make a LV, FS is not created or defined.

You cannot use Create a FS on a previously created LV, becouse in this case, you erase data inside LV.

How exit from this ?

1) umount source FS (it closes LV )

2) use cplv or smitty cplv

3) create a dir for NEW-mount-point of NEW fs

4) test it; use:
mount -v jfs -o log=/dev/hd8 /dev/fslv00 /newmountpoint
ls /newmountpoint
umount /newmountpoint

5) make it automatic:
copy and paste a stanza in /etc/filesystems and
substitite lv and mount point with yours

6) mount it: enter the command
mount all
and ignore messages saying you filesystem are mounted

7) verify your new is mounted (with "mount all" you don't
need reboot box to verify it goes)

NOTES: in my ex. /dev/hd8 is the log-lv for rootvg.
if your dest lv is in a different VG, use its
(lsvg -l yourvg )

bye
 
Hi~ redsydus!!!
when you create a new lv, you must change lv attribute.
chlv -t copy lvname. and then you able to cplv
hope to help
thanks & regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top