Personal tools
You are here: Home Documentation Fedora Core 10/11 NFS Shared Root Mini Howto
Document Actions

Fedora Core 10/11 NFS Shared Root Mini Howto

This mini howto describes the steps needed to build a Fedora Core NFS based sharedroot Cluster (FC10/11)

Prerequisites

  • None except a libvirt configuration when using a virtualized libvirt based cluster.
  • A running TFTP/PXE infrastructure for autobooting the cluster or other means.
  • See assumptions

Install Com.oonics packages

Install the latest comoonics rpms from a comoonics fedora yum channel:

yum install comoonics-bootimage comoonics-cdsl-py comoonics-bootimage-extras-nfs comoonics-bootimage-listfiles-fedora comoonics-bootimage-listfiles-fedora-nfs

You might also need other packages if needed see packages

Create a cluster configuration file

Create a cluster configuration file /etc/cluster/cluster.conf with the relevant com_info tags like as follows:

<?xml version="1.0"?>
<cluster config_version="1" name="axqad108" type="gfs">
   <clusternodes>
         <clusternode name="node1" nodeid="1" votes="1">
                 <com_info>
                         <rootvolume fstype="nfs" name="192.168.122.1:/home/marc/virtual/nfsosr/axqad109"/>
                         <eth name="eth0" ip="192.168.122.171" mac="00:0C:29:C9:C6:F5" mask="255.255.255.0" gateway="192.168.122.1"/>
                 </com_info>
         </clusternode>
         <clusternode name="node2" nodeid="2" votes="2">
                 <com_info>
                         <rootvolume fstype="nfs" name="192.168.122.1:/home/marc/virtual/nfsosr/axqad109"/>
                         <eth name="eth0" ip="192.168.122.172" mac="00:0C:29:C9:C6:F5" mask="255.255.255.0" gateway="192.168.122.1"/>
                 </com_info>
         </clusternode>
   </clusternodes>
</cluster>

Or download one on from cluster configurations

Create the shared root filesystem

  1. See mountnfs
  2. Copy all data from the local installed RHEL5 root filesystem to the shared root filesystem
cp -ax / /mnt/newroot/
  1. Create some directories if need be
mkdir /mnt/newroot/proc
mkdir /mnt/newroot/sys
  1. Create a new cdsl infrastructure on the shared root filesystem
com-mkcdslinfrastructure -r /mnt/newroot
  1. Mount the local cdsl infrastructure
mount --bind /mnt/newroot/cluster/cdsl/1/ /mnt/newroot/cdsl.local/
  1. Mount other deps to be able to chroot
mount --bind /mnt/newroot/proc /mnt/newroot/proc
mount --bind /mnt/newroot/sys /mnt/newroot/sys
mount --bind /mnt/newroot/dev /mnt/newroot/dev
chroot /mnt/newroot
  1. Make '/var' hostdependent
com-mkcdsl -a /var 
  1. Make '/var/lib' shared again
com-mkcdsl -s /var/lib
  1. Make '/etc/sysconfig/network' hostdependent
com-mkcdsl -a /etc/sysconfig/network

Create boot configuration

  1. Create the boot "filesystem" see createboot
  2. Create Shared Root initrd

Create the shared root initrd into the shared boot filesystem

/opt/atix/comoonics-bootimage/mkinitrd -f /boot/initrd_sr-$(uname -r).img $(uname -r)

Afterworks

For afterworks see afterworks.

Clean up

On installnode exist the chroot and

umount /mnt/newroot/cdsl.local

umount /mnt/newroot/dev

umount /mnt/newroot/proc

umount /mnt/newroot/sys

umount /mnt/newroot

Boot Cluster

Have Fun !!


Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: