NCHC Opensource task force DRBL steven@nchc.gov.tw, c00hkl00@nchc.gov.tw National Center for High-Performance Computing http://www.nchc.gov.tw Jan, 2003 1
2003/1/28 ( ) 09:00-10:30 10:40-12:00 Linux 13:00-14:30 DRBL ( ) 14:40-16:30 DRBL ( ) 2003/1/29 ( ) 09:00-10:30 Linux/DRBL ( ) 10:40-12:00 Linux/DRBL ( ) 13:00-14:30 Linux/DRBL ( ) 14:40-16:30 Linux/DRBL ( ) 2
Outline 1. 2. 3. DRBL 4. DRBL 5. DRBL 6. 3
, Live Linux Filesystem on CD,, file server NIS server 4
( ) LTSP (Linux Terminal Server Project) Client Server DRBL (Diskless Remote Boot in Linux) Client Server -> DRBL + Live Linux CD 5
LTSP vs DRBL LTSP, DRBL - vs. 6
7
89 1,229,276 8
DRBL DRBL (diskless remote boot in Linux) etherboot + nfs + nis 1. PC (client machine) 2. server client 40 40 DRBL 9
DRBL( ) 3. 4. Server LTSP (Linux terminal server project) server server DRBL server LTSP server 5. 6. server server 7. 10
DRBL public ip NIC 2 NIC 1 server NIC 3 NIC 4 private ip private ip private ip switch 1 switch 2 switch 3 node001 node013 node014 node027 node028 node040 ~ ~ ~ 11
: 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 12
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 13
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"; }... } 14
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 15
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)... 16
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... 17
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 18
( ) 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 19
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 20
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 21