HP StorageWorks XP12000 HP StorageWorks XP Disk Array Configuration Guide: HP- - Page 21

Creating the physical volumes, Creating new volume groups

Page 21 highlights

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 SAM" on page 45 for details. 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 -l command (with the output piped to grep to display only the files containing "group") to display the minor numbers for the existing group files. Example # ls -1 /dev/vg* | grep group crw-rw-rw 1 root root 64 0x0000000 Nov7 08:13 group : XP Disk Array Configuration Guide for HP-UX 21

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56

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 SAM
on page 45 for details.
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
l
command (with the output piped to
grep
to display only the files containing
group
) to display the minor numbers for the existing group files.
Example
# ls
1 /dev/vg* | grep group
crw-rw-rw 1 root root 64 0x0000000 Nov7 08:13 group
:
XP Disk Array Configuration Guide for HP-UX
21