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

Table 5 Device information example, device and driver information in the table.

Page 20 highlights

3. Construct the minor number for each device, using the device information, and enter the file names in your table. Use the following formula to construct the minor number: 0xxxyz00 where xx = SCSI bus instance number, y = SCSI target ID, and z = LUN. 4. Display the driver information for the system using the lsdev command. Example # lsdev Character : 188 # Block : 31 Driver : sdisk Class : disk 5. Enter the major numbers for the device drivers into the table. You should now have all required device and driver information in the table. 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 5 Device information example Bus Inst Disk HW path Major Major Driver Dev type TID LUN Dev file Minor no. no. char. no. 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 20 Installing and configuring HP-UX for the XP disk array

  • 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

3.
Construct the minor number for each device, using the device information, and enter the file
names in your table. Use the following formula to construct the minor number:
0xxxyz00
where
xx
= SCSI bus instance number,
y
= SCSI target ID, and
z
= LUN.
4.
Display the driver information for the system using the
lsdev
command.
Example
# lsdev
Character
Block
Driver
Class
:
:
:
:
188
31
sdisk
disk
#
5.
Enter the major numbers for the device drivers into the table. You should now have all required
device and driver information in the table.
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 5 Device information example
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
Installing and configuring HP-UX for the XP disk array
20