ZFS shared with NFS makes directory cover filesystem


 
Thread Tools Search this Thread
Operating Systems Solaris ZFS shared with NFS makes directory cover filesystem
# 1  
Old 12-28-2014
ZFS shared with NFS makes directory cover filesystem

I'm having a strange issue that I'm unsure what to do with. I have a new Solaris home server that I want hard mount /home to all our servers. I've made each user's home directory a filesystem so that I can manage every user with a quota. In each one of my server vfstab files I have it set as:

home-server:/DATA/home /home nfs - yes bg,rw, soft

The zpool is called DATA with a filesystem called home and each users home directory is a filesystem under that. So for example one could be /DATA/home/homer on the home server that would mount /home/homer when a user logs in to any server.

The issue is that when I log into a server, a new directory (not filesystem) is created with the exact same name on the home server under /DATA/home and it ignores that there is a filesystem there already. It's like a directory is created and it masks the users home filesystem. On the home server, I have to "zfs unmount DATA/home/homer" and then I can delete the directory that was created. I don't want to have to create a line for each user on each server's vfstab file, so is there a whilecard or something that I need to add?

I don't have this issue when I use automount. I don't like using automount because I sometimes have issues with it screwing up with LDAP and I have to login as root and restart it.
Thanks for the help!
# 2  
Old 12-28-2014
What's in /etc/auto_master on your NFS client systems?

And don't use soft unless you like data corruption - there are way too many applications coded that can't properly handle the intermittent IO errors that the soft option can result in.
# 3  
Old 12-28-2014
Thanks for the response and the tip on soft mounting achenle. I guess I should replace "soft" with "hard" instead?

As for the automount that works, this is what I have.


#/etc/auto_master
/home /etc/auto_home -rw


And for the home file I have:

#/etc/auto_home
* home-server:/DATA/home/&
# 4  
Old 12-28-2014
Is the automount service online on your NFS clients?

When you explicitly mount home_server:/DATA/home on the client at /home, you're conflicting with the automount service if it's online. I don't recall offhand what happens if you do that.

On your home server, what do you see at /DATA/home if you unmount all the user file systems? That's what gets mounted on the clients when you mount home_server:/DATA/home there. No file systems mounted under the file system shared by NFS are implictly exported from the server, and even if they're explicitly exported from the server they won't be mounted on the client, although some NFSv4 clients will silently mount such nested file systems.
# 5  
Old 12-28-2014
Thank you Achenle, that's a good point. I'm going to test this tomorrow and I'll come back and post the results. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to finish expanding a zfs filesystem?

I have a esxi 6.7 server running a Solaris 10 x86 vm (actually a bunch of them). The VM uses zfs for the pools (of course). I expand the underlying ESX logical disk, for example from 50GB to 100gb, then I set autoexpand=on <pool> that belongs to the esx logical disk. what am i missing to... (2 Replies)
Discussion started by: mrmurdock
2 Replies

2. Solaris

Extend zfs storage filesystem

Hello, Need to ask the question regarding extending the zfs storage file system. currently after using the command, df -kh u01-data-pool/data 600G 552 48G 93% /data /data are only 48 gb remaining and it has occupied 93% for total storage. zpool u01-data-pool has more then 200 gb... (14 Replies)
Discussion started by: shahzad53
14 Replies

3. Solaris

ZFS Filesystem

Hi, Recently we have new server T5 Oracle. We set up it for our database. For out database files we set one zfs filesystem. When i use iostat -xc the output as below. As you see the value for vdc4 is quite high. extended device statistics cpu device ... (32 Replies)
Discussion started by: tharmendran
32 Replies

4. HP-UX

A former shared filesystem which is not available

ggod morning, i need your helo, there is a hp_ux server named XYZ, somebody told me there was a shared network file system which was used for several tasks but now its not avalibale, but he doesnt remain which was the name of the machine which it it had this FS. evnthouh in a file called fstab... (2 Replies)
Discussion started by: alexcol
2 Replies

5. Solaris

Strange thing with solaris ls on nfs shared directory

I shared from linux server a dir with nfs3,solaris mount ok,and can tar files,but if i do ls or cp.. on mnt i have mount the nfs share root@solaris: mnt $ touch 2 root@solaris: mnt $ ls -lh ls: can't read ACL on .: Permission denied root@solaris: mnt $ ls 1.tar 2 root@solaris: mnt $ cp... (4 Replies)
Discussion started by: Linusolaradm1
4 Replies

6. UNIX for Dummies Questions & Answers

hwo to find shared filesystem and local filesystem in AIX

Hi, I wanted to find out that in my database server which filesystems are shared storage and which filesystems are local. Like when I use df -k, it shows "filesystem" and "mounted on" but I want to know which one is shared and which one is local. Please tell me the commands which I can run... (2 Replies)
Discussion started by: kamranjalal
2 Replies

7. Solaris

Mount old zfs filesystem

Hey all, I have a machine with 16 drive slots. Two of the drives have a ZFS mirror of the operating system, the other 14 contain the storage raidz. So, after installing Opensolaris on the OS drives, how can I remount the storage raid? TIA (11 Replies)
Discussion started by: PatrickBaer
11 Replies

8. Solaris

How do I export a zfs filesystem that I created?

I created a zpool and two ZFS volumes in OpenSolaris. I would like both ZFS volumes to be exportable. However, I don't know how to set that up. These are the steps I did: 1) Create the zpool using raidz1 across five disks. I have six disks and created a zpool across 5 of them. c4t0d0... (3 Replies)
Discussion started by: sqa777
3 Replies
Login or Register to Ask a Question