Moving Disks Within A System - HP -UX 11i Administrator's Manual

Logical volume management
Hide thumbs Also See for HP-UX 11i:
Table of Contents

Advertisement

"Mirroring the Boot Disk on HP 9000 Servers" (page 90)
"Mirroring the Boot Disk on HP Integrity Servers" (page 92)
You might need to do the following tasks:
Move the disks in a volume group to different hardware locations on a system.
Move entire volume groups of disks from one system to another.
CAUTION:
information, see Configuring HP-UX for Peripherals.
The /etc/lvmtab and /etc/lvmtab_p files contain information about the mapping of LVM
disks on a system to volume groups; that is, volume group names and lists of the physical volumes
included in volume groups. When you do either of the previous tasks, these configuration files must
be changed to reflect the new hardware locations and device files for the disks. However, you
cannot edit these files directly because they are not text files. Instead, you must use vgexport
and vgimport to reconfigure the volume groups, which records configuration changes in the LVM
configuration files.

Moving Disks Within a System

There a two procedures for moving the disks in a volume group to different hardware locations on
a system. Choose a procedure depending on whether you use persistent or legacy device files for
your physical volumes; the types of device files are described in
Persistent Device Files" (page
LVM Configuration with Persistent Device Files
If your LVM configuration uses persistent device files, follow these steps:
1.
Be sure that you have an up-to-date backup for both the data within the volume group and
the volume group configuration.
2.
Deactivate the volume group by entering the following command:
# vgchange -a n /dev/vgnn
3.
Physically move your disks to their desired new locations.
4.
Activate the volume group as follows:
# vgchange -a y /dev/vgnn
LVM Configuration with Legacy Device Files
The names of legacy device files change when the hardware paths to their physical devices change.
Therefore, you must update the LVM configuration by exporting and importing the volume group
to use the new legacy device files. Follow these steps:
1.
Be sure that you have an up-to-date backup for both the data within the volume group and
the volume group configuration.
2.
Deactivate the volume group as follows:
# vgchange -a n /dev/vgnn
3.
If you want to retain the same minor number for the volume group, examine the volume group's
group file as follows:
# ls -l /dev/vgnn/group
crw-r--r-- 1 root sys 64 0x010000 Mar 28
For this example, the volume group major number is 64, and the minor number is 0x010000.
4.
Remove the volume group device files and its entry from the LVM configuration files by entering
the following command:
# vgexport -v -s -m /tmp/vgnn.map /dev/vgnn
Moving a disk that is part of your root volume group is not recommended. For more
12).
"Legacy Device Files versus
2004 /dev/vgnn/group
Moving and Reconfiguring Your Disks
71

Advertisement

Table of Contents
loading

Table of Contents