Managing HP Serviceguard for Linux, Tenth Edition, September 2012

fdisk -l
You will see output such as the following:
Disk /dev/sda: 64 heads, 32 sectors, 8678 cylinders
Units = cylinders of 2048 * 512 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1001 1025008 83 Linux
/dev/sda2 1002 8678 7861248 5 Extended
/dev/sda5 1002 4002 3073008 83 Linux
/dev/sda6 4003 5003 1025008 82 Linux swap
/dev/sda7 5004 8678 3763184 83 Linux
Disk /dev/sdb: 64 heads, 32 sectors, 8678 cylinders
Units = cylinders of 2048 * 512 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdc: 255 heads, 63 sectors, 1106 cylinders
Units = cylinders of 16065 * 512 bytesDisk /dev/sdd: 255 heads, 63 sectors, 1106 cylinders
Units = cylinders of 16065 * 512 bytes
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.
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
1
EnterFirst 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.
Preparing Your Systems 171