Unix Technical Forum

cplv command

This is a discussion on cplv command within the AIX Operating System forums, part of the Unix Operating Systems category; --> hello, I'm trying to understand the use of the cplv command. if I have a logical volume such as ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2008, 07:00 PM
Rich
 
Posts: n/a
Default cplv command

hello,

I'm trying to understand the use of the cplv command.

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.

from here how do I get into /data from the new lv created on datavg?

I can remove the original lv using rmfs /data, the data should be in datavg
right?

but there is no mount point, If i create a filesystem it will overwrite the
data.

Can someone please explain better.

Thanks

Rich


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 07: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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-04-2008, 07:00 PM
Rich
 
Posts: n/a
Default Re: cplv command

Great thanks for your help,

Rich

"Mark Taylor" <member20596@dbforums.com> wrote in message
news:3164988.1059562152@dbforums.com...
>
> d'oh, dont create a filesystem over your copied LV, just run fsck on
> the new lv, then mount it up manually to check all is ok.. if it is,
> then edit the /etc/filesystems to get an entry for your new lv name,
> then you can use the chfs command to monipulate the data.. be warned,
> your LVCB will still have data pointing to you old mount point... so
> view this will
> getlvcb, and change with putlvcb... if you need more info then downlod
> the A-Z of LVM redbooks from redbooks.ibm.com. there are 2 books, you
> will want the second one "trouble shooting and commands", then you can
> look up the correct syntax for the command etc...
>
> Hope this helps
> Mark
>
> --
> Posted via http://dbforums.com



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:36 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com