LinuxQuestions.org
Help answer threads with 0 replies.
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 08-18-2017, 04:39 AM   #1
staticza
LQ Newbie
 
Registered: Aug 2017
Posts: 1

Rep: Reputation: Disabled
Can't copy/move folders to nfs


Hi guys,

I was hoping someone here could help me. I have been struggling with this for 3 days now.

I have mounted a nfs share on my VM. This nfs is running from Freenas.

Here are the details for the following files:

192.168.7.219 (Local VM):

/etc/fstab
------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=dc6c4878-46b0-4609-a0ca-778b4df9cfd5 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=89c77410-2ff4-4fef-85a2-bf1004f9a7ce none swap sw 0 0
192.168.2.10:/mnt/Vol1/usr_backups /mnt/backup nfs rw 0 0
--------------------------------------------------------------------


/etc/exports
--------------------------------------------------------------------

# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/mnt/backup 192.168.7.0/255.255.255.0(rw,sync,no_root_squash,no_subtree_check)

--------------------------------------------------------------------

FreeNAS

/etc/exports

/mnt/Vol1/usr_backups -alldirs -mapall="root":"" -network 192.168.7.0/24


The issue is that when I try copy or move a directory from my local VM to the mounted nfs, it gives me an error
e.g
cp: cannot create regular file '/mnt/backup/cpool/4/0/5/40555479bcdfd13db8eb0dd043704018': Operation not permitted

However, I can cd to the mount and create a file or directory there.

Please let me know if you need any more information.

Thanks
 
Old 08-18-2017, 06:54 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,827

Rep: Reputation: 2424Reputation: 2424Reputation: 2424Reputation: 2424Reputation: 2424Reputation: 2424Reputation: 2424Reputation: 2424Reputation: 2424Reputation: 2424Reputation: 2424
I'm pretty sure that's a permissions thing. Check that nfs doesn't drop to user nobody or something weird. Changing ownership/permissions of the directory of the mount point may help, or the 'user' option in fstab or the equivalent in /etc/exports.
 
  


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
move from dovecot to courier-imap folders skuli434 Linux - Newbie 0 08-02-2012 03:43 AM
FTP problem: can create n move file n folders but can't copy... Sayan Acharjee Linux - Server 8 03-04-2010 12:23 AM
trying to move some folders to new partitions and failing. mortalic Linux - Software 2 08-31-2009 08:03 PM
Can't move files/folders to trash... adred Linux - General 1 06-22-2008 05:40 AM
Move huge amount of folders with bash alexweb Linux - Newbie 4 10-27-2006 04:06 AM

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

All times are GMT -5. The time now is 05:35 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
Open Source Consulting | Domain Registration