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 boot configuration
- Create the boot "filesystem" see createboot
- 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 !!