Managing HP Serviceguard for Linux Ninth Edition, April 2009
Table 5-1 Changing Linux Partition Types
Action PerformedResponsePrompt
Create new partition
n
Command (m for help):
1.
Partition affected
1
Partition number (1-4):
2.
Set partition to type to Linux, default
83
Hex code (L to list codes):
3.
Define first partition
1
Command (m for help):
Set size to 1 cylinder
1
Command (m for help):
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 set to Smart Array type partition, and appears as follows:
fdisk /dev/sdc
Command (m for help): n
Partition number (1-4): 1
HEX code (type L to list codes): 83
Command (m for help): 1
Command (m for help): 1
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 1 1008 83 Linux
Command (m for help): w
The partition table has been altered!
NOTE: Follow these rules:
• Do not try to use LVM to configure the lock LUN.
• The partition type must be 83.
• Do not create any filesystem on the partition used for the lock LUN.
• Do not use md to configure multiple paths to the lock LUN.
To transfer the disk partition format to other nodes in the cluster use the command:
sfdisk -R <device>
where <device> corresponds to the same physical device as on the first node. For
example, if /dev/sdc is the device name on the other nodes use the command:
158 Building an HA Cluster Configuration