* Re: fsck.nfs???
1998-07-24 5:27 fsck.nfs??? Keith Baker
@ 1998-06-24 9:05 ` Maciej W. Rozycki
1998-06-24 9:11 ` fsck.nfs??? David Alan Gilbert
` (2 subsequent siblings)
3 siblings, 0 replies; 11+ messages in thread
From: Maciej W. Rozycki @ 1998-06-24 9:05 UTC (permalink / raw)
To: axp-list
On Fri, 24 Jul 1998, Keith Baker wrote:
> needing to run it would be the server... NFS can't create the types of
> problems that fsck checks for... right? Well, currently my box looks for
> fsck.nfs to check the root partition... As you might imagine, no such
> file is found... It just gets pissed and continues to boot... I'd like
> to get rid of the error though... also, does anyone have source for
ln -s ../bin/true /sbin/fsck.nfs
;-)
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: fsck.nfs???
1998-07-24 5:27 fsck.nfs??? Keith Baker
1998-06-24 9:05 ` fsck.nfs??? Maciej W. Rozycki
@ 1998-06-24 9:11 ` David Alan Gilbert
1998-06-24 9:38 ` fsck.nfs??? Maciej W. Rozycki
1998-06-24 13:58 ` fsck.nfs??? Robert L. Millner
1998-07-07 16:24 ` poll(2) Francesco Callari
3 siblings, 1 reply; 11+ messages in thread
From: David Alan Gilbert @ 1998-06-24 9:11 UTC (permalink / raw)
To: axp-list
Keith Baker wrote:
> Well, currently my box looks for
> fsck.nfs to check the root partition... As you might imagine, no such
Your right - you don't need to fsck your NFS partition.
At a guess I'm thinking that perhaps the last two columns of your /etc/fstab
are wrong. For an NFS filesystem (or anything else not to be fsck'd) they
should be 0 0.
Dave
--
----------------------------------------------------------------------
- Dr. David Alan Gilbert - WARNING! This is a beta release .signature-
- Work: dg @ cogency.co.uk - +44-(0)161-428-9444 -
- Home: gro.gilbert @ treblig.org - -
----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: fsck.nfs???
1998-06-24 9:11 ` fsck.nfs??? David Alan Gilbert
@ 1998-06-24 9:38 ` Maciej W. Rozycki
0 siblings, 0 replies; 11+ messages in thread
From: Maciej W. Rozycki @ 1998-06-24 9:38 UTC (permalink / raw)
To: axp-list
On Wed, 24 Jun 1998, David Alan Gilbert wrote:
> At a guess I'm thinking that perhaps the last two columns of your /etc/fstab
> are wrong. For an NFS filesystem (or anything else not to be fsck'd) they
> should be 0 0.
I believe this behaviour cannot be enforced for the root fs if it's being
checked separately -- fsck obeys this rule only when run without any dev
or fs parameters.
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: fsck.nfs???
1998-07-24 5:27 fsck.nfs??? Keith Baker
1998-06-24 9:05 ` fsck.nfs??? Maciej W. Rozycki
1998-06-24 9:11 ` fsck.nfs??? David Alan Gilbert
@ 1998-06-24 13:58 ` Robert L. Millner
1998-07-24 21:31 ` fsck.nfs??? Keith Baker
1998-07-07 16:24 ` poll(2) Francesco Callari
3 siblings, 1 reply; 11+ messages in thread
From: Robert L. Millner @ 1998-06-24 13:58 UTC (permalink / raw)
To: axp-list
"Keith" == Keith Baker <toaster@cybercom.net> writes:
Hello /.*/,
Keith> documentation... Do I need to still run fsck? I am sort of
Only on filesystems on local, permenant media.
Keith> under the asumption that the only machine needing to run it would
Keith> be the server... NFS can't create the types of problems that
Keith> fsck checks for... right? Well, currently my box looks for
Keith> fsck.nfs to check the root partition... As you might imagine, no
Check /etc/fstab on the client for the nfs entries. You should see
something like:
server:/export/local /opt/local nfs hard,intr,nodev 0 0
The last two numbers should be zeros. They are (man 5 fstab) a tag
telling dump that this filesystem needs to be backed up and a fsck pass
number (what order they are checked in). The second number should be 1
for / and 2 for everything else local. It should be 0 for any removable
media and remote filesystems (incl. / if its NFS served).
Rob
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: fsck.nfs???
1998-06-24 13:58 ` fsck.nfs??? Robert L. Millner
@ 1998-07-24 21:31 ` Keith Baker
1998-06-25 1:33 ` fsck.nfs??? Maciej W. Rozycki
1998-06-25 3:00 ` fsck.nfs??? Robert L. Millner
0 siblings, 2 replies; 11+ messages in thread
From: Keith Baker @ 1998-07-24 21:31 UTC (permalink / raw)
To: axp-list
Ok... I have both of the last numbers as 0's... Fsck seems to insist
that it be checked anyhow! What do I need to do? I do not have
"hard,intr,nodev" in fstab instead I think it is what ever the
standard fstab would have for /... What exactly do these parameters do?
Which parts of the filesystem can be shared accross many remote machines?
I have read that /usr and /lib were safe (I think)...
How exactly can I do this remotely... I know I shouldn't sym link these
directories into each exported root filesystem... do I have to make
sepreate mount points?
Also... What shutdown order whould the machine have? By default redhat
blows up because it shuts off nfs and networking... How can I shut down
the system when the steps involve shutting down the filesystem which tell
it how to continue shutting down?!?!
On Wed, 24 Jun 1998, Robert L. Millner wrote:
> "Keith" == Keith Baker <toaster@cybercom.net> writes:
>
> Hello /.*/,
>
> Keith> documentation... Do I need to still run fsck? I am sort of
>
> Only on filesystems on local, permenant media.
>
> Keith> under the asumption that the only machine needing to run it would
> Keith> be the server... NFS can't create the types of problems that
> Keith> fsck checks for... right? Well, currently my box looks for
> Keith> fsck.nfs to check the root partition... As you might imagine, no
>
> Check /etc/fstab on the client for the nfs entries. You should see
> something like:
>
> server:/export/local /opt/local nfs hard,intr,nodev 0 0
>
> The last two numbers should be zeros. They are (man 5 fstab) a tag
> telling dump that this filesystem needs to be backed up and a fsck pass
> number (what order they are checked in). The second number should be 1
> for / and 2 for everything else local. It should be 0 for any removable
> media and remote filesystems (incl. / if its NFS served).
>
> Rob
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: fsck.nfs???
1998-07-24 21:31 ` fsck.nfs??? Keith Baker
@ 1998-06-25 1:33 ` Maciej W. Rozycki
1998-06-25 3:00 ` fsck.nfs??? Robert L. Millner
1 sibling, 0 replies; 11+ messages in thread
From: Maciej W. Rozycki @ 1998-06-25 1:33 UTC (permalink / raw)
To: axp-list
On Fri, 24 Jul 1998, Keith Baker wrote:
> Ok... I have both of the last numbers as 0's... Fsck seems to insist
> that it be checked anyhow! What do I need to do? I do not have
Just `ln -s ../bin/true /sbin/fsck.nfs', as I suggested in the other
mail.
> "hard,intr,nodev" in fstab instead I think it is what ever the
> standard fstab would have for /... What exactly do these parameters do?
You do not want to have "nodev" for root fs. Unless you have your '/dev'
separate, which I doubt. "Nodev" forbids device nodes operation.
"Intr" and "hard" are related to NFS timeout treatment and are described
in 'nfs(5)' man page.
> Which parts of the filesystem can be shared accross many remote machines?
> I have read that /usr and /lib were safe (I think)...
Basically you should avoid sharing of '/dev', '/etc', '/tmp' and '/var'.
Though with some effort it might be possible to share some or all of them.
> Also... What shutdown order whould the machine have? By default redhat
> blows up because it shuts off nfs and networking... How can I shut down
> the system when the steps involve shutting down the filesystem which tell
> it how to continue shutting down?!?!
Just deactivate 'K95nfsfs' symlink for runlevels 0 and 6.
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: fsck.nfs???
1998-07-24 21:31 ` fsck.nfs??? Keith Baker
1998-06-25 1:33 ` fsck.nfs??? Maciej W. Rozycki
@ 1998-06-25 3:00 ` Robert L. Millner
1 sibling, 0 replies; 11+ messages in thread
From: Robert L. Millner @ 1998-06-25 3:00 UTC (permalink / raw)
To: axp-list
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* poll(2)
1998-07-24 5:27 fsck.nfs??? Keith Baker
` (2 preceding siblings ...)
1998-06-24 13:58 ` fsck.nfs??? Robert L. Millner
@ 1998-07-07 16:24 ` Francesco Callari
1998-07-07 21:46 ` poll(2) Uncle George
1998-07-07 23:20 ` poll(2) Quant-X Alpha Linux Support
3 siblings, 2 replies; 11+ messages in thread
From: Francesco Callari @ 1998-07-07 16:24 UTC (permalink / raw)
To: axp-list
Hello,
sorry if this is a FAQ, but can someone update me on the status
of poll(2) in the 2.0.x kernels? What I see is that:
o It's not implemented as a syscall.
o The glibc emulation of it is broken: stracing an application
calling poll() shows that it attempts to call the syscall 94,
which is not defined in asm/unistd.h, thus getting EPERM.
o The emulation is defined in libc-2.0.7:
% nm /lib/libc-2.0.7.so | grep poll
00000000000922f8 t __emulate_poll
000000000009bfc0 T __syscall_poll
0000000000092220 T poll
Thanks
Franco
-------------------------------------------------------------------------
Franco Callari
Centre for Intelligent Machines "Beati coloro che hanno fame e sete
McGill University, 3480 University di giustizia, perche` saranno
Montreal, Quebec, Canada, H3A 2A7 giustiziati." (P. Bellocchio)
franco@cim.mcgill.ca | phone: +(514) 398-3371 | fax: +(514) 398-7348
WWW: <a href="http://www.cim.mcgill.ca/~franco/Home.html> Franco </a>
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: poll(2)
1998-07-07 16:24 ` poll(2) Francesco Callari
@ 1998-07-07 21:46 ` Uncle George
1998-07-07 23:20 ` poll(2) Quant-X Alpha Linux Support
1 sibling, 0 replies; 11+ messages in thread
From: Uncle George @ 1998-07-07 21:46 UTC (permalink / raw)
To: axp-list
i dont think POLL() will ever be implimented in the 2.0.xx series. the kern
folks seem to say that it will certainly be avail in the 2.2.xx series (
where i think everyone 2.0.xx & 2.1.xx will migrate to)
gat
Francesco Callari wrote:
> Hello,
> sorry if this is a FAQ, but can someone update me on the status
> of poll(2) in the 2.0.x kernels? What I see is that:
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: poll(2)
1998-07-07 16:24 ` poll(2) Francesco Callari
1998-07-07 21:46 ` poll(2) Uncle George
@ 1998-07-07 23:20 ` Quant-X Alpha Linux Support
1 sibling, 0 replies; 11+ messages in thread
From: Quant-X Alpha Linux Support @ 1998-07-07 23:20 UTC (permalink / raw)
To: axp-list
Hi Franco !
> sorry if this is a FAQ, but can someone update me on the status
> of poll(2) in the 2.0.x kernels? What I see is that:
>
> o It's not implemented as a syscall.
That's quite true. 2.0.x kernels only have select, and by design poll
can't be emulated by select...
>
> o The glibc emulation of it is broken: stracing an application
> calling poll() shows that it attempts to call the syscall 94,
> which is not defined in asm/unistd.h, thus getting EPERM.
>
> o The emulation is defined in libc-2.0.7:
> % nm /lib/libc-2.0.7.so | grep poll
> 00000000000922f8 t __emulate_poll
> 000000000009bfc0 T __syscall_poll
> 0000000000092220 T poll
Yes syscall 94 is correct; that's poll on 2.1.xxx kernels.
2.1.xx brought us native poll, and internally select gets
emulated (this direction works). It's also a bit easier when
writing device-drivers...
--
Quant-X Service & Ph: (+43) 4212 6004-0
Consulting Ges.m.b.H. Fax: (+43) 4212 600420
http://www.quant-x.com Email: support@quant-x.com
^ permalink raw reply [flat|nested] 11+ messages in thread