HP XP20000/XP24000 HP StorageWorks XP Disk Array Configuration Guide (T5278-96 - Page 23

Creating the physical volumes, Creating new volume groups, Table 4 Device information example HP-UX

Page 23 highlights

6. Create the device files for all disk array devices (SCSI disk and multiplatform devices) using the mknodcommand. Create the block-type device files in the /dev/dsk directory and the character-type device files in the /dev/rdsk directory. Example # cd /dev/dsk Go to /dev/dsk directory. # mknod /dev/dsk/c2t6d0 b 31 0x026000 Create block-type file. File name, b=block-type, 31=major #, 0x026000= minor # # cd /dev/rdsk Go to /dev/rdsk directory. # mknod /dev/rdsk/c2t6d0 c 188 0x026000 Create character-type file. File name, c=character-type, 177=major #, 0x026000=minor # : # The character-type device file is required for volumes used as raw devices (for example, 3390-3A/B/C). The block-type device file is not required for volumes used as raw devices. If you need to delete a device file, use the rm -i command. Table 4 Device information example (HP-UX) Bus Inst Disk HW path Driver Dev type TID LUN Dev file Minor no. Major Major no. no. char. block files files 8/12 02 3 8/12.8.8.255.0.6.0 sdisk OPEN-9 6 0 c2t6d0 0x026000 188 31 8/12 02 4 8/12.8.8.255.0.6.1 sdisk OPEN-9 6 1 c2t6d1 0x026100 188 31 8/12 02 5 8/12.8.8.255.0.8.0 sdisk 3390-3B 8 0 c2t8d0 0x028000 188 31 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. Configuring disk array devices 23

  • 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
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183

6.
Create the device files for all disk array devices (SCSI disk and multiplatform devices) using
the
mknodcommand
. Create the block-type device files in the
/dev/dsk
directory and the
character-type device files in the
/dev/rdsk
directory.
Example
# cd /dev/dsk
Go to /dev/dsk directory.
# mknod /dev/dsk/c2t6d0 b 31 0x026000
Create block-type file.
File name, b=block-type,
31=major #, 0x026000= minor #
# cd /dev/rdsk
Go to /dev/rdsk directory.
# mknod /dev/rdsk/c2t6d0 c 188 0x026000 Create character-type file.
File name, c=character-type,
177=major #, 0x026000=minor #
:
#
The character-type device file is required for volumes used as raw devices (for example,
3390-3A/B/C). The block-type device file is not required for volumes used as raw devices.
If you need to delete a device file, use the
rm
i
command.
Table 4 Device information example (HP-UX)
Major
no.
block
files
Major
no.
char.
files
Minor no.
Dev file
LUN
TID
Dev type
Driver
HW path
Disk
Inst
Bus
31
188
0x026000
c2t6d0
0
6
OPEN-9
sdisk
8/12.8.8.255.0.6.0
3
02
8/12
31
188
0x026100
c2t6d1
1
6
OPEN-9
sdisk
8/12.8.8.255.0.6.1
4
02
8/12
31
188
0x028000
c2t8d0
0
8
3390-3B
sdisk
8/12.8.8.255.0.8.0
5
02
8/12
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.
Configuring disk array devices
23