[SOLVED] unsuccessful at adding more NFS shares howto fix?
Linux - NewbieThis 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!
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
On my CentOS 6.x server I am running NFS to feed to the house my media of movies, videos, and music. As I was running out of storage space I added an other 1.5TB drive yesterday. I have moved all of my TV shows over to that drive and am attempting to add that to the NFS shares.
No matter what I try when I go to mount the new share, without errors mind you, it only mounts the first point and never the new one.
On the server my /etc/exports looks like the following:
the issue is not with the mount command or the share as the first export works flawlessly and has for some time. the new share is the issue. here is an update:
On my CentOS 6.x server I am running NFS to feed to the house my media
of movies, videos, and music. As I was running out of storage space I
added an other 1.5TB drive yesterday. I have moved all of my TV shows
over to that drive and am attempting to add that to the NFS shares.
No matter what I try when I go to mount the new share, without errors
mind you, it only mounts the first point and never the new one.
On the server my /etc/exports looks like the following:
With NFS4, you can only have one fsid=0 on a server, such as /exports here. You need to mount everything else on the server under that fsid=0. And with NFS4, when you go to mount the directory on clients, you need to refer to the subdirectory under the fsid=0 directory.
E.g., if you mount the new file system as /exports/NFS_TV_Shows, you would mount the directory as servername:/NFS_TV_Shows.
So if I follow this correctly I should not have the new drive mount at /NFS_TV_Shows, but at /exports/NFS_TV_Shows then the NFS4 will function properly?
You can_not_ re-use fsid, even with NFSv3. You already have a "fsid=3010", so re-enumerate the share as "fsid=3020" or something. And what's with the "/centos/public" at the end of the directory?
I was trying to copy the similar path you had setup under /exports. I had no clue but after the first time trying it with just /NFS_TV_Shows and getting errors for duplication I added the two sub-directories.
Bryan J Smith - Professional, Technical Annoyance
b.j.smith at ieee.org - http://www.linkedin.com/in/bjsmith
American Libertarism died in the '70s with the invention of
sensationalist US mass media. Two great casualties have been
the NRA and Planned Parenthood; demonized by opposing media,
all while ignoring their history and the 97% they really do.
So I have made the following changes:
root@centos ~]# cat /etc/fstab
# Created by anaconda on Fri Jan 4 14:43:59 2013
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
/dev/mapper/vg_centos-lv_root / ext4 defaults 1 1
UUID=7b6db420-abc8-4ad9-a8a1-a8da83552e09 /boot ext4 defaults 1 2
/dev/mapper/vg_centos-lv_home /exports/centos ext4 defaults 1 2
/dev/mapper/vg_centos-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
UUID=2284e13a-7d41-461d-aa97-131612ac6174 /exports/NFS_TV_Shows ext4 rw,user 0 0
[root@centos ~]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
ext4 50G 4.5G 43G 10% /
tmpfs tmpfs 939M 0 939M 0% /dev/shm
/dev/sda1 ext4 485M 90M 371M 20% /boot
ext4 1.8T 1.6T 97G 95% /exports/centos
/dev/sdb1 ext4 1.4T 642G 665G 50% /exports/NFS_TV_Shows
[root@centos ~]# cat /etc/exports
#NO#HOMEDIRS# /exports/centos *(rw,insecure,no_subtree_check,fsid=3000)
[root@centos ~]# d /exports/
drwxr-xr-x. 4 root root 4096 Mar 10 10:17 ./
dr-xr-xr-x. 27 root root 4096 Mar 9 16:30 ../
drwxr-xr-x. 7 root root 4096 Feb 2 10:04 centos/
drwsrwxrwx. 4 root root 4096 Mar 9 16:56 NFS_TV_Shows/
[root@centos ~]# d /exports/NFS_TV_Shows/centos/public/
not sure if this is progress, but now I am having permissions issues:
ssma-imac:~ ssma$ showmount -e jackknife
Exports list on jackknife:
so the exports are there, just not sure why im getting permissions errors.
also as an experiment i used the following command to mount the share and created a perpetual loop... not good:
ssma-imac:~ ssma$ mount -t nfs jackknife:/exports/NFS_TV_Shows /Users/ssma/Desktop/LVM2/
it mounted without issue, but when I looked into it in my finder I saw under jackknife both the centos and NFS_TV_Shows. Problem is that when I open the NFS_TV_Shows directory it has a duplicate of jackknife...
found the answer, I was being very blonde when I received the instructions. I did not need to add the 2nd line for the NFSv4 with the fsid=0 line. Once I commented that out, and ran exportfs -r I was then able to umount and mount the NFS share like always but now I have access to the new HDD.