Avatar of AskLeo
AskLeo

asked on 

NFS share on Centos 6.6 become read only on its own

Hello all,

This is my first time dealing with NFS  so please bare with me. I am not the person who had originally configured NFS on this server and I have never first hand configured it myself. After this servers storage (DAS) experienced a drive failure we needed to rebuild the array as well as the LVM configurations. After doing this I had mounted the NFS share on all of the clients and everything seemed to be working correctly. when I came in the morning I had noticed that nothing had been written to the NFS shares as it should have. whenever I try to create a file I receive "touch: cannot touch `test.txt': Read-only file system". First thing i did was look at /etc/fstab on the server and the entry for the share is mounted as follows:

/dev/mapper/vg_servername_linuxBackup-lv_linuxBackup /mnt/linux_Backups ext4 defaults 0 0

This is /etc/fstab from the clients (both server and clients cannot write to it)

servername.domain.com:/mnt/linux_Backups/backup nfs _netdev,intr,nosuid,noexec,noatime,nfsvers=3


I did a little research and found that /etc/mtab has it listed as "rw" but /proc/self/mounts has it as "ro" It is my understanding that /proc/self/mounts is information that is supplied by the kernal, if this is the case how can I Change this so that it is listed as read and write?

Many thanks.
LinuxOperating Systems

Avatar of undefined
Last Comment
AskLeo
Avatar of noci
noci

Most probably the drive is set to readonly on the server host as a response to the drive error.

Check /etc/fstab of there is an option for errors=mount-ro
For ext2 that is an option to remount a failing disk as readonly.

you should be able te remount the disk rw with:

mount -o rw,remount /dev/disk/whatever.
Avatar of Seth Simmons
Seth Simmons
Flag of United States of America image

look at /etc/exports on the server; see if it has ro for that share
SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of AskLeo
AskLeo

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of AskLeo
AskLeo

ASKER

Hello,

my apologies for the confusion here. My solution was the best answer to this post. I will be sure to pick the correct answer with this in mind in the future. Do you require any action on my part ?

Thanks.
Avatar of noci
noci

Arnolds answer is that all previous answers are valid...???
So the others are worth nothing appearantly.
Avatar of AskLeo
AskLeo

ASKER

I had discovered that the Problem was related to hardware and could not be resolved by any configuration change that could be made on the server.
Linux
Linux

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

71K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo