LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-14-2008, 12:12 PM   #1
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Question 2.6.27 xfs root filesystem read only problem


Hi !

I upgraded my Slack 12.1 from 2.6.26.5 to 2.6.27, and my xfs / filesystem is now mounted as read-only because i have a read only error when i try to create something on it.

Weird thing : mount and cat /proc/mounts shows / is rw !!!

Wrong kernel (security) settings or new parameter missing ?
 
Old 10-15-2008, 01:08 AM   #2
Witi
LQ Newbie
 
Registered: Oct 2008
Location: Cologne, Germany
Distribution: Gentoo
Posts: 6

Rep: Reputation: 0
Hi.

Same problem here with Archlinux. E.g. I can create a directory, but can't do a chmod on it. And on boot many commands fail.

But it only concerns the root partitions, other xfs partitions with the same mount options are working.
I'm using the following mount options:
Code:
/dev/sda2 / xfs defaults,noatime,nodiratime,logbufs=8,nobarrier 0 1
Today I played a bit with the options and found a workaround. I removed all options except for defaults. After a reboot I had write access.

There is another problem with xfs, barriers handling in 2.6.27, but i think we discovered here something else.

Witi
 
Old 10-16-2008, 04:21 AM   #3
namor
LQ Newbie
 
Registered: Oct 2008
Location: Saarbrücken, Germany
Distribution: archlinux
Posts: 1

Rep: Reputation: 0
Same problem here.
I use the same mount options as Witi, but "nobarrier" is missing.

Quote:
Originally Posted by Witi View Post
Today I played a bit with the options and found a workaround. I removed all options except for defaults. After a reboot I had write access.
Witi
The workaround works for me too; thanks!
 
Old 10-16-2008, 02:19 PM   #4
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
Be careful ! nobarrier is _not_ for production use. It makes xfs approx. 10 times faster, but any powerdown can corrupt the whole filesystem.

Stay tuned.
 
Old 10-17-2008, 06:04 AM   #5
Witi
LQ Newbie
 
Registered: Oct 2008
Location: Cologne, Germany
Distribution: Gentoo
Posts: 6

Rep: Reputation: 0
http://bugs.archlinux.org/task/11765

In Archlinux this bug seems to be fixed with the new kernel version 2.6.27.1. I can confirm this.
Quote:
Be careful ! nobarrier is _not_ for production use. It makes xfs approx. 10 times faster, but any powerdown can corrupt the whole filesystem.
no risk no fun.
No, you are right. But in production you should an UPS to prevent every powerdown.
 
Old 10-19-2008, 06:42 AM   #6
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
Production means "non-experimental use", not exclusively "server use".
2.6.27.2 seems to fix our problem. Let's test !
 
Old 10-19-2008, 02:52 PM   #7
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
Arr... don't works ! Always read-only.
It said /dev/tty not found.
 
Old 10-24-2008, 07:03 PM   #8
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
2.6.27.3 solved this issue.
Thanks all, and thanks to kernel developers :^).
 
Old 02-11-2009, 04:16 AM   #9
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
And now, with approx. 9 monthes testing, i can tell you that : don't use XFS on a workstation. This filesystem is too slow. I'm sure it rocks handling 1+ Tera files, but it's a pain on a desktop. I switched back to ext3/Reiserfs combo, et voila.
 
Old 02-12-2009, 12:20 AM   #10
Witi
LQ Newbie
 
Registered: Oct 2008
Location: Cologne, Germany
Distribution: Gentoo
Posts: 6

Rep: Reputation: 0
Well using the standard settings could be slower than other filesystem. Did you try to "tune" it?
 
Old 02-12-2009, 02:50 AM   #11
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
Yes i did, resulting 50% of our computers unusable in case of crash or power failure :^D.
 
  


Reply



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
Remount root filesystem read-only zsolt_tuser Linux - General 11 04-27-2011 04:01 PM
How can I have: Root has Read-Write, user has read only for the boot filesystem? xmrkite Linux - Software 6 10-16-2008 04:31 AM
root filesystem read-only: can't reboot! paulsm4 Red Hat 3 04-10-2007 01:50 PM
Root filesystem mounting as Read-Only paddyjoy Linux - Newbie 11 03-21-2006 03:32 PM
Read-only root filesystem at the boot karimson Linux - General 0 03-20-2003 05:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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