At 12:48 AM 12/28/2002, you wrote:
On Sat, 2002-12-28 at 00:09, Ian wrote:
> Hey all,
>
> i've got 2 redhat machines. I'm trying to mount on one machine and having
> one hell of a problem.
>
> mount machine:/ /machine/
> mount machine:/disk/export /machine/disk/export
>
> the above 2 mount statements will work.
>
> mount machine:/disk /machine/disk
>
> that mount statement does not work, regardless of what i put in the exports
> file on machine. The error message in the log file on machine is:
>
> rpc.mountd: authenticated mount request from 121.121.121.121:1012 for /disk
> (/disk)
> rpc.mountd: getfh failed: Operation not permitted
>
> When i run exportfs -a on machine, i get:
> machine2:/disk: Invalid argument
>
> I dont even have anything in the exports file anymore allowing machine2 to
> mount machine:/disk and it still gives me that message when i do exportfs
>
> Can ANYONE give me some suggestions as to how to clear this up? Someone who
> knows a hell of a lot more about linux then i do thinks it has something to
> do with something be stuck inside the kernel. I'm not using his exact
> words. He recompiled and installed a different version of the kernel but
> that hasnt helped.
>
> I've tried rebooting. I've tried using the machine name, the machine
> name.domain, and the IP address in the export file. I've rebooted the
> machine. restarted nfs. Nothing seems to work.
>
> I dont understand why i can mount / and /disk/export, but not /disk
>
> any suggestions?

It's late for me, and my ability to think is probably sadly
diminished. First thing is make sure that portmap is running on both
sides, second make sure that you mount them in order.

i.e.:

mount m:/ /m
mount m:/disk /m/disk
mount m:/disk/export /m/disk/export

also, if you mount /m/disk/export first - to any directory, you will not
be able to mount /m/disk.

It has been my experience that you need to maintain the hierarchy w/
nfs, then everything is rosy.

js
Ok, looks like nfs is making a liar out of me. Because now i cant mount / either. The only thing i can mount is /disk/export.

If i try mounting / or /disk it gives me getfh failed message in the log. I've tried unmounting everything, and then mounting /, /disk, /disk/export and the only one that works is /disk/export

The only difference i can see for these mounts is the export file:

/disk/export 131.215.0.0/255.255.0.0(ro) 192.168.0.0/255.255.0.0(ro)

/disk machine2(rw,no_root_squash)

machine2 can mount /disk/export but not disk

And i still get this error when i run exportfs -a on machine:

sudo exportfs -a
machine2:/disk: Invalid argument

I get that message even when i remove the line to allow machine2 to mount to /disk

any other ideas?

Ian




--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list


Reply via email to