Managing HP Serviceguard A.11.20.10 for Linux, December 2012

1. Run fdisk, specifying your device file name in place of <DeviceName>:
# fdisk <DeviceName>
Respond to the prompts as shown in the following table, to define a partition:
Action PerformedResponsePrompt
Create a new partitionnCommand (m for help):1.
Creation a primary partitionpCommand action e extended p
primary partition (1-4)
2.
Create partition 11Partition number (1-4):3.
Accept the default starting cylinder 1EnterFirst cylinder (1-nn, default 1):4.
Accept the default, which is the last
cylinder number
EnterLast cylinder or +size or +sizeM or
+sizeK (1-nn, default nn):
5.
Display partition datapCommand (m for help):
Write data to the partition tablewCommand (m for help):
The following example of the fdisk dialog shows that the disk on the device file /dev/sdc
is configured as one partition, and appears as follows:
fdisk /dev/sdc
Command (m for help): n
Command action
e extended
p primary partition (1-4) p
Partition number (1-4): 1
First cylinder (1-4067, default 1): Enter
Using default value 1Last cylinder or +size or +sizeM or +sizeK (1-4067, default 4067): Enter
Using default value 4067
Command (m for help): p
Disk /dev/sdc: 64 heads, 32 sectors, 4067 cylinders
Units = cylinders of 2048 * 512 bytes
Device Boot Start End Blocks Id System
/dev/sdc 1 4067 4164592 83 Linux
Command (m for help): w
The partition table has been altered!
2. Respond to the prompts as shown in the following table to set a partition type:
Action PerformedResponsePrompt
Set the partition typetCommand (m for help):1.
Partition affected1Partition number (1-4):2.
Set partition to type to Linux LVM8eHex code (L to list codes):3.
Display partition datapCommand (m for help):
Write data to the partition tablewCommand (m for help):
The following example of the fdisk dialog describes that the disk on the device file /dev/
sdc is set to Smart Array type partition, and appears as follows:
fdisk /dev/sdc
Command (m for help): t
Partition number (1-4): 1
HEX code (type L to list codes): 8e
Command (m for help): p
5.1 Preparing Your Systems 141