Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Btrfs partitions keeps going read-only after heavy use.
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
Petros
n00b
n00b


Joined: 28 Mar 2015
Posts: 50

PostPosted: Thu Oct 01, 2015 11:25 am    Post subject: Btrfs partitions keeps going read-only after heavy use. Reply with quote

Hi gentooers.

I am facing a problem with my convrted BTRFS partitions (/ and /home)

These partitions were formated at fisrt as ext4 but I though I should give BtrFS a chance. I followed everything our wiki says and my partitions were functioning without problem.

Although I noticed that after intense use of a partition, it goes read-only. I can't remount it as r-w and the only way out is reboot.

Code:


/dev/sda4               /               btrfs           relatime,nospace_cache,autodefrag,compress=lzo          0 1
/dev/sda6               /mnt/home       btrfs           relatime,nospace_cache,autodefrag,compress=zlib          0 2



I used to mount them with space_cache option but nothing changed.

I am running on aufs-sources 4.2.1 and 4.1.8. Both have the exact problem.

In kernel config BtrFS submenu has nothing else selected besides the fs itself.

EDIT: I forgot to mention that
Code:
btrfs chech --repair /dev/sdX,Y
finds bad metadata but doesn't actually fix anything.
Back to top
View user's profile Send private message
genoobish
n00b
n00b


Joined: 18 Feb 2015
Posts: 73

PostPosted: Thu Oct 01, 2015 2:52 pm    Post subject: Reply with quote

Quote:
e partitions were formated at fisrt as ext4 but I though I should give BtrFS a chance


That's a known problem. The ext4-btrfs conversion tool broken... http://article.gmane.org/gmane.comp.file-systems.btrfs/48347/match=btrfs+read+only+convert
this is just the last time I've seen it mentioned on the btrfs mailing list: http://permalink.gmane.org/gmane.comp.file-systems.btrfs/48349

the first link suggests this:
Code:
Try the rollback explained in the wiki
btrfs-convert -r /dev/xxx

(but if you rollback successfully don't try the btrfs-convert again ;) )

I've had also the same problem but I ended up reformating it to btrfs and restoring the backup.

edit: folowing the btrfs mailing list is a good idea (I use the rss feed for that, for example).
Back to top
View user's profile Send private message
Petros
n00b
n00b


Joined: 28 Mar 2015
Posts: 50

PostPosted: Fri Oct 02, 2015 1:46 pm    Post subject: Reply with quote

genoobish wrote:

I've had also the same problem but I ended up reformating it to btrfs and restoring the backup.

edit: folowing the btrfs mailing list is a good idea (I use the rss feed for that, for example).


I did as you proposed. So far, so good. We will see if anything happens again.

Just an offtopic but kind of relevant question: After untaring my user (as root) I had to chown everything in my ~. Adding -p switch when taring, should solve this?

Thank you for the help!
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