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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AIX: moving filesystem between volume groups

Disk and filesystem management

AIX: moving filesystem between volume groups

by  ogniemi  Posted    (Edited  )

Step 1) Close the source LV (umount filesystem)

# umount /fs_on_testvg1


Step 2) Copy the source LV to another VG

# cplv -v new_vg -y newname_lv oldname_lv
cplv: Logical volume loglv01 successfully copied to newname_lv .


Step 3) Change filesystem's lv and log device (with these residing on new new_vg).

# chfs -a dev=/dev/newname_lv -a log=/dev/jfslogvg2_lv /fs_on_testvg1


Step 4) Remove old (source) LV.

# rmlv -f oldname_lv


Step 5) Change the LV name: newname_lv to oldname_lv

Syntax:
chlv -n NewLogicalVolume LogicalVolume

I our case:
# chlv -n oldname_lv newname_lv


Step 6) Mount the filesystem

# mount /fs_on_testvg1
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