Sub-folder in share disappears when mounting to other server


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Sub-folder in share disappears when mounting to other server
# 1  
Old 06-04-2019
Sub-folder in share disappears when mounting to other server

Hello,

I have 3 solaris 11.2 servers:
  • 1 and 2: are just fileservers with 1 zfs-share
  • server 3: i want to use this one to connect to the rest of our network (windows machines and a few solaris machines)

I created the shares on all servers like this (x needs to be replace with the number of the server; jobsx = jobs1 on server 1):
Code:
zfs create rpool/jobsx
zfs set share=name=jobsx,path=/rpool/jobsx,prot=smb,guestok=true rpool/jobsx
zfs set sharesmb=on rpool/jobsx
zfs set share=name=jobsx,path=/rpool/jobsx,prot=nfs rpool/jobsx
zfs set sharenfs=on rpool/jobsx

On server 3:
Mount the shares from server1 and server2 to a sub-folder :
Code:
mount server1:/rpool/jobs1/ /rpool/jobs3/server1
mount server2:/rpool/jobs2/ /rpool/jobs3/server2

On server3 i can see the files from server 1 and 2 but when i do a mount to server3 on a other solaris in the network i can't see the sub-folders in /rpool/jobs3 (idem when i try to connect from a windows machine)

How can i resolve this?

Regards
Wim
# 2  
Old 06-04-2019
I've read your post several times but I'm finding it difficult to comprehend what is going on here.

You have:
a) created an NFS share on Server1 (Solaris) and created an NFS share on Server2(Solaris). From Server3(Solaris) you are able to mount both these shares from Server1 & Server2 and they work.

b) created an NFS share on Server3(Solaris), are you trying to encompass the two mounts from Server1 & Server2 within this share???? and then mount this share from other systems. Subdirectories within the share on Server3 are then not accessible from the remote clients??

Is that right? Can you add any detail to this please?

Last edited by hicksd8; 06-04-2019 at 01:47 PM..
This User Gave Thanks to hicksd8 For This Post:
# 3  
Old 06-04-2019
I'm not understanding what you did, either. Are server 1 & 2 & 3 on the same physical box (zones)? In a cluster? That might help to explain it.
This User Gave Thanks to jim mcnamara For This Post:
# 4  
Old 06-05-2019
Hello,

@hicksd8: yes that's it.
So basically i want server 3 to be connected to the rest of the network and server 1 and 2 accessible through server 3.
Server 1 and 2 are physical servers, server 3 is a virtual (Hyper-V)
# 5  
Old 06-05-2019
Hmmmmm.............I must admit that I don't have much experience in passing NFS mounts within NFS mounts. So I'm still thinking about this one (and I'll be interested to see what my fellow moderators think) but these are my initial thoughts.

I expect that when you logged into Server3 and could see the two mounts from Server1 & Server2 that you were using an account with reasonable privileges; perhaps your own account or even root. Be aware that when you connect from a remote NFS client to Server3 it is probably using a lowly account, eg nobody, and so access can easily be caught up in standard Unix security. Therefore, I would be tempted to open up security by setting the mount points on Server3 to 777. Create some small files in the root of the share on Server3 and test whether you can see those from the remote NFS client(s). You might also try opening up security on the Server1 and Server2 shared directories to 777. Also check out how the NFS server security is configured in /etc/exports files on each NFS server.

Do be professional and record the directory/file you are changing security on, who the owner is, who the group is, and what the security mask is on every file before you change it so that you know how to reverse it all.

Obviously, if changing security does make it work, you still might not want to leave such open security in place, I understand that, but at least it will prove what the problem is. I'll post again if/when I have more thoughts on this.

Last edited by hicksd8; 06-05-2019 at 06:07 AM..
This User Gave Thanks to hicksd8 For This Post:
# 6  
Old 06-05-2019
Sorry, but I'm confused too. What do you actually need to achieve for your business? Can you help me understand?
  • Are servers 1 & 2 on a private segment of the network or not routable so that server 3 has to be a conduit? Why are they like this?
  • Does '...connect to the rest of our network...' mean that it actively opens connections, or do you just mean on the same subnet or can be routable?
  • Are you trying to achieve HA with a single point to contact?
  • Are you trying to present a single 'share' for the end-clients rather than two?
  • Are you trying to ensure that the data is read-only and only certain portions are visible at all?

Sorry for being confused, but these and other possible desired outcomes have all sorts of other ways to better deliver them.



Thanks in advance,
Robin
# 7  
Old 06-05-2019
Security is set to 777 for all directories.

@rbatte1

All servers are in the same network/subnet
Code:
Are you trying to present a single 'share' for the end-clients rather than two?

Yes, because there are several machine who needs to connect to the shares on server 1 and 2, and last week we had a crash on server 1 and it took quiet some time to find all machines connected to this server. So if this happens again i just need to adjust the mounting point in server 3.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Mounting a samba share

Hi, I need to mount a directory from a Windows server to a CentOS box. The Windows server used is Windows Server 2003, and the path to the directory that I want to mount on CentOS is C:\Tomcat6\webapps\NASApp\logs. I am not sure of the correct way to mount this on CentOS, as most of the... (2 Replies)
Discussion started by: anaigini45
2 Replies

2. UNIX for Beginners Questions & Answers

Mounting Windows Share to Linux Server

Hi Folks - I need to mount a Windows Share to a Linux server. What is the best/easiest way to do this? Is this 'how-to' guide accurate: How to Share Files Between Windows and Linux Or is there a better method you could share? Thanks! (8 Replies)
Discussion started by: SIMMS7400
8 Replies

3. Solaris

Mounting 2012R2 NFS Share on Solaris 10

Hi all, new here. I'm attempting to mount an NFS share I've created on a 2012r2 esx VM on my solaris 10 vm, I'm using the following command: mount 2012box:/sharename /mnt and I get the following result: nfs mount: mount: /mnt: Operation not supported Both vms can ping one... (3 Replies)
Discussion started by: Meshuggener
3 Replies

4. UNIX for Dummies Questions & Answers

[Solved] error while mounting windows share on linux

Hi whan i am trying to mount a windows share on linux i received the following error can some one help me with thsi # mount -t cifs \\\\servername\testdata -o username=xw27,password=*es*feed /test Mounting the DFS root for a particular server not implemented yet No ip address specified... (5 Replies)
Discussion started by: robo
5 Replies

5. Solaris

mounting windows share folder

please help me,,i need step to mount windows share folder,,i try samba and nfs and it didnt work (in my linux server the command is fine),,can somenone give me an example for this to be done? (0 Replies)
Discussion started by: Cellscript
0 Replies

6. IP Networking

Problem Mounting NFS share

I have one machine "The server" ip: 192.168.1.1, it runs ubu 8.04(LTS) and - I have a folder (/shareme) that I want to share with other linux machines on my LAN. - The server runs NFS server and common and portmap and so do the other machines on my LAN. - The server has the export file with the... (2 Replies)
Discussion started by: fcron
2 Replies

7. UNIX for Advanced & Expert Users

Help mounting Windows share in UNIX

We recently upgraded one of our engineering servers, and now the lone UNIX box that houses older CAD files can not connect to it. I have tried every variation of mount I can find, but to no avail. Help is appreciated. Here are the specs: Server: Windows 2003 x64 with Unix Services for Windows... (8 Replies)
Discussion started by: shatterstorm
8 Replies

8. UNIX for Dummies Questions & Answers

Mounting an NFS share: Kickstart Postinstall

For my kickstart install I use an NFS share on another machine in order to install the packages. For the most part, all configuration required after each time I reimage is set up in the kickstart file, but this one portion is giving me issues. I'm trying to mount an NFS share in the kickstart post... (0 Replies)
Discussion started by: Colton
0 Replies

9. Solaris

Mounting CIFS share

Is it possible to mount a samba share on a solaris system? I know this is possible with Linux using a fstype of smbfs. I am trying to aviod having to share the same directories via cifs and nfs on a solaris box to windows and solaris clients. (3 Replies)
Discussion started by: mhm4
3 Replies

10. Windows & DOS: Issues & Discussions

Mounting a windows share on AIX

Hi, How can I mount a Windows share (over samba) on an AIX machine? I know there is a utility called smbmount on Linux, but alas, I cannot find out how to the same thing on AIX. anyone have any ideas? thanks! (3 Replies)
Discussion started by: szahir1
3 Replies
Login or Register to Ask a Question