[Copyright] [Authors] [Preamble] [Change Logs] [Requirements] [Installation] [Acknowledgement] [Misc] [Reference]
Updated Mar/27/2004
This copyright is preserved for the author and publisher. Everyone is permitted to copy and distribute verbatim copies of this document under the terms of the GNU FDL Free Documentation License. If you do make any distribution and modification on the documents, please add your name in the author list.
We recommend this document principally for works whose purpose is instruction or reference. The author and publisher will not take any responsibility if there is any damage caused by this document.
Steven Shiau (steven@nchc.gov.tw)
Blake, Kuo-Lien Huang (c00hkl00@nchc.gov.tw)
H. T. Wang (c00wht00@nchc.gov.tw)
Translator List for English VersionAnthony Lu (anthony@copyall.com)
Steven Shiau (steven@nchc.gov.tw)
David Lin (david@copyall.com)
This documentation shows some steps for newbies to setup a "DRBL" environment in Redhat/Mandrake Linux.
Install Redhat Linux or Mandrake Linux, take RedHat 9 as an example, there are lots of information related to the installation process in http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/install-guide/. Meanwhile, Set up all Ethernet IPs at first and we will us the eth0 for WAN and others for LAN. In the following example, we use "eth0" to connect the Internet, while eth1, eth2, eth3 are for DRBL environment(Please set the IP address of these network cards to be private IPs, i.e. 192.168.x.x, the following example, we set eth1:192.168.101.254, eth2:192.168.102.254, eth3:192.168.103.254...); Please remember this principle, private IP (192.168.x.x) will be used for DRBL environment. We will also suggest the user to close the firewall before installing the DRBL server.
After the Linux is
installed in server, make sure the Hard Disk Drive DMA mode is
on, it will accelerate the access speed of Hard Disk Drive in server.
You can use "hdparm /dev/hdx" to check if the using DMA is on or off.
If it¡¦s off, run "hdparm -d1 -c3 -k1 /dev/hdx" to open it,
replace the /dev/hdx to the /dev/hda if your IDE HD for this Linux
system is in "Primary IDE".
Make sure there is no problem with the WAN, because we need to use it to connect with NCHC DRBL Server to get the files for the following installation process.
<Step 2a> Download the package here:
http://opensource.nchc.org.tw/diskless/redhat/desktop/download/drbl-desktop-current.tgz
<Step 2b> "tar xvzf drbl-desktop-current.tgz¡¨ (extract the files)
<Step 2c> ¡§cd drbl-desktop-YEARMODY¡¨, please use "ls -al" to see the name of extracted
directory, such as "drbl-desktop-20030728". Once you know that, say,
the name is drbl-desktop-20030728, then change the directory to
drbl-desktop-20030728 by run "cd drbl-desktop-20030728".
Install and set up the DHCP of Server, TFTP-Server, NFS, NIS and get the required software
<Step 2d> run "su root" and then input the password for root to become a root.
<Step 2e> change the directory to drbl-desktop-20030728 and , for RedHat Linux, run "./drblsrv_desktop.sh -i ", for Mandrake Linux, run "./drblsrv-mdk.sh -i"
an example is shown here
Arrange
your environment, make sure you know it.
For example in Room C of
National
Center of High Performance Computing (NCHC): There are 40
units of computers in Room C. In order to get the better efficience in
DRBL, we separate them to 4 subnets, so they are 192.168.100.0,
192.168.101.0, 192.168.102.0 and 192.168.103.0. There are 4 Ethernet
cards in DRBL
server. One is for WAN and the others are for LAN. The IPs of DRBL
environment (LAN) are
192.168.100.254, 192.168.101.254, 192.168.102.254 and 192.168.3.254.
The services DHCP, TFTP, NFS, etc will run on eth0:1, eth1, eth2, and
eth3.
NIC NIC IP Clients
+-----------------------------+
| DRBL SERVER |
| |
| +-- [eth0] public IP +- to WAN
| (ex. 61.216.116.23) |
| |
| +-- [eth0:1] 192.168.100.254 +- to clients group 1 [ 10 clients, their IP
| | from 192.168.100.1 - 192.168.100.10]
| +-- [eth1] 192.168.101.254 +- to clients group 1 [ 10 clients, their IP
| | from 192.168.101.1 - 192.168.101.10]
| +-- [eth2] 192.168.102.254 +- to clients group 2 [ 10 clients, their IP
| | from 192.168.102.1 - 192.168.102.10]
| +-- [eth3] 192.168.103.254 +- to clients group 3 [ 10 clients, their IP
| | from 192.168.103.1 - 192.168.103.10]
+-----------------------------+
When
you use multiple NICs to expand the bandwith, we DO recommend you set
the MAC addresses so that every node will get the same IP address all
the time. (i.e. in the fillowing step 3a, when you run
"./drblcli_desktop.pl
-i", it prompts "Do you want to fix the IP address of client connected
to eth1
by giving MAC address ? [y/N]", say "Y"). If you do NOT set MAC address
(we will call it "range" from now), and you have only one 48-port
network switch (or many switches but connected to be one), and you use
4
NICs (or more than 2...) in DRBL
server to expand the network bandwith, 1 problem will occur, i.e. some
clients will not lease IP from DHCP server, so it will not be able to
boot. To get the MAC
addresses of clients, you could use the program "drblcli_desktop.pl" to
collect them. Basically, just run "./drblcli_desktop.pl -m", then
following the prompt to do it. The example is here.
On the other hand, if your DRBL server use 4 NICs to expand the network
bandwidth (This means that 4 NICs with 4 private
subnets, such as 192.168.100.x, 192.168,101,x, 192.168.102.x,
192.168.103.x), and you have exactly 4 switches, which is seperated,
not connected to each other. Then you can use range, i.e. you do not
have to set the MAC address of clients.
Please remember, if you use N NICs to expand network bandwidth in DRBL
server, if you want to use "range" way, then you must have N switches,
which are not connected to each other. ("not
connected" is very important)
- The authors would like to thank NCHC Director Chuang for his support in Free and Open Source Software. Special thanks also go to Dr. San Ko, and NCHC Opensource task force. The authors also would like to thank Prof. Mao, Mr. Yu and the Ministry of Education, Taiwan for the supports of multi-disciplinary education.
- If you feel this DRBL is really helpful to you, please email us. We will appreciate if you tell us the way you use. If you find some bugs, please let us know.
- http;//drbl.nchc.org.tw
- http://drbl.sf.net
- http://opensource.nchc.org.tw
- 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
- NIS HOWTO
- NFS HOWTO
- Etherboot User Manual
- http://disklessworkstations.com/
- How to pick a bootrom
- DIET-PC