PING : REPLACING AN LVM DISK : STEP 1.3
|
Reactivate the volume group (VG) so that the new disk can be attached,
since it wasn't configured in at boot time.
# vgchange -a y
For our example, the volume group vg00 will already be activated, but it
will not know of the replaced disk. Therefore, this step is still
required so that LVM will now know that the disk is again available:
# vgchange -a y /dev/vg00
File systems usually mounted on lvol 5 and 6 will not have been mounted
since we booted in single user mode. This allows us to activate the VG
without concern for a process trying to access the lvols once they were
activated on the new drive. vg00 will be able to access them, but they
are
currently void of data or file systems until we restore a backup to
them.
NOTE: vg00 is always activated at boot time because it holds the root, primary swap, and dump partitions. However, other VGs will not have been activated yet. This is not a problem, as the vgchange command will work on these in the same way. In the case of vg00, it would initially have been activated with c0t2d0 in an unknown state. vgchange tells vg00 to look again at c0t2d0, which is now in a known state. |