HP Serviceguard for Linux Version A.11.20.00 Deployment Guide, August 2012

13
partitions (Hex code 8e). For each volume, you will create a new (n) partition (Partition #1), set the
type (t), and save (w) the settings for the partition.
The steps in this section are to be executed on one server only.
1. To create a partition on the cluster lock LUN (/dev/sda), run the fdisk command and answer
the prompts as follows (user inputs in bold):
fdisk /dev/sda
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1024, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-1024, default 1024): 1024
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 83
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
2. To create a partition on the ws package LUN (/dev/sdb), run the fdisk command and answer
the prompts as follows (user inputs in bold):
fdisk /dev/sdb
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-24, default 1): 1
Using Last cylinder or +size or +sizeM or +sizeK (1-1016, default 1016):
1016
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
Create the Logical Volumes
In this section, you will create the shared volume groups for the 1 Serviceguard for Linux packages
(ws). This includes creating physical volumes, volume groups, and the logical volumes. You
will also create the file system on each logical volume and create the mount points for each logical
volume on the first server.
The steps in this section are to be executed on one server. This must be the same server where the
partitions were created in the previous step.