Scyld ClusterWare HPC: Installation Guide | ||
---|---|---|
<< Previous | Compute Node Disk Partitioning | Next >> |
Deciding on a partitioning schema for the compute node disks is no easier than with the master node, but it can be changed more easily.
Compute node hard disks may be remotely partitioned from the master using beofdisk. This command automates the partitioning process, allowing all compute node disks with a matching hard drive geometry (cylinders, heads, sectors) to be partitioned simultaneously.
If the compute node hard disks have not been previously partitioned, you can use beofdisk to generate default partition tables for the compute node hard disks. The default partition table allocates three partitions, as follows:
A BeoBoot partition equal to 2 MB (currently unused)
A swap partition equal to 2 times the node's physical memory
A single root partition equal to the remainder of the disk
The partition table for each disk geometry is stored in the directory /etc/beowulf/fdisk on the master node, with the filename specified in nomenclature that reflects the disk type, position, and geometry. Example filenames are hda:2495:255:63, hdb:3322:255:63, and sda:2495:255:63.
The beofdisk command may also be used to read an existing partition table on a compute node hard disk, as long as that disk is properly positioned in the cluster. The command captures the partition table of the first hard disk of its type and geometry (cylinder, heads, sectors) in each position on a compute node's controller (e.g., sda or hdb). The script sequentially queries the compute nodes numbered 0 through N - 1, where N is the number of nodes currently in the cluster.
While it is not possible to predict every configuration that might be desired, the typical procedure to partition node disks is as follows:
From the master node, capture partition tables for the compute nodes:
[root@cluster ~]# beofdisk -q |
If the partition table on the disk is empty or invalid, it is captured and recorded as described, but no default partition set is created. You must create a default partition using the beofdisk -d command; see the Section called Default Partitioning.
Based on the specific geometry of each drive, write the appropriate partition table to each drive of each compute node:
[root@cluster ~]# beofdisk -w |
Reboot all compute nodes using the beosetup command to make the partitioning effective.
If needed, update the file /etc/beowulf/fstab on the master node to record the mapping of the partitions on the compute node disks to the file systems.
To apply the recommended default partitioning to each disk of each compute node, follow these steps:
Generate default partition maps to /etc/beowulf/fdisk:
[root@cluster ~]# beofdisk -d |
Write the partition maps out to the nodes:
[root@cluster ~]# beofdisk -w |
You must reboot the compute nodes before the new partitions are usable. Rebooting should be done using beosetup.
To create a unique partition table for each disk type/position/geometry triplet, follow these steps:
Remotely run the fdisk command on each compute node where the disk resides:
[root@cluster ~]# bpsh n fdisk device |
Once you have created the partition table and written it to the disk using fdisk, capture it and write it to all disks with the same geometry using:
[root@cluster ~]# beofdisk -w |
You must reboot the compute nodes before the new partitioning will be effective. Rebooting should be done using beosetup.
You must then map file systems to partitions as described later in this chapter.
To generate a unique partition for a particular disk, follow these steps:
Partition your disks using either default partitioning or generalized partitions as described above.
From the master node, remotely run the fdisk command on the appropriate compute node to re-create a unique partition table using:
[root@cluster ~]# bpsh n fdisk device |
You must then map file systems to partitions as described below.
<< Previous | Home | Next >> |
Operational Overview | Up | Mapping Compute Node Partitions |