IceWalkers.com - Linux Software downloads and news
Name : Password :
Linux SoftwareLinux RPMLinux HowtosLink UsAboutAdvertise

NFS-Root mini-HOWTO

Search Howtos :Match :
Next Previous Contents

2. General Overview

An NFS-mounted root filesystem is typically most useful in two situations:

  • A system administrator may wish to aggregate storage for multiple workstations in order to simplify maintenance, improve security and reliability, and/or make more economical use of limited storage capacity. In this scenario, a single, large server may host a dozen or more workstations; all of the systems can be regularly backed up from a central location, and individual clients are less prone to damage by unsophisticated users or attack by malicious parties with physical access. (Of course, if the server itself is compromised, then so are all of the clients.)
  • An embedded system may not have a disk, an IDE interface, or even a PCI bus. Even if it does, during development it may be too unstable to use the disk, and a ramdisk may be too small to include all of the necessary utilities or too large (as a part of the kernel image) to allow for rapid turnaround during testing and development. An NFS root allows quick kernel downloads, helps ensure filesystem integrity (since the server is basically impervious to crashes by the client), and provides virtually infinite storage.
(In this document we'll use the terms client and workstation interchangeably.)

However, there are two small problems from the client's perspective:

  • It must find out its own IP address and possibly also the rest of the ethernet configuration (gateway, netmask, name servers, etc.).
  • It must know or discover both the IP address of the NFS server and the mount path (on the server) to the exported root filesystem.

The current implementation of NFSROOT in the Linux kernel (as of 2.4.x) allows for several approaches, including:

  • The complete ethernet configuration, including the NFS-path to be mounted, may be passed as parameters to the kernel via LILO, LOADLIN, or a hard-coded string within linux/arch/i386/kernel/setup.c (or its equivalent for other architectures).
  • The IP address may be discovered by RARP and the NFS-path passed via kernel parameters.
  • The IP address may be discovered by RARP, with the NFS-path derived from the RARP server and the just-granted IP address (loosely speaking, ``mount -t nfs <RARP-server>:/tftpboot/<IP-address-of-client>/dev/nfs'').
  • The client configuration may be discovered by BOOTP.
  • The client configuration may be discovered by DHCP.

Since the most common dynamic-address protocol these days is DHCP, its addition as an option in kernels 2.2.19 and 2.4.x (3 < x <= 14) is particularly welcome.

Before starting to set up a diskless environment, you should decide if you will be booting via LILO, LOADLIN, or a custom, embedded bootloader. The advantage of using something like LILO is flexibility; the disadvantage is speed--booting a Linux kernel without LILO is faster. This may or may not be a consideration.


Next Previous Contents
Search Howtos :Match :
Thunderbird 2.0.0.18
An email and newsgroup client with powerful, new junk mail controls
JEdit 4.3pre16
Programmers text editor
Gdm 2.24.1
Reimplementation of the well known xdm program.
Damn Small Linux 4.4.10
Damn Small Linux, 50MB bootable Linux desktop LiveCD
PhpMyAdmin 3.1.0 rc1
Php front-end to MySQL administration
ImageMagick 6.4.5.8
ImageMagick image processing studio
SystemRescueCd 1.1.2
Bootable CDRom with Linux and all the important system utilities
Linux Kernel 2.6 2.6.28-rc5
Linux Kernel
LimeWire 4.18.8
Gnutella Client
Trac 0.11.2.1
Integrates SCM, Wiki and Issue Tracker
Free IT Magazines, White Papers, eBooks, and more !
Oracle Magazine

Contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more.

eWeek

The essential technology information source for builders of e-business.

BusinessWeek (Digital Edition)

Provides readers a deeper understanding of the trends that drive growth, and what best practices keep them ahead of the competition.

Linux Software Map
Find Linux RPM
Best Rated Linux Software
Most Rated Linux Software
Linux Distributions
Linux Howtos
Quick Survey

Please take our survey and help us improve our website to serve you better.

Thank you.
Linux Software
Linux / IT Resources
Site Resources
Google
Privacy Policy
Contact Us
Submit Software
Advertising info