LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-20-2011, 10:19 AM   #1
mmcc0912
Member
 
Registered: Mar 2010
Posts: 31

Rep: Reputation: 0
Following CIFS mount through NFS mount.


I'm having some trouble in trying to make a clean solution and tougher time searching to not get the basic mounting pages/posts. So I thought I'd throw this out here.

For Oracle, we have an app server that runs /sharedapps and is an NFS mount for all other app/db nodes. What I'm working on now is that on this app server that hosts/exports /sharedapps file system has a sub folder with a CIFS mount (/sharedapps/data/appmount). The thing is that the remote nodes with the NFS mount to /sharedapps don't see the remote data in /sharedapps/data/appmount, only the main app server that has the CIFS connection. Realistically it makes sense why, but I'm trying to research if there is a way to have it do so. This is where I'm struggling.

We are working on this in a dev instance right now but soon to be in production. In production, there are many DB nodes that could process a request which is why it would be best to have the NFS connection follow the remote CIFS connection.

Thanks for your input.
 
Old 07-20-2011, 01:31 PM   #2
mikey99
Member
 
Registered: Nov 2008
Location: UK
Distribution: RHEL, Fedora
Posts: 68

Rep: Reputation: 12
First of all, what OS are you running?

Can you be a bit clearer on what dirs are NFS, and what dirs are CIFS.

Perhaps, post your /etc/exports file?
 
Old 07-20-2011, 04:41 PM   #3
ADxD_7
Member
 
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152

Rep: Reputation: 23
This is just an idea based on something simalar I have done in the past, I have no idea how CIFS will work mounting inside a NFS mounted directory but it sounds like you will have to do a hierarchical mount.

So of course first mount your /sharedapps on the client then mount the CIFS share inside it:

mount -t cifs //server-name/share-name /sharedapps/data/appmount -o username=shareuser,password=sharepassword,domain=nixcraft

Best thing I can think of - I dont use CIFS though so it may not work
 
Old 07-21-2011, 10:30 AM   #4
mmcc0912
Member
 
Registered: Mar 2010
Posts: 31

Original Poster
Rep: Reputation: 0
Sorry, yes, should have been more on environment stuff.

app server:
RHEL 4.8.

exports file:
/sharedapps FQDN4DBnode(rw,sync,no_root_squash)

CIFS- mount -t cifs //windows2003server/share$ -o username=user,password="pass" /sharedapps/data/appmount

DB server:
RHEL 5.4.

fstab file:
FQDN4appnode:/sharedapps /sharedapps nfs rw,hard,bg,proto=tcp,rsize=32768,wsize=32768,noac 0 0


On the app node, I can view the data on /sharedapps/data/appmount through the CIFS connection. The DB node, when navigating through NFS to /sharedapps/data/appmount it doesn't see the data through CIFS connection. I feel that it's the app node making the CIFS connection request to get the data when locally requested. But when the DB node does it, it' not linking to the CIFS connection to get a view of the data on that connection. Sorta to say, the app node will request the data when he knows of a need, but he doesn't know when an NFS connected device is wanting to see it. The app node would (for lack of better term) proxy the request for the mount point (/sharedapps/data/appmount) when requested to be viewed by the NFS connected node.

I have a feeling that it's not possible, but I wanted to make a post to see if someone that is more root'ed in the cores of Linux would have any insights to it. A few that I have talked to, scratch their heads and say "good luck with that ..." Large community is better than a few colleges ..

Hope this info is helpful.
 
Old 07-21-2011, 07:24 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,374

Rep: Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383
If(!) I understand correctly, you have a W2k3 server that shares out a dir.
The App Server mounts the W2k3 dir via cifs.
It then exports dir that via nfs

The DB server tries to mount/access the dir on the App Server, using nfs...

I think the 2 FS types are going to clash; how would it handle locking? cifs & nfs don't talk to each other..

Why can't both RHEL systems just mount from W2k3 directly, via cifs (as app server already does)?
 
Old 07-22-2011, 10:00 AM   #6
mmcc0912
Member
 
Registered: Mar 2010
Posts: 31

Original Poster
Rep: Reputation: 0
I agree, they don't talk together. Spent many hours researching if through the NFS mount, the CIFS request could be processed by the app node. I haven't found anything, an option in the man pages or any attempt to tweak myself. That's why I wanted to post it out to see if someone had the insights to it. There are many better Linux folks out there than me, converted to Linux just a couple of years ago, not seasoned enough yet ...

Yes, they could. In production, several nodes (both app and DB, 7 all together) rely on the /sharedapps NFS link to process and share data. Any app or DB node can run a request and handle information from this data. That's why it's optimal if this could work. Right now working on processing through an FTP package in the DB tier so that they can independently process and set the files in the /sharedapps volume. But I still like the discussion and hopeful to gain additional knowledge through community discussion.

Thanks !
 
Old 07-22-2011, 12:14 PM   #7
mikey99
Member
 
Registered: Nov 2008
Location: UK
Distribution: RHEL, Fedora
Posts: 68

Rep: Reputation: 12
Quote:
Originally Posted by mmcc0912 View Post
Sorry, yes, should have been more on environment stuff.

app server:
RHEL 4.8.

exports file:
/sharedapps FQDN4DBnode(rw,sync,no_root_squash)

CIFS- mount -t cifs //windows2003server/share$ -o username=user,password="pass" /sharedapps/data/appmount
This looks like you are trying to share a child of the main shared filesystem. By default, NFSv3 will not automatically export the contents of the child with its parent. Solution is to use the crossmnt option for the parent, or nohide option on the child.

Your /etc/exports file should look like this...
Code:
/sharedapps               FQDN4DBnode(rw,sync,no_root_squash,crossmnt)
/sharedapps/data/appmount FQDN4DBnode(rw,sync,no_root_squash)
or
Code:
/sharedapps               FQDN4DBnode(rw,sync,no_root_squash)
/sharedapps/data/appmount FQDN4DBnode(rw,sync,no_root_squash,nohide)
This *may* work. No guarantees though :-)
Let me know if it does.
 
Old 07-22-2011, 12:21 PM   #8
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,219

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
i don't see why mikey's solution wouldn't work
mount points are directories, nothing more, nothing less, a device can be mounted anywhere in the tree regardless of what the filesystem in which the mount point resides, the only caveat is the parent filesystem has to be mounted first to ensure the mount point exists
 
Old 07-23-2011, 10:36 PM   #9
mmcc0912
Member
 
Registered: Mar 2010
Posts: 31

Original Poster
Rep: Reputation: 0
First of all, thank you mikey99. I ran through some initial settings but it wasn't as fluent as I'd like. I'm sure I'm missing something. Browsing from the DB node was slow when it started to hit the sub-folders. I'm sure it's just something in me getting the right method into the configs.

Frieza, thanks for the additional note. And the signature. Musical reference speaks out, being a musician ... Fast becoming an ex-windoze person ...

I'm going to run it through my dev boxes and run the settings. Thanks much to everyone for contributing. My failure was the manz on exports. I focused on the mount options. Being crazy days and all, I hope to get the time in this week and make a note on it. But feeling good about it, just need to tinker without having impacts to the projects running on the actual dev boxes.

Take care ..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Share CIFS mount as NFS pppdddrrr Linux - Server 5 04-11-2013 05:34 AM
manual mount cifs works but srcipt mount cifs has mount error (13): Permission denied CADIT Linux - Newbie 6 11-20-2009 02:48 PM
Can't mount nfs- or cifs-share rw in Debian pingu Linux - Networking 0 07-03-2007 07:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration