Managing Serviceguard Sixteenth Edition, March 2009

manpage for more information. Do this on one of the nodes in the cluster that will use
this lock LUN.
CAUTION: Before you start, make sure the disk or LUN that is to be partitioned has
no data on it that you need. idisk will destroy any existing data.
1. Use a text editor to create a file that contains the partition information. You need
to create at least three partitions, for example:
3
EFI 100MBHPUX 1MB
HPUX 100%
This defines:
A 100 MB EFI (Extensible Firmware Interface) partition (this is required)
A 1 MB partition that can be used for the lock LUN
A third partition that consumes the remainder of the disk is and can be used
for whatever purpose you like.
2. Save the file; for example you might call it partition.txt.
3. Create the partition; for example (using partition.txt as input):
/usr/sbin/idisk -w -p -f partition.txt /dev/rdsk/c1t4d0
Or, on an HP-UX 11i v3 system using agile addressing (see About Device File
Names (Device Special Files)” (page 107):
/usr/sbin/idisk -w -p -f partition.txt /dev/rdisk/disk12
This will create three device files, for example
/dev/dsk/c1t4d0s1, /dev/dsk/c1t4d0s2, and /dev/dsk/c1t4d0s3
or:
/dev/disk/disk12_p1, /dev/disk/disk12_p2, and /dev/disk/disk12_p3
NOTE: The first partition, identified by the device file /dev/dsk/c1t4d0s1 or
/dev/disk/disk12_p1 in this example, is reserved by EFI and cannot be used
for any other purpose.
4. Create the device files on the other cluster nodes.
Use the command insf -e on each node. This will create device files
corresponding to the three partitions, though the names themselves may differ
from node to node depending on each node’s I/O configuration.
5. Define the lock LUN; see “Defining the Lock LUN”.
Defining the Lock LUN
Use cmquerycl -L to create a cluster configuration file that defines the lock LUN.
204 Building an HA Cluster Configuration