LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-16-2014, 03:25 AM   #1
Bijish
LQ Newbie
 
Registered: Jun 2014
Posts: 3

Rep: Reputation: Disabled
Error while editing file: E667: Fsync failed


Hello All,

We have a shared drive mounted on our Linux machine using NFSv4. But we are not able to write anything to the drives. Creation of files fail with the below error but once you cancel and exit we see the file created. Again if we try to edit and modify the file, the same error occures and the file is NOT updated. What could be the reasons for this error? A few screen captures below:

/appdata is the mount point which is shared and has write issues.
Quote:
[mqm@mqserver ~]$ nfsstat -m
/appdata from nfsserver.domain.com:/mq_36319scgdevnf/mq_36319scgdevnf
Flags: rw,relatime,vers=4,rsize=32768,wsize=32768,namlen=255,acregmin=0,acregmax=0,acdirmin=0,acdirmax=0,hard,proto=tcp,port= 0,timeo=600,retrans=2,sec=sys,clientaddr=10.11.121.131,minorversion=0,local_lock=none,addr=10.12.112 .113

[mqm@mqserver ~]$ more /etc/fstab

#
# /etc/fstab
# Created by anaconda on Fri Dec 6 07:20:21 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
#
nfsserver.domain.com:/mq_36319scgdevnf/mq_36319scgdevnf /appdata nfs rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,actimeo=0,timeo=600 0 0

[mqm@mqserver ~]$ cd /appdata
[mqm@mqserver appdata]$ pwd
/appdata

[mqm@mqserver appdata]$ date
Mon Jun 16 00:27:02 CDT 2014
[mqm@mqserver appdata]$ vi test.txt

"test.txt"
"test.txt" E667: Fsync failed
WARNING: Original file may be lost or damaged
don't quit the editor until the file is successfully written!
Press ENTER or type command to continue

[mqm@mqserver appdata]$ ls -ltr
total 4
-rw-rw-rw- 1 mqm mqm 0 Jun 11 11:26 amqmfsck.lkw
drwxrwxr-x 1 mqm mqm 96 Jun 12 23:45 mqm
-rw------- 1 mqm mqm 7 Jun 16 00:27 test.txt
[mqm@mqserver appdata]$ date
Mon Jun 16 00:27:57 CDT 2014
There is enough space available in the disk (about 50GB free). Also permissions are good too with rw for the user/group 'mqm'.

Will be happy to provide more details if required. Please help with your valuable suggestions and advices.

Thanks!
 
Old 06-16-2014, 11:50 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Quote:
permissions are good too with rw for the user/group 'mqm'
I don't think so.
According to this:
Quote:
-rw-rw-rw- 1 mqm mqm 0 Jun 11 11:26 amqmfsck.lkw
drwxrwxr-x 1 mqm mqm 96 Jun 12 23:45 mqm
-rw------- 1 mqm mqm 7 Jun 16 00:27 test.txt
you have read/write permission for owner only on the file test.txt.

Here is a walk-through for setting up your NFS, from start to finish.
 
1 members found this post helpful.
Old 06-16-2014, 12:16 PM   #3
Bijish
LQ Newbie
 
Registered: Jun 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you for your response! We will go through the link to troubleshoot from our end. But again strange things keep happening

the dir /appdata has this permission
Quote:
drwxrwxr-x 1 mqm mqm 240 Jun 16 11:08 appdata
[mqm@ausdlmq13 /]$ pwd
/
I changed the permission for text.txt to 775 and tried to edit again and when I try to save and exit this error is displayed:
Quote:
"test.txt"
"test.txt" E507: Close error for backup file (add ! to override)
Press ENTER or type command to continue
Then when I list the dir I get:
Quote:
[mqm@ausdlmq13 appdata]$ ls -ltr
total 12
drwxrwxr-x 1 mqm mqm 96 Jun 12 23:45 mqm
-rwxrwxr-x 1 mqm mqm 7 Jun 16 00:27 test.txz~
-rwxrwxr-x 1 mqm mqm 7 Jun 16 00:27 test.txt~
-rwxrwxr-x 1 mqm mqm 7 Jun 16 00:27 test.txt
-rw-rw-rw- 1 mqm mqm 0 Jun 16 11:05 amqmfsck.lkw
[mqm@ausdlmq13 appdata]$ pwd
/appdata
 
  


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
Error in part 5.4.1 of the book, editing the binutils configure file HeadOnAPike Linux From Scratch 7 05-25-2013 09:21 AM
E667: Fsync failed scotty2024 Debian 3 06-25-2010 08:01 PM
E667 Fsync failed Entwicklung Linux - Newbie 2 06-21-2010 03:02 PM
read-only file system error when editing a config file smallfrowne Linux - Newbie 5 02-19-2008 07:06 PM
error message after editing config file kklim Linux - Newbie 6 01-10-2006 08:09 PM


All times are GMT -5. The time now is 12:50 PM.

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