strubbldesign |
09-15-2009 07:26 AM |
step 2
i've done the trick...
ive changed tftpd-hpa to atftpd and made changes like:
http://www.kerrighed.org/wiki/index....SROOT_(contrib)
all nodes get the correct ip nm gw and broadcastaddress
but i get the error while booting the nodes, that i they cant find the files
Quote:
PXE-T01: file not found
PXE-E3B-TFTP Error file not found
PXE-M0F exiting Intel boot agent
|
so here are my config files...
please help me...
/etc/default/atftpd
Quote:
USE_INETD=false
OPTIONS="--tftpd-timeout 300 --retry-timeout 5 --mcast-port 1758 --mcast-addr 239.239.239.0-255 --mcast-ttl 2 --maxthread 100 --daemon --verbose=5 path=/srv/tftp/"
|
is this correct to set default tftp dir to /srv/tftp ??
/srv/tftp/pxelinux.cfg/default:
Quote:
timeout 5
default vmlinuz-2.6.20-krg
label DebianCluster by Andi
kernel /vmlinuz-2.6.20-krg
append console=tty1 root=/dev/nfs nfsroot=10.60.66.120:/NFSROOT/kerrighed ro ip=dhcp pci=nommconf
|
/etc/default/dhcp3-server
Quote:
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp3-server by the maintainer scripts
#
# This is a POSIX shell fragment
#
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth0"
|
/etc/dhcp3/dhcpd.conf
Quote:
###Part1
#GRUB magic
option grub-menu code 150=string;
#general options
option dhcp-max-message-size 2048;
use-host-decl-names on;
deny unknown-clients;
deny bootp;
###Part2
option domain-name "mycluster.home";
option domain-name-servers 10.200.200.1;
option ntp-servers ntp.network.net;
###Part3
subnet 10.60.66.0 netmask 255.255.255.0 {
option routers 10.60.66.120;
option broadcast-address 10.60.66.255;
}
###Part4
group {
filename "pxelinux.0";
next-server 10.60.66.120;
option grub-menu = concat("(nd)/grub/", host-decl-name);
option dhcp-parameter-request-list = concat(option dhcp-parameter-request-list,96);
option root-path "10.60.66.120:/NFSROOT/kerrighed";
host ssi1 {fixed-address 10.60.66.121; hardware ethernet 00:09:6B:1D:B2:56;}
host ssi2 {fixed-address 10.60.66.122; hardware ethernet 00:21:86:ED:E9:6B;}
}
|
/etc/exports
Quote:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/NFSROOT/kerrighed *(ro,async,no_root_squash,no_subtree_check)
/NFSROOT/kerrighed/tmp *(rw,sync,no_root_squash,no_subtree_check)
/NFSROOT/kerrighed/var *(rw,sync,no_root_squash,no_subtree_check)
/NFSROOT/kerrighed/dev *(rw,sync,no_root_squash,no_subtree_check)
/NFSROOT/kerrighed/root *(rw,sync,no_root_squash,no_subtree_check)
|
/etc/fstab
Quote:
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda1 during installation
UUID=0287639f-863d-4b55-a158-6ae2ae9dcead / ext3 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=503f4ef1-d527-46fe-84ad-76761d03e06d none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
|
/etc/hosts
Quote:
127.0.0.1 localhost
10.60.66.120 server.mycluser.home server
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
|
/srv/tftp/grub/ssi1 (und 2)
Quote:
timeout 5
title Kerrighed Cluster by Andi
root (nd)
kernel /vmlinuz-2.6.20-krg root=/dev/nfs ip=dhcp nfsroot=10.60.66.120:/NFSROOT/kerrighed session_id=121
|
and from my chrooted environment the /etc/fstab
Quote:
# a swap partition
#/dev/sda none swap sw 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
none /var/run tmpfs defaults 0 0
#NFSROOT
10.60.66.120:/NFSROOT/kerrighed/dev /dev nfs rw,hard,nolock 0 0
10.60.66.120:/NFSROOT/kerrighed/var /var nfs rw,hard,nolock 0 0
10.60.66.120:/NFSROOT/kerrighed/tmp /tmp nfs rw,hard,nolock 0 0
10.60.66.120:/NFSROOT/kerrighed/root /root nfs rw,hard,nolock 0 0
10.60.66.120:/NFSROOT/kerrighed/etc /etc nfs rw,hard,nolock 0 0
#TMPFS
none /var/run tmpfs defaults 0 0
|
|