knoppix 2or
expert 2if you have problems with the hardware.
/etc/init.d/openmosixcollector stop
cfdisk /dev/hdaFor example:
Partition | Mount Point | Size |
---|---|---|
/dev/hda1 |
/ |
(rest) |
/dev/hda2 |
swap |
1 x size of RAM |
/dev/hda3 |
/nodes |
10Gb |
(others) | ... | ... |
fdisk -lu /dev/hda
mkfs_ext3 /dev/hda1 mkswap /dev/hda2 mkfs_ext3 /dev/hda3 ...or use
mkfs_reiserfs
.mount /mnt/hda3 cp -va /KNOPPIX/* /mnt/hda3
init 5to get into the graphic environment
knoppix-installer
commandknoppix-installer
, configure the installation process:
/dev/hda1
ext3
or reiserfs
config.txt
' and exit of knoppix-installer
config.txt
' file. For example
joe config.txtand make these changes
reiserfs
partitions, check this line exist:
BOOT_LOADER="lilo"
HD_FORMAT="no" SWAP_AUTODETECT="no" SWAP_CHOICES="/dev/hda2" SERVICES="kdm ssh samba" BOOT_DISK="no"
knoppix-installer
config.txt
'mount /mnt/hda1 cd /mnt/hda1
mkdir mfs
joe etc/fstaband add these lines
/dev/hda1 / ext3 defaults 0 0 /dev/hda2 swap swap defaults 0 0 /dev/hda3 /nodes ext3 defaults 0 0Change
ext3
for reiserfs
if you format the partitions with this filesystem.mfs /mfs mfs dfsa=1 0 0Check other partitions and filesystem (cdrom, cdwriters, etc), save the file and exit of the editor
mkdir nodesMake other mount points if you like.
joe /etc/default/openmosixEdit the lines
AUTODISC=1 AUTODISCIF=eth0 # The ether of you local network MFS=yes # If you will use mfsSave and exit
joe /etc/network/interfaces joe /etc/resolv.conf joe /etc/hosts
showmapnow you have a cluster.
joe /etc/init.d/knoppix-terminalopenmosixserverMake these changes
/cdrom
to $CDROM_STATIC
cloop
to cloop*
/^\/dev\/[hs]d[a-z]/
/etc/init.d/ssh restart
mount /cdrom
knoppix-terminalopenmosixserver setupConfigure
/etc/fstab
to search partitions./nodes
mount point./nodes
and a symbolic link /diskless
to /nodes/knoppix-cdrom
/nodes
partition.cd /usr/share/knoppix-terminalopenmosixserver/templates/miniroot/ cp linuxrc linuxrc.old joe linuxrcand make these changes:
rm -rf
line. Below it, insert
/etc/default/openmosix \
if
line insert
cp -a /KNOPPIX/etc/default/openmosix /etc/default cat <<EOF >> /etc/default/openmosix AUTODISC=1 AUTODISCIF=eth0 MFS=yes EOF
/etc/init.d/knoppix-terminalopenmosixserver stop /etc/init.d/knoppix-terminalopenmosixserver startto test the new configuration. Restart the nodes.
linuxrc
file at 3.d step, restore it to the old version
cd /usr/share/knoppix-terminalopenmosixserver/templates/miniroot/ cp linuxrc.old linuxrc
joe /etc/init.d/knoppix-terminalopenmosixserverand make this change
ln -s
line. Comment it and append this below
ln -sf /nodes /diskless
joe /usr/share/knoppix-terminalopenmosixserver/templates/miniroot/linuxrcand make these changes
"${NFSDIR}" /cdrom > /dev/null 2>&1
line and change /cdrom
to /KNOPPIX
FOUND_KNOPPIX=""
line. Make these changes
FOUND_KNOPPIX="" #if test -f /cdrom/KNOPPIX/KNOPPIX #then echo -n "${CRE} ${GREEN}Accessing KNOPPIX CDROM image at ${MAGENTA}$NFSDIR${GREEN}...${NORMAL}" FOUND_KNOPPIX="true" #else #dropshell #fi
$INSMOD /modules/cloop*.o
line and comment this and the next lines./etc/init.d/knoppix-terminalopenmosixserver stop /etc/init.d/knoppix-terminalopenmosixserver start
/usr/bin/cpujob
, line 36, from
/extra/clusterknoppix/kernel/20040827/tools/openmosix-tools-0.3.6-2/debian/openmosix/bin/mosrunto
/usr/bin