3. Creating an HDLM Environment
In Figure 3-30: Device Configuration When a Logical Volume on a SCSI Device Is
Moved to an HDLM Device,
indicate the HDLM devices corresponding to each LU.
sddlmad2
To move the logical volume to an HDLM device:
1.
Make sure that HDLM has been installed.
Execute the
# rpm -q HDLM
HDLM-
2.
Make sure that the path is a single path.
Execute the HDLM-configuration definition utility (
parameter specified to make sure that the path to the LU is a single path.
# dlmcfgmgr -v
HDevName
/dev/sddlmaa
/dev/sddlmab
KAPL10302-I /sbin/dlmcfgmgr completed normally.
3.
Stop all processes and services that are using the SCSI and HDLM devices.
4.
Unmount the logical volume to be moved.
In the following example, the logical volume subject to the move has been
mounted on
# umount /mnt/lvol1
5.
Deactivate the volume group.
In the following example, the logical volume to be moved belongs to the
volume group:
# vgchange -an vg01
0 logical volume(s) in volume group "vg01" now active
6.
Export the volume group.
In the following example, the command exports information about the
volume group:
# vgexport vg01
Volume group "vg01" successfully exported
254
n indicates the different LUs.
sd
command to make sure that HDLM has been installed.
rpm
x
x
x
x
xxx
x
.
.
.
.
-
Management Device
configured
configured
:
/mnt/lvol1
sddlmad1
dlmcfgmgr
Host Channel Target Lun
/dev/sda
2
/dev/sdb
2
and
) with the
-v
0
0
0
0
0
1
vg01
vg01