Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[abandoned] xfs rootfs mounted read-only
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
dalu
Guru
Guru


Joined: 20 Jan 2003
Posts: 502

PostPosted: Sun Jan 24, 2016 8:59 pm    Post subject: [abandoned] xfs rootfs mounted read-only Reply with quote

rootfs is xfs, no separate /boot

no matter what, it's mounted as ro and it stays read-only

Code:

/dev/md0 on / type xfs (ro,relatime,attr2,inode64,noquota)


Code:

root@s2 ~ # journalctl -xb | egrep -i "xfs|read-only"
Jan 24 21:47:33 s2.asd.com kernel: SGI XFS with ACLs, security attributes, realtime, no debug enabled
Jan 24 21:47:33 s2.asd.com kernel: XFS (md0): Mounting V4 Filesystem
Jan 24 21:47:33 s2.asd.com kernel: XFS (md0): Ending clean mount
Jan 24 21:47:34 s2.asd.com systemd-tmpfiles[1675]: symlink(../proc/self/mounts, /etc/mtab) failed: Read-only file system
Jan 24 21:47:34 s2.asd.com systemd-tmpfiles[1675]: chown(/var/cache/man) failed: Read-only file system
Jan 24 21:47:34 s2.asd.com systemd-tmpfiles[1675]: /var/lib/machines does not exist and cannot be created as the file system is read-only.
Jan 24 21:47:34 s2.asd.com systemd-tmpfiles[1675]: /var/lib/systemd/coredump does not exist and cannot be created as the file system is read-only.
Jan 24 21:47:34 s2.asd.com systemd-tmpfiles[1675]: Failed to create file /var/log/wtmp: Read-only file system
Jan 24 21:47:34 s2.asd.com systemd-tmpfiles[1675]: Failed to create file /var/log/btmp: Read-only file system
Jan 24 21:47:34 s2.asd.com systemd-tmpfiles[1675]: chmod(/var/log/journal) failed: Read-only file system
Jan 24 21:47:55 s2.asd.com sshd[1748]: pam_lastlog(sshd:session): unable to open /var/log/lastlog: Read-only file system


btw I can
mount -o remount,rw /
without a problem

there's more:
it's remount as ro after "a while" like about 15 minutes.
There's nothing in the logs as to why this is happening


Last edited by dalu on Sun Jan 24, 2016 10:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
dalu
Guru
Guru


Joined: 20 Jan 2003
Posts: 502

PostPosted: Sun Jan 24, 2016 10:02 pm    Post subject: Reply with quote

well never mind.
I'll move on over to ext4 and be done with it.
xfs root was a bad idea. Seems to be working well on Centos 7 and/or Fedora 23, just not Gentoo for whatever reason.
And I lack the patience to find out why.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Tue Jan 26, 2016 2:09 am    Post subject: Reply with quote

Generally when filesystem corruption is detected it is mounted ro to avoid further damage. I'd check the health of this hard drive.
Back to top
View user's profile Send private message
dalu
Guru
Guru


Joined: 20 Jan 2003
Posts: 502

PostPosted: Tue Jan 26, 2016 2:25 am    Post subject: Reply with quote

drives are fine, ext4 works like a charm
and like I wrote xfs works on other distros

maybe because there was no fstab entry since you don't need that with systemd
but maybe you do with xfs. shrug idk
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2971
Location: Germany

PostPosted: Tue Jan 26, 2016 2:29 am    Post subject: Reply with quote

xfs as root (on lvm,luks,raid) works fine for me. unfortunately I have no suggestions as to what could be wrong on your end...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum