Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
My Gentoo diskless install howto
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
rogeroberholtzer
n00b
n00b


Joined: 07 Jan 2003
Posts: 43
Location: Stockholm, Sweden

PostPosted: Mon Nov 03, 2003 10:59 pm    Post subject: diskless '/' gets mounted read-only Reply with quote

I have done everything to set up a diskless client from the current 1.4 live cd. I have exported the directory containing the gentoo client is to use with rw permissions (as in the description at the top of this thread). However, when the diskless client boots, it claims / is mounted read-only. A local 'mount' lists it as 'rw'. And the server's /proc/fs/nfs/exports file lists it as 'rw' by my client.

So, why the read-only errors on writes?

I have a suspicion of the 'checkroot' file in the rc directory. There was no mention in the diskless info on doing anything with this file. But it does seem to be odd in that it complains about the nfs mounted / not being an ext2 file system. Well, of course it isn't. Why the complaint?

I am so close I can taste it.

Any pointers?
Back to top
View user's profile Send private message
rogeroberholtzer
n00b
n00b


Joined: 07 Jan 2003
Posts: 43
Location: Stockholm, Sweden

PostPosted: Tue Nov 18, 2003 12:38 pm    Post subject: NFS swap Reply with quote

I am trying to use swap via NFS. I seem to need it for a big compile. I only plan to use it as needed.

I made the swap file on the NFS server:

dd if=/dev/zero of=swp count=1000 bs=1M

Then, on the diskless client, I ran:

mkswap /full/path/to/swp

No complaint. 'file /full/path/to/swp' reports that it is a modern swap file. It has the proper permissions (0600) and belongs to root. However, when I run:

swapon /full/path/to/swp

I get the following error:

swapon: /full/path/to/swp: Invalid argument

The file exists. If I use some name that does not exist, I get an appropriate error.

The NFS mount is like this (listed by mount):

acme:/full/path on /full/path type nfs (rw,noatime,bg,soft,
rsize=8192,wsize=8192,addr=10.1.6.131)

The swap file is:

-rw------- 1 root root 1048576000 Nov 18 13:15 swp

Is there some NFS mount option I have overlooked?

(The diskless client is a VME-based PC to which adding additional RAM is not an option).
Back to top
View user's profile Send private message
patsonrt1
Tux's lil' helper
Tux's lil' helper


Joined: 21 Mar 2003
Posts: 104
Location: Somewhere in my head

PostPosted: Wed Nov 19, 2003 2:17 am    Post subject: Reply with quote

Just a guess Rogeroberholtzer, but did you add "no_root_squash" in the servers exports file?
_________________
"Well fine, go ahead and miss church, and when you die and go to hell you can answer to SATAN!"

"Ok"

-fortune
Back to top
View user's profile Send private message
darkjedi521
n00b
n00b


Joined: 04 Feb 2004
Posts: 1

PostPosted: Wed Feb 04, 2004 6:16 am    Post subject: Wierd NFS error Reply with quote

I have the system booting with the kernel on a floppy. I followed the howto almost exactly in setup (subsituted floppy for PXE/TFTP). The kernel boots fine and then gentoo starts booting. It gets to the point where it attempts to mount local filesystems, and then I get 5-6 screens worth of errors regarding /var/lib before being dumped at a login prompt. None of my other rc scripts run. /usr doesn't mount, and pam returns fatal errors after a username is entered. Setting console one in inittab to be /bin/bash instead of agetty let me poke at the running system. doing the following:
Code:
source /etc/profile
env-update
source /etc/profile
rc

ran the rest of the rc-scripts, but pam was still having fatal errors. If anyone knows where to poke at, it would be much appreciated. Thanks in advance.
Back to top
View user's profile Send private message
hms
n00b
n00b


Joined: 08 Feb 2004
Posts: 1

PostPosted: Sun Feb 08, 2004 12:32 pm    Post subject: Diskless xfree performance Reply with quote

I have succesfully managed to set up a diskless system but when I start xine I get stalls in the movie. I'm guessing this is because the xfree server is run over nfs. Is there any way to improve xfree´s performance for a diskless system.
I don't have a powerfull enough server to run X there and with my experience a network isn't fast enough to export a fullscreen movie in real time over a network either so this isn't an option.

I have the same system running on a local disk and there xine plays movies smothless. During the tests with the diskless system the actual movie-file being played is on a local disk. My network is a 100Mbit so it shouldn't be the bottleneck.

I read the post about NBD and wonder if that could help me get the performance needed to run xfree over nfs.

/Magnus
Back to top
View user's profile Send private message
GlennM
Tux's lil' helper
Tux's lil' helper


Joined: 11 Nov 2003
Posts: 94
Location: Wisconsin, USA

PostPosted: Thu Mar 11, 2004 11:13 pm    Post subject: Reply with quote

EDIT: Whoops, fixed it. Turns out you need to remove the local-only line from /etc/xinetd.conf. Doh!

I was wondering if someone could give me some help with TFTP...it seems that my test workstation can't get the kernel image. When the workstation starts, I get:
Code:
Searching for server (DHCP)...
..Me: 192.168.1.110, Server 192.168.1.2, Gateway 192.168.1.1
Loading 192.168.1.2:/lts/vmlinuz-2.4.24-ltsp-1......

That looks right, except that it sits there forever, with no network traffic.

I double-checked to make sure that the kernel is in /tftpboot/lts, and it is, and named correctly. The server and gateway are correct. I think I've got dhcp, xinet, and tftp configured correctly. The relevant files are as follows:

/etc/dhcp/dhcpd.conf:
Code:

# Some general options
default-lease-time            21600;
max-lease-time                21600;
use-host-decl-names           on;
ddns-update-style             ad-hoc;

# Bootp options
allow booting;
allow bootp;

# Network Options
option subnet-mask            255.255.255.0;
option broadcast-address      192.168.1.255;
option routers                192.168.1.1;
option domain-name-servers    192.168.1.2;
option log-servers            192.168.1.2;
option domain-name            "domain-removed.net";

# LTSP Path Options
option root-path              "192.168.1.2:/opt/ltsp/i386";
filename                      "/lts/vmlinuz-2.4.24-ltsp-1";

shared-network WORKSTATIONS {
  subnet 192.168.1.0 netmask 255.255.255.0 {
    # Distribute dynamic IPs to the workstations
    range dynamic-bootp 192.168.1.110 192.168.1.111;
    # Workstation specific configuration for PXE booting
    #host ws001 {
    #  hardware ethernet     00:E0:06:E8:00:84;
    #  fixed-address         192.168.0.1;
    #}
  }
}


/etc/xinetd.d/tftp:
Code:

service tftp
{
   disable = no
   socket_type = dgram
   protocol = udp
   wait = yes
   user = root
   server = /usr/sbin/in.tftpd
}


/etc/conf.d/in.tftpd:
Code:

# Config file for /etc/init.d/in.tftpd
# Remove the -l if you use [x]inetd

INTFTPD_PATH="/tftpboot"
INTFTPD_OPTS="${INTFTPD_PATH}"

I really don't have any more ideas. It just looks like tftpd isn't sending the kernel to the workstation. I've tried changing the "filename" line in dhcpd.conf to "/tftpboot/lts/vmlinuz-2.4.24-ltsp-1", but that doesn't fix the problem. Are there any other files I can adjust?
Back to top
View user's profile Send private message
akmolloy
n00b
n00b


Joined: 12 Jul 2003
Posts: 5

PostPosted: Sun Mar 21, 2004 4:21 am    Post subject: Converting an install to diskless? Reply with quote

I've currently got a mythfrontend machine that I've spent quite a bit of time configuring, and it works well. I want to convert the exisiting installation (settings, programs, etc.) to a diskless install.

I've got a server setup and running, and sucessfully booted into a small kernel.

Any tips on how to do this? Could it be as simple as copying over the directories on the exisiting machine to the master server, and then modifying a few files like fstab?
Back to top
View user's profile Send private message
Ben2040
Guru
Guru


Joined: 07 May 2003
Posts: 445
Location: UK

PostPosted: Fri Mar 26, 2004 5:44 pm    Post subject: Reply with quote

Hi

When compiling the grub image, both 0.93 and 0.92 fail with the following. I have tried without CFLAGS too....
Code:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1  -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef -Os -fno-builtin -nostdinc -I../netboot -DSUPPORT_NETBOOT=1 -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -DFSYS_TFTP=1 -g -c -o pre_stage2_exec-fsys_reiserfs.o `test -f fsys_reiserfs.c || echo './'`fsys_reiserfs.c
cc1: warning: -malign-loops is obsolete, use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps
cc1: warning: -malign-functions is obsolete, use -falign-functions
fsys_reiserfs.c:115: error: long, short, signed or unsigned used invalidly for `j_mount_id'
fsys_reiserfs.c: In function `next_key':
fsys_reiserfs.c:761: warning: operation on `depth' may be undefined
make[2]: *** [pre_stage2_exec-fsys_reiserfs.o] Error 1
make[2]: Leaving directory `/usr/portage/distfiles/grub-0.92/stage2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/portage/distfiles/grub-0.92'
make: *** [all] Error 2


Also note that I have done this before on a 32bit Athlon, and it worked fine, now I'm in [32 bit mode] gentoo on a 64 bit Athlon 64, if that makes a difference.

Ben

[EDIT]
Just adding that I'm configuring with:
Code:

./configure --enable-diskless --enable-rtl8139 --enable-3c90x
Back to top
View user's profile Send private message
hygge
n00b
n00b


Joined: 07 Jan 2003
Posts: 66
Location: Sweden

PostPosted: Mon Apr 12, 2004 11:57 am    Post subject: Reply with quote

thx for the great guide!

what do you think of adding options to the client's /etc/fstab?
maybe nfsvers=3,hard,rsize=8192 and wsize=8192?
will this speed something up or is it just uneccesary?
Back to top
View user's profile Send private message
markedmann
n00b
n00b


Joined: 09 Feb 2004
Posts: 18

PostPosted: Wed Apr 14, 2004 3:19 pm    Post subject: Reply with quote

Hey all:
I'm having a lot of trouble with configuring dhcpd.conf... Could someone please post a (working) sample for me to follow? I've used the one in the howto, but it appears to be simply a snippet.
Thanks in advance,
-Mark
Back to top
View user's profile Send private message
tiny
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2003
Posts: 102
Location: Slovenia

PostPosted: Thu Apr 22, 2004 11:37 am    Post subject: Reply with quote

This worked for me.

Code:

option option-150 code 150 = text ;
ddns-update-style ad-hoc;
subnet 192.168.254.0 netmask 255.255.255.0 { }
group {
        host nova {
        hardware ethernet 00:08:9b:1e:69:7a;
        fixed-address 192.168.254.57;
        option option-150 "/nova/boot/grub.lst";
        filename "/nova/boot/pxegrub";
        }
}
Back to top
View user's profile Send private message
Donpasquale
Apprentice
Apprentice


Joined: 03 Jan 2003
Posts: 150
Location: Munich

PostPosted: Tue May 11, 2004 2:29 pm    Post subject: Reply with quote

Hi.

fisrt of all: thanks for the great howto.

But i still got some problems with that. If i boot up my client it all works fine till the point where the kernel wants to start the init it just stops and stays there doing nothing. If i mount the nfs share in another pc which runs from hd it does it in not even a sec.

I tried every option in the kernel i think. Please help me fix that problem. Im going crazy bout this :)

Here is my config:

dhcpd.conf:
Code:
host eta {
        hardware ethernet ::::;
        fixed-address 192.168.0.160;
        option option-150 "/eta/grub.lst";
        filename "/eta/boot/pxegrub";
}


and my grub.lst:
Code:
default 0
timeout 30

title=Gentoo Networkboot
root (nd)
kernel /eta/bzImage ip=dhcp root=/dev/nfs nfsroot=192.168.0.211:/raid/diskless/eta



Hopefully someone can help me. It will be an installation server to do automated gentoo installations as i finish it.



Thx

Donpasquale
Back to top
View user's profile Send private message
dmitrio
Tux's lil' helper
Tux's lil' helper


Joined: 10 Dec 2002
Posts: 115
Location: Pago Pago

PostPosted: Tue Jun 29, 2004 11:30 pm    Post subject: :. copied to gentoo-wiki.com Reply with quote

I have copied this HOWTO, with permission of Alexandre "Swiss.Mage" Georges, to gentoo-wiki.com
http://gentoo-wiki.com/HOWTO_Gentoo_Diskless_Install
If you see anything that should be added or changed, feel free to do so.

Thank you for a great HOWTO.
_________________

... Leaving ground, destination is unknown,
into the darkness and far away from home,
Will your dream come true and what will you find,
when fate is your guide ...
Back to top
View user's profile Send private message
lschiere
n00b
n00b


Joined: 17 Aug 2004
Posts: 1

PostPosted: Tue Aug 17, 2004 4:08 pm    Post subject: server and clients of different types Reply with quote

Can anyone give me any pointers on how this diskless howto would need to be modified to be able to pxe boot (for instance) amd64 clients with an x86 server?
Back to top
View user's profile Send private message
someguy
Guru
Guru


Joined: 10 Jul 2003
Posts: 433
Location: (-_-) .::OH_WELL::. (-_-)

PostPosted: Wed Aug 18, 2004 11:17 am    Post subject: Reply with quote

Aug 18 06:22:06 horus dhcpd: DHCPDISCOVER from 00:e0:c5:68:22:a7 via eth0
Aug 18 06:22:06 horus dhcpd: DHCPOFFER on 192.168.2.15 to 00:e0:c5:68:22:a7 via eth0
Aug 18 06:22:08 horus dhcpd: Dynamic and static leases present for 192.168.2.15.
Aug 18 06:22:08 horus dhcpd: Remove host declaration ibis or remove 192.168.2.15
Aug 18 06:22:08 horus dhcpd: from the dynamic address pool for 192.168.2.0/24
Aug 18 06:22:08 horus dhcpd: DHCPREQUEST for 192.168.2.15 (192.168.2.4) from 00:e0:c5:68:22:a7 via eth0
Aug 18 06:22:08 horus dhcpd: DHCPACK on 192.168.2.15 to 00:e0:c5:68:22:a7 via eth0
Aug 18 06:22:08 horus in.tftpd[16988]: RRQ from 192.168.2.15 filename /mnt/diskless/ibis/boot/pxegrub
Aug 18 06:22:08 horus in.tftpd[16988]: sending NAK (1, File not found) to 192.168.2.15
Aug 18 06:22:08 horus in.tftpd[16989]: RRQ from 192.168.2.15 filename /mnt/diskless/ibis/boot/pxegrub
Aug 18 06:22:08 horus in.tftpd[16989]: sending NAK (1, File not found) to 192.168.2.15

im getting this too any help would be mucho appreciado
_________________
print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<>
)]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`
while [ 1 ] ; do echo "*" | telnet ip.of.print.er 9100 ; done
Back to top
View user's profile Send private message
Skywacker
n00b
n00b


Joined: 23 Jan 2004
Posts: 72
Location: Missouri

PostPosted: Wed Sep 22, 2004 10:03 pm    Post subject: Reply with quote

the ftp program is getting "File not found" for filename /mnt/diskless/ibis/boot/pxegrub

look in /etc/conf.d/in.tfpd for your initial ftp directory. chances are your pxegrub file and kernel are not located in /diskless/mnt/diskless/ibis....

basically you need to edit your grub.lst until you have the correct location for your kernel, etc

I had to change my kernel to be -/b8/boot/kernel-3.2.6-gentoo-r8 because of my installation scripts.
Back to top
View user's profile Send private message
corn
n00b
n00b


Joined: 19 Apr 2002
Posts: 15
Location: Vancouver BC

PostPosted: Sat Sep 25, 2004 4:30 pm    Post subject: Reply with quote

It wasnt mentioned here but the init scripts seem to look for a variable called CDBOOT by setting this in /etc/rc.conf the startup scripts will skip stuff like fsck etc... Im not sure what it should be set to but all the scripts just check if it has a length.

I was wondering about shared resources such as a sysklogd. I heve them turned off right now. I was curious because I will be running 10-20 machines off my server.
Back to top
View user's profile Send private message
Skywacker
n00b
n00b


Joined: 23 Jan 2004
Posts: 72
Location: Missouri

PostPosted: Mon Sep 27, 2004 2:46 pm    Post subject: Reply with quote

I built 1 diskless node thanks to these instructions, but I'm wondering the best way to roll this out to my other 30+ machines. I tried just copying /diskless/b8 to/diskless/b9 and modifying fstab, hostname, and a couple other files. This gives me a booting, mostly working Gentoo system with one catch: I can't lamboot (lam-mpi) my cluster if I include b9.

b2 is my master
b8 is my first working diskless node
b9 is ia copy of the b8 dir with a few config files changed.

I can lamboot b2 and b8, but not b9.

Any ideas?

All other applications seem to work: ganglia, nfs, ntp, ldap authentication.

Thanks,
Skywacker
Back to top
View user's profile Send private message
riksta
n00b
n00b


Joined: 16 Apr 2004
Posts: 73
Location: Manchester, UK

PostPosted: Sat Oct 02, 2004 4:28 am    Post subject: Reply with quote

just a quick tip to consolidate the howto commands a little

# mkdir /diskless
# mkdir /diskless/eta
# mkdir /diskless/eta/boot

can all be done with

# mkdir -p /diskless/eta/boot

:)
Back to top
View user's profile Send private message
Skywacker
n00b
n00b


Joined: 23 Jan 2004
Posts: 72
Location: Missouri

PostPosted: Wed Nov 10, 2004 10:57 pm    Post subject: Reply with quote

No offense to this thread as it was very helpful, but once I had a working 8 node diskless cluster I ran a comparison test versus a diskfull 8 node cluster and the diskless cluster was about 400% slower. They were not identical clusters, and the master node on the diskfull cluster was faster, but I ended up reverting back to a diskfull cluster. Just something to think about if anyone out there is in the planning stage still.

-Skywacker
Back to top
View user's profile Send private message
kakakoka
Tux's lil' helper
Tux's lil' helper


Joined: 14 May 2003
Posts: 147
Location: Denmark

PostPosted: Sat Nov 13, 2004 4:20 pm    Post subject: Reply with quote

The dhcpd server i am using (the freebsd dhcpd server on my lan) wont start with this:

option option-150 code 150 = text ;

In the header of the dhcpd.conf.

Whats could I be doing wrong?
_________________
Aspiring to once become a great geek
---
"Tachikoma": AMD TB 1300 Mhz, ECS-K7S5A (SIS 735), (noname) RADEON 8500, Hercules Gametheater XP, Pinnacle PCTV pro
"Pyonpyon": Athlon 2500+ Barton, MSI K7N2-delta-ISLR (Nforce2), Sapphire Radeon 9600 Pro
Back to top
View user's profile Send private message
rkrenzis
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 135
Location: USA

PostPosted: Fri Nov 19, 2004 8:26 pm    Post subject: /etc/dhcpd.conf fix Reply with quote

option option-150 code 150 = text ;

Remove the space between the word "text" and the ";" symbol.

option option-150 code 150 = text;
Back to top
View user's profile Send private message
rkrenzis
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 135
Location: USA

PostPosted: Fri Nov 19, 2004 8:27 pm    Post subject: Can't resolve as non-root user... Reply with quote

Everything works with the nfs-boot. emerge sync and adding packages is a breeze. *BUT* when I'm a regular user (non-root or uid 0), I can't resolve hostnames. Any thoughts?

TIA.
Back to top
View user's profile Send private message
kakakoka
Tux's lil' helper
Tux's lil' helper


Joined: 14 May 2003
Posts: 147
Location: Denmark

PostPosted: Tue Nov 23, 2004 1:23 pm    Post subject: Reply with quote

Removing the space seems to make no difference.

Code:
 /usr/sbin/dhcpd xl0
Internet Software Consortium DHCP Server 2.0pl5-OpenBSD
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.

Please contribute if you find this software useful.
For info, please visit http://www.isc.org/dhcp-contrib.html

/etc/dhcpd.conf line 19: expecting string or hexadecimal data.
option option-150 code
       ^
Configuration file errors encountered -- exiting
exiting.

_________________
Aspiring to once become a great geek
---
"Tachikoma": AMD TB 1300 Mhz, ECS-K7S5A (SIS 735), (noname) RADEON 8500, Hercules Gametheater XP, Pinnacle PCTV pro
"Pyonpyon": Athlon 2500+ Barton, MSI K7N2-delta-ISLR (Nforce2), Sapphire Radeon 9600 Pro
Back to top
View user's profile Send private message
dsf
n00b
n00b


Joined: 16 Nov 2004
Posts: 21

PostPosted: Sat Mar 05, 2005 8:30 pm    Post subject: Reply with quote

I've updated the wiki for the HOWTO by simplifying several manual steps because of an improvement in the grub ebuild.

Code:
As of grub 0.94-r1 (and later), it now builds pxegrub properly. It enables diskless booting, and compiles in all supported GRUB network drivers.

# cp /usr/lib/grub/pxegrub /diskless/eta/boot/pxegrub
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 4 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum