User:Asc: Difference between revisions

From FAIWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 58: Line 58:


FAICONFIG=/srv/fai/config/files
FAICONFIG=/srv/fai/config/files
PATH=$1
PATHVAR=$1
CLASS=$2
CLASS=$2


[ $2 ] || CLASS=DHCPSERVER
[ $2 ] || CLASS=DHCPSERVER


mkdir -p $FAICONFIG$PATH
mkdir -p $FAICONFIG$PATHVAR


cp $PATH $FAICONFIG$PATH/$CLASS
cp $PATHVAR $FAICONFIG$PATHVAR/$CLASS


</pre>
</pre>


----
----

Revision as of 19:21, 11 May 2009

Hello,

I am Andreas.


These are some ideas if you think they need a other location feel free to move. But leave a short message that I can remove it here.


I have found a intresting thing for using RAID with setup storage.

Also a RAID 1 with one drive is allowed with setupstorage.

disk_config disk1 bootable:1

primary  -              50     -        -
logical  -              800    -        -
logical  -              3000-  -        -

disk_config raid
raid1        /boot   disk1.1            ext2        rw,errors=remount-ro
raid1        swap    disk1.5            swap        sw
raid1        /       disk1.6            ext3        rw

After installation you can expand it with:

mdadm --grow -n 2 

to a real raid. Then you must rebuild it like one disk has failed.


This use of softupdate may be used if you install from fai-cd and your space is limit. After installing a base host you can softupdate from a fai server. Also for some other cases this may be a good solution.

class/51-host-add-softupdate-classes

#! /bin/bash
# set -xv
# For debugging add classes in /var/lib/fai/FAI_CLASSES

if [ "$action" = "softupdate" ] ; then
  (ifclass DEMO) || echo "DEMO"
fi

exit 0

Mini Helper:


#!/bin/bash
#
# Pfad change for FAI config space  

FAICONFIG=/srv/fai/config/files
PATHVAR=$1
CLASS=$2

[ $2 ] || CLASS=DHCPSERVER

mkdir -p $FAICONFIG$PATHVAR

cp $PATHVAR $FAICONFIG$PATHVAR/$CLASS