NCHC Opensource task force DRBL c00hkl00@nchc.gov.tw, steven@nchc.gov.tw National Center for High-Performance Computing http://www.nchc.gov.tw Dec, 2002 1
Outline 1. 2. DRBL 3. 4. Service DHCP, TFTP, NFS, NIS 5. 2
, Live Linux Filesystem on CD,, file server NIS server NCHC Taiwanese Live Linux Filesystem on CD, based on KNOPPIX (www.knopper.net) 400MB 3
( ) LTSP (Linux Terminal Server Project) Client Server DRBL (Diskless Remote Boot in Linux) Client Server -> DRBL + Live Linux CD 4
LTSP vs DRBL LTSP, DRBL - vs. 5
6
89 1,229,276 7
DRBL DRBL (diskless remote boot in Linux) etherboot + nfs + nis 1. PC (client machine) 2. server client 40 40 DRBL 8
DRBL( ) 3. 4. Server LTSP (Linux terminal server project) server server DRBL server LTSP server 5. 6. server server 9
DRBL server NIC 1 NIC 2 NIC 3 NIC 4 switch 1 switch 2...... node001 node020 node021 node040 10
: CPU 450MHz 256 MB fast ethernet ( ) 20GBytes. : CPU 300 Mhz 128 MB fast ethernet bootrom : fast ethernet switch, port client machine 40 client machines 2 24 ports switch 3 16 ports switch 11
server client node001... client node040 DHCP IP etherboot 192.168.0.1 etherboot 192.168.0.40 TFTP kernel boot boot NFS file system /, /usr, /home... /, /usr, /home... NIS account user login user login 12
Service DHCP, TFTP, NFS, NIS 1.DHCP server (Dynamic Host Configuration Protocol Server) - For distributing IP for every client - /etc/dhcpd.conf looks like: default-lease-time 21600; max-lease-time 21600; use-host-decl-names on; option subnet-mask 255.255.255.0; subnet 192.168.0.0 netmask 255.255.255.0 { option broadcast-address 192.168.0.255; option routers 192.168.0.254; option domain-name-servers 192.168.0.254; host node001 { hardware ethernet 00:50:BA:65:C0:58; fixed-address 192.168.0.1; filename "vmlinuz.etherboot.viarhine"; }... } 13
Service( ) 2. TFTP server (Trivial File Transfer Protocol server) - For distributing kernel - /etc/xinetd.d/tftp looks like: service tftp { } socket_type protocol wait user server server_args disable per_source = 11 cps = 100 2 = dgram = udp = yes = root = /usr/sbin/in.tftpd = -s /tftpboot = no 14
Service( ) 3. NFS server (Network File Sharing protocol server) - For mounting file system - /etc/exports looks like: /tftpboot/node001 192.168.0.1(rw,no_root_squash) /usr 192.168.0.1(ro,no_root_squash) /opt 192.168.0.1(ro,no_root_squash) /home 192.168.0.1(rw,no_root_squash) /tftpboot/node002 192.168.0.2(rw,no_root_squash) /usr 192.168.0.2(ro,no_root_squash) /opt 192.168.0.2(ro,no_root_squash) /home 192.168.0.2(rw,no_root_squash)... 15
Service( ) 4. NIS server (Network Information Service server) - For account authentization - /var/yp/securenets looks like: # allow connections from local host -- necessary host 127.0.0.1 # same as 255.255.255.255 127.0.0.1 # # allow connections from any host # on the 192.168.0.0 network 255.255.255.0 192.168.0.0... 16
http://opensource.nchc.gov.tw/diskless 1. server service dhcp server tftp server nfs server nis server (ypserv) 2. client machine remote boot kernel kernel etherboot bzimage mknbi-linux Tag 17
( ) 3. server client /tftpboot ( node001 ),, dev, etc, lib, bin, sbin /tftpboot/node001 server NFS client,, client client /dev devfs, /tmp tmpfs server node ip redhat 7.3 client server 40MB 4.NCHC shell script client 18
1.NCHC Server Celeron 450MHz, 512MB ram, fast ethernet, Client:40 PC (PIII 550MHz, 256 MB Ram) 2.,, Server 1 GHz, 1 GB ram, gigabits ethernet, Client:40 PC ( 350 MHz, 96-128 MB Ram) 3. Server 600 MHz, 1 GB ram, fast ethernet, Client:40 PC (750 MHz, 128 MB Ram) 4. Redhat & Debian Debian, Redhat script 19
http://opensource.nchc.gov.tw/diskless http://www.study-area.org/ http://etherboot.sourceforge.org/ http://www.rom-o-matic.net/ http://www.ltsp.org/ Diskless HOWTO Diskless-nfs-root HOWTO Diskless-nfs-root-other HOWTO Network-boot-HOWTO NFS HOWTO NIS HOWTO 20