Managing HP Serviceguard for Linux Ninth Edition, April 2009

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 partition
n
Command (m for help):
1.
Creation a primary partition
p
Command action e extended p
primary partition (1-4)
2.
Create partition 1
1
Partition number (1-4):
3.
Accept the default starting cylinder
1
Enter
First cylinder (1-nn, default
1):
4.
Accept the default, which is the last
cylinder number
Enter
Last cylinder or +size or +sizeM
or +sizeK (1-nn, default nn):
5.
Display partition data
p
Command (m for help):
Write data to the partition table
w
Command (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
Preparing Your Systems 161