Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

moving lp's to another disk

Disk and filesystem management

moving lp's to another disk

by  chelldis  Posted    (Edited  )
when u cant immediately add diskspace to a system and cope with full disks a handy thing to do is move logical partions to another disk. as long as the disks are in the same volume group you can do the following:

find out on which disks a LV is residing and what numbers the logical partitions have:

lslv -m /my_lv

LP PP1 PV1 PP2 PV2 PP3 PV3
0001 0112 hdisk0
0002 0113 hdisk2
0003 0114 hdisk2

under LP is the logical partition number u need
To move lp 0001 from hdisk 0 to hdisk2

migratelp my_lv/1 hdisk0

If your lv is part of a mirror and you also want to move the copy to another disk you have to specify you want to also move its 2nd copy:

migratelp my_lv/1/2 (where 2 is not an lv number but to indicate its the 2nd copy)

More on migratelv can be found here:
http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds3/migratelp.htm
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top