From: David J. <da...@jo...> - 2005-03-07 17:55:31
|
On Mon, 2005-03-07 at 06:51, Ken Yap wrote: > >Has anybody successfully hosted a LTSP server on a AMD64 running Linux? > >If so how did you do it? > > It turns out to be more gnarly than I thought, there is some problem > with the NFS exchange after the pivot root, and I don't understand what > is going on, but in case somebody understands. Hmm, that fragmentation > doesn't look good. I should try lowering rsize and wsize. I remember a discussion about rsize and wsize on the list a few months ago. If I remember correctly, if your switch starts fragmenting your NFS packets, you have to modify the initrd in /tftpboot/lts/ so that it uses a smaller rsize and wsize. You need to modify the 'mount' command which is at line 204 (I think). It uses the default rsize, which used to be 4096 but is now 8192 and may be too big for your switch. Try replacing it with this: mount -n -o nolock,ro,rsize=1024,wsize=1024 ${NFS_IP}:${NFS_DIR} /mnt Does that help things? -------- APPENDIX -------- ## HOW TO MODIFY AN INITRD (ignore this if you already know) cp /tftpboot/lts/2.4.26-ltsp-2/initrd-2.4.26-ltsp-2.gz /tmp/foo.gz cp /tftpboot/lts/2.4.26-ltsp-2/initrd-2.4.26-ltsp-2.gz \ /tftpboot/lts/2.4.26-ltsp-2/initrd-2.4.26-ltsp-2.gz~backup gunzip /tmp/foo.gz mount -o loop /tmp/foo /mnt/cdrom mv /mnt/cdrom/linuxrc /tmp/linuxrc #ALL ONE LINE UNTIL NEXT COMMENT cat /tmp/linuxrc | sed -e "s/mount -n -o nolock,ro /mount -n -o nolock,ro,rsize=1024,wsize=1024 /" > /mnt/cdrom/linuxrc #THAT WAS ALL ONE LINE umount /mnt/cdrom gzip -9 /tmp/foo mv /tmp/foo.gz /tftpboot/lts/2.4.26-ltsp-2/initrd-2.4.26-ltsp-2.gz -- David Johnston <da...@jo...> |