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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| "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) |
| ||||
| 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 |