LVM Relocate Volume Group to New Server: Difference between revisions
Jump to navigation
Jump to search
(→Linux) |
(→Linux) |
||
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> | ||
## Export the volume group. | ## Export the volume group. | ||
### <tt>'''# vgexport <volume group>'''</tt> | ### <tt>'''# vgexport <volume group>'''</tt> |
Revision as of 14:57, 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.