Mailing List Archive

NFS problems
Mounting an export from an OSX server. It mounts on this gentoo client
with no error msgs. cat /proc/mounts:

192.168.1.102:/Volumes/Alien /mnt/alien nfs
rw,nosuid,nodev,v3,rsize=16384,wsize=16384,hard,intr,udp,lock,addr=192.168.1.102
0 0

However, ls /mnt/alien gives:
ls: reading directory /mnt/alien: Input/output error

I don't think it's a permissions problem, as ftp seems to work. I can't
track rhis bugger down. Is the following OK?

root:: # showmount -e 192.168.1.102
Export list for 192.168.1.102:
/Volumes/Alien 192.168.1.0

root:: # rpcinfo -p 192.168.1.102
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 1021 status
100024 1 tcp 934 status
100021 0 udp 1008 nlockmgr
100021 1 udp 1008 nlockmgr
100021 3 udp 1008 nlockmgr
100021 4 udp 1008 nlockmgr
100021 0 tcp 923 nlockmgr
100021 1 tcp 923 nlockmgr
100021 3 tcp 923 nlockmgr
100021 4 tcp 923 nlockmgr
100005 1 udp 989 mountd
100005 3 udp 989 mountd
100005 1 tcp 909 mountd
100005 3 tcp 909 mountd
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs

Thanks.

--
Ed Jabbour

--
gentoo-user@gentoo.org mailing list
Re: NFS problems [ In reply to ]
ejbr@comcast.net wrote:
> Mounting an export from an OSX server. It mounts on this gentoo client
> with no error msgs. cat /proc/mounts:
>
> 192.168.1.102:/Volumes/Alien /mnt/alien nfs
> rw,nosuid,nodev,v3,rsize=16384,wsize=16384,hard,intr,udp,lock,addr=192.168.1.102
> 0 0
>
[snip]

It looks okay, your portmapper (output from rpcinfo) seems not to be the
problem (otherwise you wouldn't have been able to mount the volume anyway).
Only difference I can see is in 'rsize' and 'wsize': My values are 8192 for
both. I don't know if and where these can be changed, but maybe there's a
buffer problem.

Greetings
Felix
Re: NFS problems [ In reply to ]
ejbr@comcast.net wrote:
> Mounting an export from an OSX server. It mounts on this gentoo client
> with no error msgs. cat /proc/mounts:
>
> 192.168.1.102:/Volumes/Alien /mnt/alien nfs
> rw,nosuid,nodev,v3,rsize=16384,wsize=16384,hard,intr,udp,lock,addr=192.168.1.102
> 0 0
>
> However, ls /mnt/alien gives:
> ls: reading directory /mnt/alien: Input/output error
>
> I don't think it's a permissions problem, as ftp seems to work. I can't
> track rhis bugger down. Is the following OK?
>
> root:: # showmount -e 192.168.1.102
> Export list for 192.168.1.102:
> /Volumes/Alien 192.168.1.0
>
> root:: # rpcinfo -p 192.168.1.102
> program vers proto port
> 100000 2 tcp 111 portmapper
> 100000 2 udp 111 portmapper
> 100024 1 udp 1021 status
> 100024 1 tcp 934 status
...
> 100005 1 tcp 909 mountd
> 100005 3 tcp 909 mountd
> 100003 2 udp 2049 nfs
> 100003 3 udp 2049 nfs
> 100003 2 tcp 2049 nfs
> 100003 3 tcp 2049 nfs

I had a similar problem. "rpcinfo -p target_IP" showed all rpc services,
but "rpcinfo -u target_IP nfs" gave timeouts. I suppose, the reason were
some contradictions in /etc/exports at the NFS server. There was
something like
/some_dir *.mydomain(rw,no_root_squash) my_client_pc(ro)
where my_client_pc also belongs to mydomain.
So try "rpcinfo -u 192.168.1.102 nfs", perhaps it helps.

Regards Juergen

--
gentoo-user@gentoo.org mailing list
Re: NFS problems [ In reply to ]
On Tuesday 07 September 2004 11:17 am, Juergen Rose wrote:
> ejbr@comcast.net wrote:
> > Mounting an export from an OSX server. It mounts on this gentoo
> > client with no error msgs. cat /proc/mounts:
> >
> > 192.168.1.102:/Volumes/Alien /mnt/alien nfs
> >
> > rw,nosuid,nodev,v3,rsize=16384,wsize=16384,hard,intr,udp,lock,addr=19
> >2.168.1.102 0 0
> >
> > However, ls /mnt/alien gives:
> > ls: reading directory /mnt/alien: Input/output error

> I had a similar problem. "rpcinfo -p target_IP" showed all rpc
> services, but "rpcinfo -u target_IP nfs" gave timeouts. I suppose, the
> reason were some contradictions in /etc/exports at the NFS server.
> There was something like
> /some_dir *.mydomain(rw,no_root_squash) my_client_pc(ro)
> where my_client_pc also belongs to mydomain.

Thanks for the responses.

rpcinfo -u 192.168.1.102 nfs
program 100003 version 2 ready and waiting
program 100003 version 3 ready and waiting

I take it that's the proper output? I wonder if my problem's with
uid/gid. On this Linux box,

id edj
uid=1000(edj) gid=100(users) groups=100(users)

On the Mac, however,

id edj
uid=503(edj) gid=503(edj) groups=503(edj)

So, /mnt/alien is 503:503, and I can't change it from here. The Mac
volume I'm trying to access is formatted UFS. OT, I guess, but anyone
know how to change the uid/gid on OSX?

--
Ed Jabbour

--
gentoo-user@gentoo.org mailing list
Re: NFS problems [ In reply to ]
On Tue, 7 Sep 2004 ejbr@comcast.net wrote:

> So, /mnt/alien is 503:503, and I can't change it from here. The Mac
> volume I'm trying to access is formatted UFS. OT, I guess, but anyone
> know how to change the uid/gid on OSX?

Use the NetInfo Manager in Applications -> Utilities.

--
Aj.
Sys. Admin / Developer

--
gentoo-user@gentoo.org mailing list
Re: NFS problems [ In reply to ]
On 7 Sep 2004, at 11:16, ejbr@comcast.net wrote:
> On Tuesday 07 September 2004 11:17 am, Juergen Rose wrote:
>> ejbr@comcast.net wrote:
>>> Mounting an export from an OSX server. It mounts on this gentoo
>>> client with no error msgs. cat /proc/mounts:
>>>
>>> 192.168.1.102:/Volumes/Alien /mnt/alien nfs
>>>
>>> rw,nosuid,nodev,v3,rsize=16384,wsize=16384,hard,intr,udp,lock,addr=19
>>> 2.168.1.102 0 0
>>>
>>> However, ls /mnt/alien gives:
>>> ls: reading directory /mnt/alien: Input/output error
<...>
> I take it that's the proper output? I wonder if my problem's with
> uid/gid. On this Linux box,
>
> id edj
> uid=1000(edj) gid=100(users) groups=100(users)
>
> On the Mac, however,
>
> id edj
> uid=503(edj) gid=503(edj) groups=503(edj)
>
> So, /mnt/alien is 503:503, and I can't change it from here. The Mac
> volume I'm trying to access is formatted UFS. OT, I guess, but anyone
> know how to change the uid/gid on OSX?

Canned tutorial (I've done this myself; hopefully there aren't any
glaring errors):

1. Reboot while holding Cmd-S (Single-user mode). After kernel startup,
you'll get dropped into a root shell.

2. Get netinfod and related processes running:
% mount -uw /
% ifconfig lo0 127.0.0.1 up
% cd /var/db/netinfo
% netinfod -s local

3. Modify the user database
% niutil -createprop . /users/edj uid 1000

4. Change UIDs on all applicable files
% find / -user 503 -exec chown edj '{}' \;
(you can probably speed this up by running
% chown -R edj /Users/edj
first)

5. Continue the boot and pray
% killall -TERM netinfod
% exit
Re: NFS problems [ In reply to ]
On 7 Sep 2004, at 13:02, Ajai Khattri wrote:
> On Tue, 7 Sep 2004 ejbr@comcast.net wrote:
>> So, /mnt/alien is 503:503, and I can't change it from here. The Mac
>> volume I'm trying to access is formatted UFS. OT, I guess, but anyone
>> know how to change the uid/gid on OSX?
>
> Use the NetInfo Manager in Applications -> Utilities.

Not recommended on a running system, and all your files will then have
wrong UIDs.

See other message for a HOWTO.
Re: NFS problems [ In reply to ]
On Tuesday 07 September 2004 04:07 pm, Andrew Farmer wrote:
> On 7 Sep 2004, at 11:16, ejbr@comcast.net wrote:
>> I wonder if my problem's with
> > uid/gid. On this Linux box,
> >
> > id edj
> > uid=1000(edj) gid=100(users) groups=100(users)
> >
> > On the Mac, however,
> >
> > id edj
> > uid=503(edj) gid=503(edj) groups=503(edj)
> >
> > So, /mnt/alien is 503:503, and I can't change it from here. The Mac
> > volume I'm trying to access is formatted UFS. OT, I guess, but
> > anyone know how to change the uid/gid on OSX?
>
> Canned tutorial (I've done this myself; hopefully there aren't any
> glaring errors):
>
> 1. Reboot while holding Cmd-S (Single-user mode). After kernel startup,
> you'll get dropped into a root shell.
>
> 2. Get netinfod and related processes running:
> % mount -uw /
> % ifconfig lo0 127.0.0.1 up
> % cd /var/db/netinfo
> % netinfod -s local
>
> 3. Modify the user database
> % niutil -createprop . /users/edj uid 1000

No error messages to this point.

> 4. Change UIDs on all applicable files
> % find / -user 503 -exec chown edj '{}' \;
> (you can probably speed this up by running
> % chown -R edj /Users/edj
> first)

That "find" command barfs with "Invalid argument edj". When booted into
single-user, edj is not even recognized. "id edj" gives "no such user."
Any further advice (I hope)? Thanks a lot.

--
Ed Jabbour

--
gentoo-user@gentoo.org mailing list
Re: NFS problems [ In reply to ]
On 7 Sep 2004, at 15:36, ejbr@comcast.net wrote:
> On Tuesday 07 September 2004 04:07 pm, Andrew Farmer wrote:
>> 4. Change UIDs on all applicable files
>> % find / -user 503 -exec chown edj '{}' \;
>> (you can probably speed this up by running
>> % chown -R edj /Users/edj
>> first)
>
> That "find" command barfs with "Invalid argument edj". When booted
> into
> single-user, edj is not even recognized. "id edj" gives "no such
> user."
> Any further advice (I hope)? Thanks a lot.

Try
% find / -user 503 -exec chown 1000 '{} \;
instead?
Re: NFS problems [ In reply to ]
On Tuesday 07 September 2004 07:08 pm, Andrew Farmer wrote:
> On 7 Sep 2004, at 15:36, ejbr@comcast.net wrote:
> > On Tuesday 07 September 2004 04:07 pm, Andrew Farmer wrote:
> >> 4. Change UIDs on all applicable files
> >> % find / -user 503 -exec chown edj '{}' \;
> >> (you can probably speed this up by running
> >> % chown -R edj /Users/edj
> >> first)
> >
> > That "find" command barfs with "Invalid argument edj". When booted
> > into
> > single-user, edj is not even recognized. "id edj" gives "no such
> > user."
> > Any further advice (I hope)? Thanks a lot.
>
> Try
> % find / -user 503 -exec chown 1000 '{} \;
> instead?

Yep, that did it. I also changed the group from 503 to 100, so that the
mount on Linux is now edj:users, just like the local stuff. However, I
still cannot access the mount, same error:

ls -al /mnt/alien
ls: reading directory /mnt/alien: Input/output error
total 0

The uid issue was a last-ditch effort. I don't know what else to check.
I've got 80 GB waiting on that drive. It's connected to the Mac via
firewire, if that gives any clue.

--
Ed Jabbour

--
gentoo-user@gentoo.org mailing list