Renaming A Volume Group - HP -UX 11i Administrator's Manual

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

Advertisement

NOTE:
Individual physical volumes or logical volumes cannot be quiesced using this feature. To
temporarily quiesce a physical volume to disable or replace it, see
Volume" (page
provide a stable image of a logical volume without deactivating the volume group, mirror the
logical volume, then split off one of the mirrors, as described in
Volume" (page
Quiescing a volume group is not persistent across reboots.
To quiesce a volume group, use the vgchange command with the -Q option as follows:
# vgchange -Q mode vgnn
The mode parameter can be either rw, which blocks both read and write operations, or w, which
permits read operations but blocks write operations.
By default, the volume group remains quiesced until it is explicitly resumed. You can specify a
maximum quiesce time in seconds using the -t option. If the quiesce time expires, the volume
group is resumed automatically. For example, to quiesce volume group vg08 for a maximum of
ten minutes (600 seconds) but permitting read operations, enter the following command:
# vgchange -Q w -t 600 vg08
To resume a quiesced volume group, use the vgchange command with the -R option as follows:
# vgchange -R vgnn

Renaming a Volume Group

To change the name of a volume group, export it, then import it using the new name. For more
detailed information on how to export and import a volume group, see
(page 57)
and
To rename the volume group vg01 to vgdb, follow these steps:
1.
Deactivate the volume group as follows:
# vgchange -a n vg01
2.
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/vg01/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.
3.
Export the volume group as follows:
# vgexport -m vg01.map vg01
4.
If you are using an HP-UX release before March 2008, or if you want to specify the minor
number of the volume group device file, create it for the volume group's new name, using the
procedure in
Since the group file in this example has a major number of 64 and a minor number of
0x010000, enter the following commands:
# mkdir /dev/vgdb
# mknod /dev/vgdb/group c 64 0x010000
5.
Import the volume group under its new name as follows:
# vgimport -m vg01.map /dev/vgdb
6.
Back up the volume group configuration information as follows:
# vgcfgbackup /dev/vgdb
7.
Activate the volume group as follows:
# vgchange -a y /dev/vgdb
8.
Remove saved configuration information based on the old volume group name as follows:
66
Administering LVM
87). To quiesce a logical volume, quiesce or deactivate the volume group. To
68).
"Importing a Volume Group" (page
"Creating the Volume Group Device File" (page
"Disabling a Path to a Physical
"Backing Up a Mirrored Logical
"Exporting a Volume Group"
58).
2004 /dev/vg01/group
44).

Advertisement

Table of Contents
loading

Table of Contents