Creating the physical volumes
A physical volume must be created for each new SCSI disk device.
To create the physical volumes:
1.
Use the pvcreate command to create the physical volumes with the character-type device file
as the argument. Specify the /dev/rdsk directory.
Example
# pvcreate /dev/rdsk/c6t0d0
Physical volume "/dev/rdsk/c6t0d0" has been successfully created.
:
# pvcreate /dev/rdsk/c6t0d1
Physical volume "/dev/rdsk/c6t0d1" has been successfully created.
Do not use the f option with the pvcreate command. This option creates a new physical
volume forcibly and overwrites the existing volume. If you accidentally enter the character-type
device file for an existing volume, you will lose the data on that volume.
2.
Repeat step 1 for each OPEN-x device on the disk array.
Creating new volume groups
You must create new volume groups for the new physical volumes. If desired, you can also add any
of the volumes on the disk array to existing volume groups using the vgextend command. The
physical volumes that make up one volume group can be located either in the same disk array or in
other disk arrays.
To allow more volume groups to be created, use SAM to modify the HP-UX system kernel configuration.
See
"Reference information for the HP System Administrator Manager
To create volume groups:
1.
Use the vgdisplay command to display the existing volume groups.
2.
Choose a unique name for the new volume group (for example: vg06).
3.
Create the directory for the new volume group.
Example
# mkdir /dev/vg06
4.
Use the ls
"group") to display the minor numbers for the existing group files.
Example
# ls
crw-rw-rw 1 root root 64 0x0000000 Nov7 08:13 group
:
l command (with the output piped to grep to display only the files containing
1 /dev/vg* | grep group
SAM" on page 45 for details.
XP Disk Array Configuration Guide for HP-UX
21