Managing HP Serviceguard A.11.20.20 for Linux, March 2014

In this example, the disk described by device file /dev/sda has already been partitioned for
Linux, into partitions named /dev/sda1 - /dev/sda7. The second internal device /dev/sdb
and the two external devices /dev/sdc and /dev/sdd have not been partitioned.
NOTE: fdisk may not be available for SUSE on all platforms. In this case, using YAST2 to set
up the partitions is acceptable.
5.1.12.2 Creating Partitions
You must define a partition on each disk device (individual disk or LUN in an array) that you want
to use for your shared storage. Use the fdisk command for this.
The following steps create the new partition:
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.
5.1 Preparing Your Systems 147