Thread: cplv command
View Single Post

   
  #2 (permalink)  
Old 01-04-2008, 08:00 PM
Dwivian
 
Posts: n/a
Default Re: cplv command

"Rich" <rolivieri@si.rr.com> wrote in message news:<wwJVa.63963$852.57710@twister.nyc.rr.com>...

> if I have a logical volume such as /dev/lv00 mounted over /data on rootvg.
> and I have another vg called datavg. I want to move /data to datavg.
> i use cplv -v datavg lv00.


You can, but I'd not run cplv on a mounted filesystem, as you can get
corruption. Run cplv on a closed (unmounted) lv.

> from here how do I get into /data from the new lv created on datavg?
> [...]
> Can someone please explain better.


Sure thing -- what you want to do is tell the system there is already
a filesystem there, and once it knows that it will be able to mount
it.

So....

first, you umount the old one, then cplv the LV portion of the fs
while it is not being used. You got that already, so the next step...

Check the new VG and find the loglv. Keep that name.

Now, vi /etc/filesystems and look for your fs. Change the LV name and
loglv name in the stanza to reflect the new lv. Save the file and
exit.

You should be able to mount the fs now. When it works, rmlv the old
lv, and you'll be clean.

-dwiv (CATE/AIX)
Reply With Quote