How to edit the head node disk layout outside of the Bright installer


By Robert Stober | December 17, 2012 | head node, linux cluster configuration, disk layout



The Bright Cluster Manager installer allows you to customize the disk partition layout on the head node as well as the compute nodes. While the layout of compute nodes can be changed after installation, the head node partitioning layout cannot. So it's important to think about how you want to partition the disks on the head node before installation. The Bright installer provides a built-in editor you can use to customize the disk layout. But you can also do this outside of the Bright installer. This article describes how to edit the master disk layout outside of the Bright installer.

Let's get started.

The Bright installer provides a nice graphical interface that makes walks you through the installation process step-by-step. At any time during the installation you can switch to a virtual terminal using the combination of the ALT plus a Function key. For example, I accessed the virtual console using ALT+F2. I could have also used ALT+F5, ALT+F6, ALT+F7, or ALT+F8.

You will find the master disk layouts in the /var/www/htdocs/content/masterdisklayout directory. There are several of them in there. You might want to start with a complex one (like master-default.xml) or a simple one (like master-one-big-partition.xml).  I retrieved the desired XML files off from system as follows:

<pre># mkdir -p /mnt/flash
# mount /dev/sdb1 /mnt/flash
# cp /var/www/htdocs/content/masterdisklayouts/master-default.xml /mnt/flash
# cp /var/www/htdocs/content/masterdisklayouts/master-one-big-partition.xml /mnt/flash
# umount /mnt/flash

Edit the master-default.xml using the computer and text editor of your choosing. I added a "/fake" partition.

Re-mount the USB device and copy the master-default.xml file to the masterdisklayouts directory:

<pre># mount /dev/sdb1 /mnt/flash
# cd /mnt/flash
# cp -f master-default.xml /var/www/htdocs/content/masterdisklayouts

Switch back to the installer GUI using ALT+F9.

We're done.

Note that the /fake partition is now visible in the installer:

Stober blog

High Performance Computing eBook