From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 26410 invoked from network); 25 Jun 1998 03:00:29 -0000 Received: from pongo.cv.nrao.edu (rmillner@192.33.115.98) by mail2.redhat.com with SMTP; 25 Jun 1998 03:00:29 -0000 Received: (from rmillner@localhost) by pongo.cv.nrao.edu (8.8.8/8.8.8/CV-2.2) id XAA07748; Wed, 24 Jun 1998 23:00:26 -0400 (EDT) Date: Wed, 24 Jun 1998 23:00:26 -0400 (EDT) Message-Id: <199806250300.XAA07748@pongo.cv.nrao.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: "Robert L. Millner" To: axp-list@redhat.com Subject: Re: fsck.nfs??? In-Reply-To: Your message of Fri, July 24, 1998 17:31:06 -0400 References: <199806241358.JAA18449@pongo.cv.nrao.edu> X-Mailer: VM 6.35 under Emacs 20.2.1 Hello Keith, Keith> Ok... I have both of the last numbers as 0's... Fsck seems to Keith> insist that it be checked anyhow! What do I need to do? I do How exactly have you configured this system? Could you post your fstab and tell us what you are really trying to do? Keith> "hard,intr,nodev" in fstab instead I think it is what ever the Keith> standard fstab would have for /... What exactly do these Hard means that the system should not not bail out on operations of NFS accesses time out. I usually set it for nfs mounts in fstab and make automounted filesystems "soft". The "intr" flag means that you can kill a program waiting on IO and it will abort the system call. Nodev means that no device files are allowed. Its a good idea for nfs mounted filesystems that mere mortals have the ability to change. The stock RedHat install is not good meat for a diskless system (/ mounted via NFS). I have done this before with RedHat as a base and it takes some fiddling and a few ramdisks (along with the initrd) to really do it well. The startup script /etc/rc.d/rc.sysinit explicitly checks / and must be changed. You'll need an initrd which includes all of /dev. Keith> Which parts of the filesystem can be shared accross many remote Keith> machines? You can share the whole thing if you are treacherous. What I had setup was based on RedHat 4.2 and had symlinks into /initrd and /tmp. The initrd filesystem was mounted at boot and it setup the system for an NFS, read only root. The /tmp filesystem was made out of a second ramdisk (make a 4MB dd of /dev/zero, put an FS on it and compress is one way) and any files that needed to be RW were created in there from a set of tarballs sitting in /boot. The initrd had /dev, mounted /proc and shared some of the writable files. This lends itself well to supporting an arbitrary number of clients but costs client memory. You can make /usr shared read-only far more simply then setting up a diskless system. You need /lib for running the system startup scripts. You may be able to get away with having most of /lib symlinked out of /usr but there are libs you'll need to get the system up (like glibc which is needed for /bin/mount unless you recompile static versions). Keith> How exactly can I do this remotely... I know I shouldn't sym link these Keith> directories into each exported root filesystem... do I have to make Keith> sepreate mount points? You would need to make a mount point for /usr if you plan on mounting anything there. You can use a symlink if you'd prefer to mount the directory somewhere else. If you are operating in the mode of a separate read-write NFS mounted / per machine then you can share /usr separately and mount it in place from fstab. Keith> Also... What shutdown order whould the machine have? By default Keith> redhat blows up because it shuts off nfs and networking... How Keith> can I shut down the system when the steps involve shutting down Keith> the filesystem which tell it how to continue shutting down?!?! I forget off hand what `umount -a -t nfs` will do to the kernel's NFS root but like I said before, the stock RedHat is not good meat for a totally diskless system without modifications. You need a kernel with NFS root support compiled in to make this work so check the one you are using. Are you sure that the time involved in setting this up would be worth more than the disks cost and the time to setup kickstart to re-install as necessary? Rob