beautypg.com

9 canceling the md device settings – HP Hitachi Dynamic Link Manager Software User Manual

Page 326

background image

3. Creating an HDLM Environment

302

To re-create the volume group on the HDLM device, execute the

vgscan

command as shown in the following example:


# vgscan
Reading all physical volumes. This may take a while...
Found exported volume group "vg01" using metadata type lvm2

8.

Import the volume group.
In the following example, the command imports the

vg01

volume group:


# vgimport vg01
Volume group "vg01" successfully imported

9.

Execute the

pvscan

command to check that the environment has been changed

successfully.
The following shows an example of executing the

pvscan

command:


# pvscan
PV /dev/sda1 VG vg01 lvm2 [468.00 MB / 368.00 MB free]
PV /dev/sda2 VG vg01 lvm2 [548.00 MB / 548.00 MB free]
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

vg01

volume group:


# vgchange -ay vg01
1 logical volume(s) in volume group "vg01" now active

11. If the

/etc/fstab

file was edited (a section was commented out) in step 5,

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

/dev/vg01/

lvol1

and the command mounts the volume on

/mnt/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.

This manual is related to the following products: