LVM Relocate Volume Group to New Server: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 5: Line 5:
## Dismount all active logical volumes from their mount points.
## Dismount all active logical volumes from their mount points.
## Deactivate the volume group.
## Deactivate the volume group.
### <tt>'''# vgchange -an <volume group>'''</tt>
##: <tt>'''# vgchange -an <volume group>'''</tt>
## Export the volume group.
## Export the volume group.
### <tt>'''# vgexport <volume group>'''</tt>
##: <tt>'''# vgexport <volume group>'''</tt>
## Remove all information associated with the physical volumes.
### [[LVM_Remove_a_Physical_Volume#Removal_of_a_Physical_Volume_from_LVM|Removal of a Physical Volume from LVM.]]
### [[LVM_Remove_a_Physical_Volume#Removal_of_the_Physical_Volume_from_the_System|Removal of the Physical Volume from the System.]]


# New Server  
# New Server  
## Scan for new physical volumes.
## Scan for new physical volumes.
### <tt>'''# pvscan'''</tt>
##: <tt>'''# pvscan'''</tt>
## Import the volume group from the old server.
## Import the volume group from the old server.
### <tt>'''# vgimport <volume group>'''</tt>
##: <tt>'''# vgimport <volume group>'''</tt>
## Activate the volume group.
## Activate the volume group.
### <tt>'''# vgchange -an <volume group>'''</tt>
##: <tt>'''# vgchange -ay <volume group>'''</tt>


== Further Reading ==
== Further Reading ==
# [https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Logical_Volume_Manager_Administration/VG_move.html|Moving a Volume Group to Another System]
# [https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Logical_Volume_Manager_Administration/VG_move.html Moving a Volume Group to Another System]


[[Category:AIX]]
[[Category:AIX]]
[[Category:Linux]]
[[Category:Linux]]

Latest revision as of 14:57, 12 December 2017

Relocate Volume Group to New Server

AIX

Linux

  1. Old Server
    1. Dismount all active logical volumes from their mount points.
    2. Deactivate the volume group.
      # vgchange -an <volume group>
    3. Export the volume group.
      # vgexport <volume group>
    4. Remove all information associated with the physical volumes.
      1. Removal of a Physical Volume from LVM.
      2. Removal of the Physical Volume from the System.
  1. New Server
    1. Scan for new physical volumes.
      # pvscan
    2. Import the volume group from the old server.
      # vgimport <volume group>
    3. Activate the volume group.
      # vgchange -ay <volume group>

Further Reading

  1. Moving a Volume Group to Another System