Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-11-2011, 07:41 PM
|
#1
|
LQ Newbie
Registered: Mar 2011
Posts: 11
Rep:
|
Mounting a new drive under an NFS share
I could use some help mounting a new drive under an NFS share on a server.
I've been running an NFS share on a server without issue for about 6 months. I've installed a new hard drive(formatted as ext3) in the server and mounted the drive under the NFS share. On the server, I can create, modify and delete files under the mount point for the drive.
From the clients, I cannot see any files that are stored on the drive. In other words, I can navigate through the NFS share as normal, but when I click on the mount point for the new drive, there are no files visible.
If I un-mount the drive and create a file under the mount point, the clients can see the newly created file.
Does anyone have any thoughts on how to mount the drive and have the files visible through NFS?
Thanks in advance,
Shaticus
|
|
|
03-11-2011, 08:18 PM
|
#2
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824
|
So, for example, you have server1 exporting server1:/export, and now you want to share server1:/export/newdisk too?
Have you exported both /export and /export/newdisk in /etc/exports? You have to.
|
|
|
03-12-2011, 10:12 AM
|
#3
|
LQ Newbie
Registered: Mar 2011
Posts: 11
Original Poster
Rep:
|
Hi AlucardZero,
I have been exporting server1:/export and want to have the new disk mounted under this existing share.
My setup is this: I have a directory, /export, shared via NFS as server1:/export. Under the /export directory, I've created a sub-directory, archive, and mounted the drive as /export/archive on the server. I'd like to have /export/archive directory available through the NFS share server1:/export. When connecting to server1:/export from the clients, no files are listed in the archive directory.
As suggested, I've added server1:/export/archive to the /etc/exports file and restarted the NFS daemon. On the clients, I can mount server1:/export/archive and see all the files stored on the new drive. If I try to access the archive directory through the server1:/export share, I can see the archive directory, but no files are listed.
Is it possible to allow access to the new drive through a sub-directory of an NFS share?
Thanks for your help,
Shaticus
|
|
|
All times are GMT -5. The time now is 01:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|