Blogs Classifieds Downloads FlashChat Gallery Googlemap Invite Friends Links Projects Reviews Wiki
 


Our Sponsors
Want to advertise?  


Reply
 
LinkBack (1) Thread Tools
  #1  
Old July 11th, 2008
dthacker's Avatar
dthacker Offline
Cat Herder and Penguin Wrangler
 
Join Date: June 2006
Location: Omaha, Nebraska USA
Posts: 99
Send a message via Yahoo to dthacker
Will migratelv move an lv from one volume group to another?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old July 13th, 2008
ross.mather's Avatar
ross.mather Offline
Senior Member
 
Join Date: January 2007
Location: Nomadic in the UK
Posts: 608
Re: Will migratelv move an lv from one volume group to another?

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....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old July 15th, 2008
seth's Avatar
seth Online
Senior Member
 
Join Date: June 2008
Posts: 297
Re: Will migratelv move an lv from one volume group to another?

Quote:
Originally Posted by ross.mather View Post
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.
I would simple do a
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
group, migratelv, move, volume

These are the 100 most searched terms
Search Cloud
0042-001 0042-001 nim 0042-008 nimsh: request denied 0513-001 the system resource controller daemon is not active 0513-001 the system resource controller daemon is not active. 0514-061 0514-061 cannot find a child device 0514-061 cannot find a child device. 0516-787 0516-787 extendlv 0516-787 extendlv: maximum allocation for logical volume 110000ac 3074feb7 aa00e1f3 aio aix aix aio aix freeware aix memory usage aix rsync aixif_arp_dup_addr b150f22a b181f22a b181fb53 ba010004 bfe4c025 c1001020 d133c002 dacnone dcb47997 fcp_array_err6 fget_config gnu tar aix gtar aix hmc root password hmc vmware ibm p6 520 libpopt.a migratelv navisphere agent nim server pseriestech ptype and account type do not match rshd: 0826-813 permission is denied rshd: 0826-813 permission is denied. rsync aix sc_disk_err4 scan_error_chrp vio server vmware hmc websm ... powered by Simple Search Cloud


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

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Powered by vbWiki Pro 1.3 RC5. Copyright ©2006-2007, NuHit, LLC

vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82