LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   debian cluster (https://www.linuxquestions.org/questions/linux-newbie-8/debian-cluster-755089/)

strubbldesign 09-14-2009 09:53 AM

debian cluster
 
hi everyone!!

i've tried to build a cluster:

i use 3 IPB lenovo ThinkCentre (4GB Ram, Intelcore DUO, 160GB HD, Intel Ethernetcard with PXE)

on one ive installed debian
and made the guide from http://www.in2dwok.com/indawok/?page_id=16

everything worked fine but the only 2 lines i wasnt able to do were
Code:

make patch
make defconfig

maybe this has something to do with this...

i tried to boot up the nodes but get only something like this
Quote:

GNU GRUB 0.97...

Address 10.60.66.121
Netmask 0.0.0.0
Server 10.60.660.121
Gateway 0.0.0.0

Minimal bashlike....

grub>
address and server are correct but netmask and gateway are incorrect...

ive done everything like the howto told me but i replaced the address (192.168.0.1 with 10.60.66.120; and 192.168.0.101 with 10.60.66.121)
as a nameserver i use the one of the local school 10.200.200.1)

thanks for any help

Mara 09-14-2009 03:00 PM

There's probably something wring with the dhcpd configuration (when editing /etc/dhcp3/dhcpd.conf).

My suggestion for part3:
Code:

subnet 10.60.66.0 netmask 255.255.255.0 {
option routers 10.60.66.120;
option broadcast-address 10.60.66.255;
}

Note that if you use netmask 255.0.0.0 then subnet and broadcast in the section above will be different (10.0.0.0 and 10.255.255.255, respectively).

strubbldesign 09-14-2009 05:57 PM

Well i know About your suggestion meaning of subnetmasking.
Still want to use a c-Class Network (don't own so many noses) ;D

apretiate help

strubbldesign 09-15-2009 03:20 AM

well ive doublechecked the config files

rebooted the system and still get no gateway and netmask

pxegrub is also not loading
I just get a minimal bash

when i try to enter
grub> root (nd)

i get filesystemtype is tftp, using the hole disk
to boot the kernel i tried to
grub> kernel /vmlinuz-2.6.20-krg

UNDI API call 0x0025 failed with status 0x0001
and more lines like this one...

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


All times are GMT -5. The time now is 11:40 PM.