HP -UX 11i Administrator's Manual page 89

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

Advertisement

1.
Create a bootable physical volume.
a.
On an HP Integrity server, partition the disk using the idisk command and a partition
description file, then run insf as described in
Servers" (page
b.
Run pvcreate with the -B option. On an HP Integrity server, use the device file denoting
the HP-UX partition:
# pvcreate -B /dev/rdisk/disk6_p2
On an HP 9000 server, use the device file for the entire disk:
# pvcreate -B /dev/rdisk/disk6
2.
Create a directory for the volume group. For example:
# mkdir /dev/vgroot
3.
Create a device file named group in the previously described directory as follows:
# mknod /dev/vgroot/group c 64 0xnn0000
4.
Create the root volume group, specifying each physical volume to be included, as follows:
# vgcreate /dev/vgroot /dev/disk/disk6
5.
Place boot utilities in the boot area as follows:
# mkboot /dev/rdisk/disk6
6.
Add an autoboot file to the disk boot area as follows:
# mkboot -a "hpux" /dev/rdisk/disk6
7.
Create the boot logical volume. To create a boot logical volume named bootlv with size
512 MB, enter the following commands:
# lvcreate -C y -r n -n bootlv /dev/vgroot
# lvextend
L 512 /dev/vgroot/bootlv /dev/disk/disk6
NOTE:
The -r n option for bad block reallocation (in this and next two steps) is used for
Version 1.0 volume groups only. It is ignored by Version 2.x volume groups.
8.
Create the primary swap logical volume. For example, to create a primary swap logical
volume named swaplv with size 2 GB on the same disks as the boot logical volume, enter
the following commands:
# lvcreate -C y
# lvextend
L 2048 /dev/vgroot/swaplv /dev/disk/disk6
9.
Create the root logical volume. For example, to create a root logical volume named rootlv
with size 1 GB, enter the following commands:
# lvcreate -C y
# lvextend
L 1024 /dev/vgroot/rootlv /dev/disk/disk6
10. Specify that bootlv is the boot logical volume as follows:
# lvlnboot -b /dev/vgroot/bootlv
1 1. Specify that rootlv is the root logical volume as follows:
# lvlnboot -r /dev/vgroot/rootlv
12. Specify that swaplv is the primary swap logical volume as follows:
# lvlnboot -s /dev/vgroot/swaplv
13. Specify that swaplv is also to be used for dump as follows:
# lvlnboot -d /dev/vgroot/swaplv
14. Verify the configuration as follows:
# lvlnboot -v /dev/vgroot
Boot Definitions for Volume Group /dev/vgroot:
Physical Volumes belonging in Root Volume Group:
92).
r n -n swaplv /dev/vgroot
r n -n rootlv /dev/vgroot
"Mirroring the Boot Disk on HP Integrity
Moving and Reconfiguring Your Disks
89

Advertisement

Table of Contents
loading

Table of Contents