| Blogs | Classifieds | Downloads | FlashChat | Gallery | Googlemap | Invite Friends | Links | Projects | Reviews | Wiki |
| |||||||||
|
#1
| ||||
| ||||
I need to take one logical volume and move it from alphavg to betavg. I thought that migratevg might let me pull this off without archiving/deleting/recreating. Looking at the "Logical Volume Manager from A to Z", it seems that "migratelv" is only for physical relocation withing a volume group. Am I right? TIA Dave |
|
#2
| ||||
| ||||
Yes you are correct, migratelv is a physical movement on disk. To move the contents of an LV to another VG I would usually do this: create new LV in target volume group, and mount ata a temporary location ( eg /mnt ). Stop the application that uses the LV cd <root directory of source filesystem> tar -cvf - * | ( cd /mnt ; tar -xvf - ) umount both directories delete the original filesystem and logical volume. Change the mount point for the new filesystem mount the new filesystem start the application.
__________________ Ross Mather, IBM AIX IT Specialist. That said anything I say here is my own opinion and not anything that you can ever hold against IBM. Ohhh and don't forget that I make mistakes too.... |
|
#3
| ||||
| ||||
Quote:
umount /filesystem-I-want-to-move cplv -Y new-lvname-prefix -v destination-vg source-lv edit /etc/filesystems entry to the new lvname and change the jfs2log to the log of the new VG. mount the moved file system (rmlv oldlv if necessary) Ready. Cheers seth |
![]() |
| Bookmarks |
| Tags |
| group, migratelv, move, volume |
LinkBacks (?)
LinkBack to this Thread: http://www.pseriestech.org/forum/aix-for-power-systems/will-migratelv-move-lv-one-volume-2142.html | ||||
| Posted By | For | Type | Date | |
| IBM: AIX - combine multiple VGs | This thread | Refback | May 10th, 2009 02:52 | |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |