3. Creating an HDLM Environment
To re-create the volume group on the HDLM device, execute the
command as shown in the following example:
# vgscan
Reading all physical volumes.
Found exported volume group "vg01" using metadata type lvm2
8.
Import the volume group.
In the following example, the command imports the
# vgimport vg01
Volume group "vg01" successfully imported
9.
Execute the
successfully.
The following shows an example of executing the
# pvscan
PV /dev/sda1
PV /dev/sda2
Total: 2 [1016.00 MB] / in use: 2 [1016.00 MB] / in no VG: 0
[0
]
10. Activate the volume group.
In the following example, the logical volume subject to the move belongs to the
volume group:
vg01
# vgchange -ay vg01
1 logical volume(s) in volume group "vg01" now active
11. If the
/etc/fstab
return the commented out section to its original state.
12. Mount the logical volume that was moved.
In the following example, the logical volume that was moved is
and the command mounts the volume on
lvol1
# mount /dev/vg01/lvol1 /mnt/lvol1
3.23.9 Canceling the md Device Settings
This subsection describes how to migrate an environment where the md devices were
constructed by using HDLM-managed devices to an environment where the md
devices were constructed by using SCSI devices.
302
command to check that the environment has been changed
pvscan
VG vg01
lvm2 [468.00 MB / 368.00 MB free]
VG vg01
lvm2 [548.00 MB / 548.00 MB free]
file was edited (a section was commented out) in step 5,
This may take a while...
volume group:
vg01
command:
pvscan
/dev/vg01/
:
/mnt/lvol1
vgscan