Mapping Compute Node Partitions

If your compute node hard disks are already partitioned, edit the file /etc/beowulf/fstab on the master node to record the mapping of the partitions on your compute node disks to your file systems. This file contains example lines (commented out) showing the mapping of file systems to drives; read the comments in the fstab file for guidance.

  1. Query the disks on the compute nodes to determine how they are partitioned:

    [root@cluster ~]# beofdisk -q
    This creates a partition file in /etc/beowulf/fdisk, with a name similar to sda:512:128:32 and containing lines similar to the following:
    [root@cluster root]# cat sda:512:128:32
    /dev/sda1  :  start=    32,  size=  8160,   id=89,  bootable
    /dev/sda2  :  start=    8192,   size=    1048576,  Id=82
    /dev/sda3  :  start=    1056768,    size=    1040384,  Id=83
    /dev/sda4  :  start=    0, size=  0,  Id=0      

  2. Read the comments in /etc/beowulf/fstab. Add the lines to the file to use the devices named in the sda file:

    # This is the default setup from beofdisk
    #/dev/hda2        swap     swap   defaults     0 0
    #/dev/hda3        /        ext2   defaults     0 0
    /dev/sda1         /boot    ext23  defaults     0 0
    /dev/sda2         swap     swap   defaults     0 0
    /dev/sda3         /scratch ext3   defaults     0 0 

  3. After saving fstab, you must reboot the compute nodes for the changes to take affect.