LVM Relocate Volume Group to New Server: Difference between revisions
Jump to navigation
Jump to search
(→Linux) |
(→Linux) |
||
Line 9: | Line 9: | ||
### <tt>'''# vgexport <volume group>'''</tt> | ### <tt>'''# vgexport <volume group>'''</tt> | ||
## Remove all information associated with the physical volumes. | ## Remove all information associated with the physical volumes. | ||
### [[Removal of a Physical Volume from LVM | ### [[LVM_Remove_a_Physical_Volume#Removal_of_a_Physical_Volume_from_LVM|Removal of a Physical Volume from LVM]] | ||
# New Server | # New Server |
Revision as of 14:56, 12 December 2017
Relocate Volume Group to New Server
AIX
Linux
- Old Server
- Dismount all active logical volumes from their mount points.
- Deactivate the volume group.
- # vgchange -an <volume group>
- Export the volume group.
- # vgexport <volume group>
- Remove all information associated with the physical volumes.
- New Server
- Scan for new physical volumes.
- # pvscan
- Import the volume group from the old server.
- # vgimport <volume group>
- Activate the volume group.
- # vgchange -ay <volume group>
- Scan for new physical volumes.