Difference between 11.3 and 11.4 autofs ?

I have a peculiar situation occurring here. When 11.3 stopped being supported, I moved my server to 11.4, as well as a couple of laptops. I’m running all three on KDE3 if that is relevant.

On my server, I have two two TB drives. One is mounted as /home/rsmits/Sounds.
The /home/rsmits directory is exported with nfs.

On my laptops, I use autofs to connect to /home/rsmits on my server.
When I used 11.3 on the laptops and the server, when I mounted /home/rsmits from the server I could read and write to /home/rsmits/Sounds just fine.

Now that I’m using 11.4, I can open /home/rsmits on the server, but when I try to read /home/rsmits/Sounds the window goes blank and nothing happens.

I’ve checked all the permissions carefully and don’t see anything wrong.

The auto.master file reads

/mnt/DataServer /etc/auto.DataServer --timeout=100

and the auto.DataServer file reads

Desktop -intr,nosuid 192.168.0.110:/home/rsmits

Can someone suggest where I might look to correct this?

Thanks, Bob.

Following up my own post, the same behaviour occurs when I mount the server directory with an nfs client instead of autofs, so it appears as nfs is the culprit. What to do?

On 2012-02-15 05:36, robertsmits wrote:
>
> Following up my own post, the same behaviour occurs when I mount the
> server directory with an nfs client instead of autofs, so it appears as
> nfs is the culprit. What to do?

Ok, so lets concentrate on this one.

Post the corresponding entry in exports in the server, and in the client,
the fstab line and the output of “mount”. Just the relevant part, no need
to post the entire output - but please do use code tags. If you are using
some other method for the nfs client, please expand on it.

View this thread: http://forums.opensuse.org/showthread.php?t=451526


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

On 02/15/2012 04:58 AM, Carlos E. R. wrote:
> On 2012-02-15 05:36, robertsmits wrote:
>>
>> Following up my own post, the same behaviour occurs when I mount the
>> server directory with an nfs client instead of autofs, so it appears as
>> nfs is the culprit. What to do?
>
> Ok, so lets concentrate on this one.
>
> Post the corresponding entry in exports in the server, and in the client,
> the fstab line and the output of “mount”. Just the relevant part, no need
> to post the entire output - but please do use code tags. If you are using
> some other method for the nfs client, please expand on it.
>
> View this thread: http://forums.opensuse.org/showthread.php?t=451526

Are you using NFSv3 or NFSv4? I had some troubles with v4, but none with v3. I
did not switch to autofs until I was running 12.1, but 11.4 was OK with fstab
mounts.

[QUOTE=robin_listas;2440498]On 2012-02-15 05:36,

Ok, so lets concentrate on this one.

Post the corresponding entry in exports in the server, and in the client,
the fstab line and the output of “mount”. Just the relevant part, no need
to post the entire output - but please do use code tags. If you are using
some other method for the nfs client, please expand on it.

Here is my nfs server export file:

 /dev/disk/by-id/ata-ST32000542AS_5XW1L5W5-part1 swap                 swap       defaults              0 0
/dev/disk/by-id/ata-ST32000542AS_5XW1L5W5-part2 /                    ext3       acl,user_xattr        1 1
/dev/disk/by-id/ata-ST32000542AS_5XW1L5W5-part5 /home                ext3       acl,user_xattr        1 2
/dev/disk/by-id/ata-WDC_WD20EARS-00MVWB0_WD-WCAZA1209963-part1 /home/rsmits/Sounds  ext3       defaults              1 2
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0

 

Here is my /etc/fstab file

/dev/disk/by-id/ata-HITACHI_HTS722016K9SA00_080418DP0D10DVGDP20P-part5    /    ext4    acl,user_xattr 1 1 
/dev/disk/by-id/ata-HITACHI_HTS722016K9SA00_080418DP0D10DVGDP20P-part6    swap    swap    defaults 0 0 
/dev/disk/by-id/ata-HITACHI_HTS722016K9SA00_080418DP0D10DVGDP20P-part7    /home    ext4    acl,user_xattr 1 2 
proc    /proc    proc    defaults 0 0 
sysfs    /sys    sysfs    noauto 0 0 
debugfs    /sys/kernel/debug    debugfs    noauto 0 0 
usbfs    /proc/bus/usb    usbfs    noauto 0 0 
devpts    /dev/pts    devpts    mode=0620,gid=5 0 0 
192.168.0.110:/home/rsmits    /home/rsmits/NFS    nfs    defaults 0 0 


Here is the output of the mount command:

mount
devtmpfs on /dev type devtmpfs (rw,relatime,size=1984868k,nr_inodes=496217,mode=755)
tmpfs on /dev/shm type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
/dev/sda5 on / type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
/dev/sda7 on /home type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,relatime)
/etc/auto.Betty on /mnt/Betty type autofs (rw,relatime,fd=6,pgrp=2246,timeout=100,minproto=5,maxproto=5,indirect)
/etc/auto.DataServer on /mnt/DataServer type autofs (rw,relatime,fd=12,pgrp=2246,timeout=100,minproto=5,maxproto=5,indirect)
/etc/auto.NDDLC on /mnt/NDDLC type autofs (rw,relatime,fd=18,pgrp=2246,timeout=100,minproto=5,maxproto=5,indirect)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
192.168.0.110:/home/rsmits on /home/rsmits/NFS type nfs4 (rw,relatime,vers=4,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.0.100,minorversion=0,local_lock=none,addr=192.168.0.110)


Normally I just use autofs, but the behaviour is the same whether I use autofs or nfs client.

Thanks, Bob

On 2012-02-15 19:36, robertsmits wrote:

>> Here is my nfs server export file:

Huh, no, that’s an fstab file. Try again :slight_smile:

>> Here is my /etc/fstab file
>>
>>>
> Code:
> --------------------
> > 192.168.0.110:/home/rsmits /home/rsmits/NFS nfs defaults 0 0

> --------------------

>> Here is the output of the mount command:
>>
>>>
> Code:
> --------------------
> > > mount

> > rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
> > 192.168.0.110:/home/rsmits on /home/rsmits/NFS type nfs4 (rw,relatime,vers=4,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.0.100,minorversion=0,local_lock=none,addr=192.168.0.110)
> --------------------


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

[QUOTE=robin_listas;2440660]On 2012-02-15 19:36, robertsmits wrote:

>> Here is my nfs server export file:

Huh, no, that’s an fstab file. Try again :slight_smile:

Oh, yes you’re correct…

my /etc/exports file:

/home/rsmits/ *(rw,async,all_squash)

Bob

I was using version 3, and suspect that now I’m using V4. I used to know how to set the version number, but I’ve forgotten how to do it.

On 02/15/2012 06:06 PM, robertsmits wrote:
>
> lwfinger;2440584 Wrote:
>> On 02/15/2012 04:58 AM, Carlos E. R. wrote:
>>
>> Are you using NFSv3 or NFSv4? I had some troubles with v4, but none
>> with v3. I
>> did not switch to autofs until I was running 12.1, but 11.4 was OK with
>> fstab
>> mounts.
>
> I was using version 3, and suspect that now I’m using V4. I used to
> know how to set the version number, but I’ve forgotten how to do it.

The difference when using fstab is the fs type which is nfs or nfs4.

I found my earlier notes and modified the /etc/nfsmount.conf file so that the default version on both the server and the client is now v3. No different behaviour has resulted. I still cannot read the contents of directory /home/rsmits/Sounds on the server from a client laptop. I can read any other file, but not that one.

On 2012-02-16 01:06, robertsmits wrote:

> Code:
> --------------------
> > > /home/rsmits/ *(rw,async,all_squash)
> --------------------

I don’t see what the problem can be… I assume that /home/rsmits/ is rw on
the server.

I export a dir from 11.4 to 11.4 and 12.1, it works.


exports
> /data/storage_c/repositorios_zypp/                      192.168.1.0/24(fsid=1234,rw,no_root_squash,nohide,no_subtree_check,insecure) 172.16.108.0/24(fsid=1234,rw,no_root_squash,nohide,no_subtree_check,insecure)  192.168.74.0/24(fsid=1234,rw,no_root_squash,nohide,no_subtree_check,insecure)       127.0.0.1(fsid=1234,rw,no_root_squash,nohide,no_subtree_check,insecure)

fstab
> Telcontar.valinor:/data/storage_c/repositorios_zypp     /var/cache/zypp/nfs_packages    nfs     defaults,_netdev 0 0



Hold on. I think it can be the all_squash option. The manual says:

all_squash
Map  all  uids  and  gids  to  the anonymous user.
Useful for NFS-exported public FTP directories, news spool
directories, etc. The opposite option is no_all_squash,
which is the default setting.


You can not use it for home, it is mapped as the anonymous user, so the
permissions are those of "other" in the original server directory.


--
Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 "Celadon" at Telcontar)

Hold on. I think it can be the all_squash option. The manual says:

all_squash
Map all uids and gids to the anonymous user.
Useful for NFS-exported public FTP directories, news spool
directories, etc. The opposite option is no_all_squash,
which is the default setting.

You can not use it for home, it is mapped as the anonymous user, so the
permissions are those of “other” in the original server directory.

I’ve tried setting the nfs server to no_all_squash, and even root_no_Squash, and it does not seem to make any difference.

I can read and write to every directory on /home/rsmits EXCEPT /home/rsmits/Sounds.

Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)[/QUOTE]

On 2012-02-19 03:56, robertsmits wrote:

Please make use of quotes, it is difficult to know what you wrote and what
I wrote.

> I can read and write to every directory on /home/rsmits EXCEPT
> /home/rsmits/Sounds.

Check the permissions of that directory both on server and clients. “ls -l
/home/rsmits/Sounds”.

I see it is a different filesystem, in the server fstab you posted; missing
is the output of “mounts” at the server.

However, you have to also export that filesystem in another line in the
exports file. And add an option to have subdirectories with filesystems
attached, it is not explicitly done. I doubt you can even read inside Sounds.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

On 2012-02-19 13:33, Carlos E. R. wrote:
> And add an option to have subdirectories with filesystems
> attached, it is not explicitly done

I had to go, could not expand on that. The option is “nohide”.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Carlos E. R. wrote:

> On 2012-02-19 03:56, robertsmits wrote:
>
> Please make use of quotes, it is difficult to know what you wrote and what
> I wrote.
> Sorry I was on the web forum and I don’t see how to make that editor add
quotes. This is my nntp account which has quotes but not the CODE
distinctions

>
>> I can read and write to every directory on /home/rsmits EXCEPT
>> /home/rsmits/Sounds.
>
> Check the permissions of that directory both on server and clients. “ls -l
> /home/rsmits/Sounds”.

This is the output:

ls -l /home/rsmits/Sounds
total 68
drwxrwxrwx 4 rsmits users 4096 Jun 6 2011 .Trash-1000
-rw-rw-rw- 1 rsmits users 2 Aug 19 2011 .windows-serial
drwxrwxrwx 10 rsmits users 4096 Feb 14 19:47 Sounds
drwxr-xr-x 2 rsmits users 32768 Feb 14 19:46 The Testament
drwxrwxrwx 12 rsmits users 4096 Jan 15 14:28 downloads
drwxrwxrwx 2 rsmits users 16384 Jun 6 2011 lost+found

>
> I see it is a different filesystem, in the server fstab you posted;

Yeah, I didn’t want to have to format these drives. I had it on 11.2 for
years, and 11.2 doesn’t recognize later formats like ext4. One of my laptop
is still using ext3, too.

> missing is the output of “mounts” at the server.

I don’t understand. The fstab files shows the mount at swap, /, /home
and /home/rsmits/Sounds. Aren’t these the server “mounts”?

Here is the server fstab file:

/dev/disk/by-id/ata-ST32000542AS_5XW1L5W5-part1 swap swap
defaults 0 0
/dev/disk/by-id/ata-ST32000542AS_5XW1L5W5-part2 / ext3
acl,user_xattr 1 1
/dev/disk/by-id/ata-ST32000542AS_5XW1L5W5-part5 /home ext3
acl,user_xattr 1 2
/dev/disk/by-id/ata-WDC_WD20EARS-00MVWB0_WD-WCAZA1209963-part1 /home/rsmits/Sounds
ext3 defaults 1 2
proc /proc proc defaults 0
0
sysfs /sys sysfs noauto 0
0
debugfs /sys/kernel/debug debugfs noauto 0
0
usbfs /proc/bus/usb usbfs noauto 0
0
devpts /dev/pts devpts mode=0620,gid=5 0
0

>
> However, you have to also export that filesystem in another line in the
> exports file.

Here is my /etc/exports file:

/home/rsmits/ *(rw,async,no_root_squash)

> And add an option to have subdirectories with filesystems
> attached, it is not explicitly done. I doubt you can even read inside
> Sounds.
>

I can, from the server side. Not from a client.
I don’t see why, because this exact same setup worked fine when I used
OpenSuse 11.3. When I moved to 11.4 I just imported all the existing mount
points.

I could read and write any file in /home/rsmits/Sounds from either the
server or the client. Now I can read and write to them while I’m on the
server but it fails to export the directory to the client.

I guess I could go back to 11.2 with Evergreen, and hopefully it would all
work again.

OpenSuse

Carlos E. R. wrote:

> On 2012-02-19 13:33, Carlos E. R. wrote:
>> And add an option to have subdirectories with filesystems
>> attached, it is not explicitly done
>
> I had to go, could not expand on that. The option is “nohide”.
>

OK. I’ll try it right away.

OpenSuse

Adding nohide to the options in the nfsserver doesn’t seem to make a difference.

On 2012-02-19 23:06, robertsmits wrote:
>
> Adding nohide to the options in the nfsserver doesn’t seem to make a
> difference.

But you did not do the other recommendation about exporting sounds.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

On 2012-02-19 22:28, Robert Smits wrote:
> Carlos E. R. wrote:
>
>> On 2012-02-19 03:56, robertsmits wrote:
>>
>> Please make use of quotes, it is difficult to know what you wrote and what
>> I wrote.
>> Sorry I was on the web forum and I don’t see how to make that editor add
> quotes.

It does, but as I don’t use it i would have to search.

> This is my nntp account which has quotes but not the CODE
> distinctions

You type them. Opening square bracket, the word “code”, then close square
bracket. At the end, the same, but with “/code”.

I also use nntp - you can notice looking at what is below the signature: no
link to the thread.

>> missing is the output of “mounts” at the server.
>
> I don’t understand. The fstab files shows the mount at swap, /, /home
> and /home/rsmits/Sounds. Aren’t these the server “mounts”?

No, that is what you request to mount, not what is actually mounted and
how. I meant the output of the command “mount”.

>> However, you have to also export that filesystem in another line in the
>> exports file.
>
> Here is my /etc/exports file:
>
> /home/rsmits/ *(rw,async,no_root_squash)

You need to also export sounds.


/home/rsmits/         *(rw,async,no_root_squash,nohide)
/home/rsmits/Sounds   *(rw,async,no_root_squash,nohide)

>> And add an option to have subdirectories with filesystems
>> attached, it is not explicitly done. I doubt you can even read inside
>> Sounds.
>
> I can, from the server side. Not from a client.

What I thought.

> I don’t see why, because this exact same setup worked fine when I used
> OpenSuse 11.3. When I moved to 11.4 I just imported all the existing mount
> points.

The manual says you can not.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Carlos E. R. wrote:

> On 2012-02-19 23:06, robertsmits wrote:
>>
>> Adding nohide to the options in the nfsserver doesn’t seem to make a
>> difference.
>
> But you did not do the other recommendation about exporting sounds.
>

I did tonight after we got back.

I moved the mount on the server from /home/rsmits/Sounds to /sounds. Then I
exported both /home/rsmits and /sounds with the no_all_squash option and
everything worked.

What I still can’t understand is why it worked fine for two years and then
stopped when I updated the server.

Thanks Carlos, for sticking with the explanation.