Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New filesystem: Btrfs!
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 19, 20, 21 ... 24, 25, 26  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2632
Location: Bay Area, CA

PostPosted: Mon Feb 08, 2010 8:14 pm    Post subject: Reply with quote

Letharion wrote:
Dont Panic wrote:
In your case, if you get an Oops or a segfault, the first thing they would request is that you try to reproduce the error with more recent btrfs code (they aren't backporting any of the new code to older kernel releases at this time).

I'm copying some stuff right now that would be a shame to loose.
A thought crossed my mind. If I do have a problem, and the devs want me to "just" try newer code, have I really accomplished anything then?
Would it not then be more useful to use newer code right away?
Also, should I pull every single use-flag, just because, while I'm at it?
You should be running 2.6.33-rc7. There are a bunch of bugfixes between 2.6.33-rc6 and rc7. So, it would be a waste if you have to repeat the whole thing with rc7 anyway. And there are even bigger fixes between 2.6.31-r6 and 3.6.33.

Vanilla RCs are VERY stable. Have never failed on me. I am running rc6 at this time and stable. Will move to final when it comes out in a couple of weeks.
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1203
Location: Sweden

PostPosted: Mon Feb 08, 2010 9:30 pm    Post subject: Reply with quote

I am running vanilla 2.6.33_rc7.
Backups are made.
Openoffice is compiling.
Back to top
View user's profile Send private message
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Mon Feb 08, 2010 11:32 pm    Post subject: Reply with quote

Letharion wrote:
Shining Arcanine wrote:
Have you tried compiling openoffice on it? If you have not and you are willing to try, be sure to backup your data before doing it. It will from my experience, ruin your partition and you will need to restore your latest backup.


I thought that problem was solved? I need to move some stuff around, but I'll give it a go :)
Assuming it _does_ fail, what should I keep in mind before I do this, so I can provide a useful bug-report?


I had that issue in 2.6.33-rc4. I have checked the patches that have been merged with the newer kernels all the way to 2.6.33-rc7 and there have been none that appear to describe the issue I had.
Back to top
View user's profile Send private message
Dont Panic
Guru
Guru


Joined: 20 Jun 2007
Posts: 308
Location: SouthEast U.S.A.

PostPosted: Tue Feb 09, 2010 5:43 am    Post subject: Reply with quote

OpenOffice (app-office/openoffice-3.1.1-r1) compiled successfully on my smallish 9.54GB btrfs root partition with compression (not compress-force) and single metadata.

I'm using the same Btrfs code that is in 2.6.33-rc7, but I've backported it to 2.6.32.

I have had trouble with Btrfs and OpenOffice in the past, but it's been a while. And I still have some things I can do to 'Oops' btrfs, even with the current code (revolving around filling the disk).

I've never lost data with btrfs AFAIK, but I've structured my testing so that I seldom check my data integrity after I've crashed Btrfs. I just reformat and try again. :)
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1203
Location: Sweden

PostPosted: Tue Feb 09, 2010 7:28 am    Post subject: Reply with quote

And.... I'm alive!
Is there something I should double check, to make sure everything is fine? No apparent issues at least.
Nothing interesting from dmesg, I poked around in /var/log/ didn't see anything there. Not sure what to look for.
Rebooting...and everything looks fine still.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2632
Location: Bay Area, CA

PostPosted: Tue Feb 09, 2010 8:31 am    Post subject: Reply with quote

Letharion wrote:
And.... I'm alive!
Is there something I should double check, to make sure everything is fine? No apparent issues at least.
Nothing interesting from dmesg, I poked around in /var/log/ didn't see anything there. Not sure what to look for.
Rebooting...and everything looks fine still.
If you have space, try tarring up the whole '/' with tar and --one-file-system option. If you can read the whole filesystem still, you should be good. Remember it does checksums, so if you read it all well, all is well. Hopefully!
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1203
Location: Sweden

PostPosted: Tue Feb 09, 2010 11:43 am    Post subject: Reply with quote

Quote:
If you have space, try tarring up the whole '/' with tar and --one-file-system option. If you can read the whole filesystem still, you should be good. Remember it does checksums, so if you read it all well, all is well. Hopefully!

Code:
april ~ # mount | grep "on / "
/dev/sdc2 on / type btrfs (rw,noatime)
april ~ # tar cf everything.tar / --one-file-system
tar: Removing leading `/' from member names
tar: /var/tmp/kdecache-letharion/kpc: file changed as we read it
tar: Removing leading `/' from hard link targets
tar: /root/everything.tar: file is the archive; not dumped
april ~ #
I removed all of the "socket ignored" from the output, but nothing above looks like it should cause concern, right? No errors in dmesg either.
Back to top
View user's profile Send private message
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Tue Feb 09, 2010 1:12 pm    Post subject: Reply with quote

That looks fine. It seems like Btrfs is running well for you. I guess I will have to give it another try. If things go badly, watch me rant about it in this thread. :lol:
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1203
Location: Sweden

PostPosted: Tue Feb 09, 2010 1:14 pm    Post subject: Reply with quote

Sweet. If there are other ways of potentially running btrfs over a cliff that I should try, let me know. If not, then I didn't break very much here and I'll need to go looking for other ways of messing up my system. ^^ Perhaps I'll try grub 2.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2632
Location: Bay Area, CA

PostPosted: Tue Feb 09, 2010 5:02 pm    Post subject: Reply with quote

Letharion wrote:
Sweet. If there are other ways of potentially running btrfs over a cliff that I should try, let me know. If not, then I didn't break very much here and I'll need to go looking for other ways of messing up my system. ^^ Perhaps I'll try grub 2.
Untar kernel sources in a temp folder, start building it and pull the power. I did it. BTRFS booted right back without any inconsistency.

Make sure no other file system is mounted when you do this....:-)
Back to top
View user's profile Send private message
Dont Panic
Guru
Guru


Joined: 20 Jun 2007
Posts: 308
Location: SouthEast U.S.A.

PostPosted: Tue Feb 09, 2010 5:24 pm    Post subject: Reply with quote

devsk wrote:
Untar kernel sources in a temp folder, start building it and pull the power.

I had a nice random power blip last night that reset my computers.

Aside from a message about cleaning up 44 orphans on my btrfs root partition, everything seems fine.

My computer probably wasn't doing anything (it was about 4:00 am, so I'm not really sure :) ), but sometimes the random power outages are the best kind for testing the robustness of you fs. :)
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2632
Location: Bay Area, CA

PostPosted: Tue Feb 09, 2010 6:09 pm    Post subject: Reply with quote

Dont Panic wrote:
I had a nice random power blip last night that reset my computers.
Did you shout "Dont Panic"...:D
Back to top
View user's profile Send private message
Dont Panic
Guru
Guru


Joined: 20 Jun 2007
Posts: 308
Location: SouthEast U.S.A.

PostPosted: Tue Feb 09, 2010 6:39 pm    Post subject: Reply with quote

devsk wrote:
Dont Panic wrote:
I had a nice random power blip last night that reset my computers.
Did you shout "Dont Panic"...:D

I don't think I even lifted my head off the pillow. :D
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1203
Location: Sweden

PostPosted: Tue Feb 09, 2010 7:56 pm    Post subject: Reply with quote

devsk wrote:
Letharion wrote:
Sweet. If there are other ways of potentially running btrfs over a cliff that I should try, let me know. If not, then I didn't break very much here and I'll need to go looking for other ways of messing up my system. ^^ Perhaps I'll try grub 2.
Untar kernel sources in a temp folder, start building it and pull the power. I did it. BTRFS booted right back without any inconsistency.

Make sure no other file system is mounted when you do this....:-)


I know it is possible to to induce a kernel panic by poking some value under /proc, would it be possible to do "worse" things? Like simulating a power loss?
I have an old small harddrive that works but isn't used, and if such a script could be produced, I could put it to the test :)

After some thinking I realised one could simulate this by using an automated timer that goes on/off/on/off/on.... and just set default boot to a test system. Unfortunately I don't have such a timer. Other suggestions?
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2632
Location: Bay Area, CA

PostPosted: Tue Feb 09, 2010 8:35 pm    Post subject: Reply with quote

Letharion wrote:
devsk wrote:
Letharion wrote:
Sweet. If there are other ways of potentially running btrfs over a cliff that I should try, let me know. If not, then I didn't break very much here and I'll need to go looking for other ways of messing up my system. ^^ Perhaps I'll try grub 2.
Untar kernel sources in a temp folder, start building it and pull the power. I did it. BTRFS booted right back without any inconsistency.

Make sure no other file system is mounted when you do this....:-)


I know it is possible to to induce a kernel panic by poking some value under /proc, would it be possible to do "worse" things? Like simulating a power loss?
I have an old small harddrive that works but isn't used, and if such a script could be produced, I could put it to the test :)

After some thinking I realised one could simulate this by using an automated timer that goes on/off/on/off/on.... and just set default boot to a test system. Unfortunately I don't have such a timer. Other suggestions?
Not sure what you are looking for but
Code:
echo 'b' > /proc/sysrq-trigger
will instantly reboot the system, which is sort of reset without any sync, so its a power loss emulated...;-)
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1203
Location: Sweden

PostPosted: Tue Feb 09, 2010 9:16 pm    Post subject: Reply with quote

Ah, there we have it.

Then, would it be useful to put together a script that randomly but freely distributes "power-losses" during compiles, and does the "tar-test" afterwards? Such a script could run overnight and auto-start with boot.
Back to top
View user's profile Send private message
Dont Panic
Guru
Guru


Joined: 20 Jun 2007
Posts: 308
Location: SouthEast U.S.A.

PostPosted: Tue Feb 09, 2010 9:18 pm    Post subject: Reply with quote

devsk wrote:
Not sure what you are looking for but
Code:
echo 'b' > /proc/sysrq-trigger
will instantly reboot the system, which is sort of reset without any sync, so its a power loss emulated...;-)
Now there's a neat trick.

I'm going to file that away in my bag of miscellaneous linux commands. :)
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 5345
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Tue Feb 09, 2010 11:57 pm    Post subject: Reply with quote

Dont Panic wrote:
OpenOffice (app-office/openoffice-3.1.1-r1) compiled successfully on my smallish 9.54GB btrfs root partition with compression (not compress-force) and single metadata.

I'm using the same Btrfs code that is in 2.6.33-rc7, but I've backported it to 2.6.32.

I have had trouble with Btrfs and OpenOffice in the past, but it's been a while. And I still have some things I can do to 'Oops' btrfs, even with the current code (revolving around filling the disk).

I've never lost data with btrfs AFAIK, but I've structured my testing so that I seldom check my data integrity after I've crashed Btrfs. I just reformat and try again. :)


++

openoffice 3.2.0.12_pre20100208 from openoffice-geki overlay built fine & working

currently I'm also emerging www-client/chromium on a btrfs-partition with

voluntary compression enabled
_________________
Unofficial minimal livecd x86/amd64 w/reiser4+truecrypt (by Neo2)
2.6.37.2_plus_v1: BFS, CFS,THP,compaction, zcache or TOI
Hardcore Linux user since 2004 :D
Back to top
View user's profile Send private message
Kingoftherings
Guru
Guru


Joined: 04 May 2008
Posts: 328

PostPosted: Wed Feb 10, 2010 9:48 pm    Post subject: Reply with quote

I'm thinking about switching from ext4 to btrfs when 2.6.33 comes out. Haven't decided yet.

Not sure how I'll do it though. I'd like to use a livecd with a 2.6.33 kernel just so my initial format isn't using some old version of Btrfs. Or would that not be a problem?
If it is a problem, would it be possible to boot like a Gentoo LiveDVD using my kernel on /boot instead of the kernel on the LiveDVD? And how about mkfs.btrfs? I'd like to use the most up-to-date version of that as well.
Back to top
View user's profile Send private message
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Wed Feb 10, 2010 10:50 pm    Post subject: Reply with quote

Kingoftherings wrote:
I'm thinking about switching from ext4 to btrfs when 2.6.33 comes out. Haven't decided yet.

Not sure how I'll do it though. I'd like to use a livecd with a 2.6.33 kernel just so my initial format isn't using some old version of Btrfs. Or would that not be a problem?
If it is a problem, would it be possible to boot like a Gentoo LiveDVD using my kernel on /boot instead of the kernel on the LiveDVD? And how about mkfs.btrfs? I'd like to use the most up-to-date version of that as well.


I think that btrfs-progs has been at version 0.19 since kernel version 2.6.31, so as long as you have a kernel as new as that in the DVD, you should be fine.

Here is how I switched to btrfs (before I lost everything and switched back to ext4). I did a stage4 tarball of my hard drive with a few directories that are usually omitted included because I did not want to reinstall them. I then saved the backup to a USB key. I used level 9 LZMA compression to make the tarball fit on a USB key. I used a System Rescue CD to format my root drive. Then I followed the instructions in the Gentoo Wiki for restoring a stage4 tarball and rebooted. My system worked until I tried compiling openoffice. Then things went south.
Back to top
View user's profile Send private message
regomodo
Guru
Guru


Joined: 25 Mar 2008
Posts: 445

PostPosted: Wed Feb 10, 2010 10:55 pm    Post subject: Reply with quote

Does anyone know if 2.6.33 will solve the multi-device issue with btrfs?
Back to top
View user's profile Send private message
Dont Panic
Guru
Guru


Joined: 20 Jun 2007
Posts: 308
Location: SouthEast U.S.A.

PostPosted: Wed Feb 10, 2010 10:56 pm    Post subject: Reply with quote

Kingoftherings wrote:
If it is a problem, would it be possible to boot like a Gentoo LiveDVD using my kernel on /boot instead of the kernel on the LiveDVD?

A few pages ago, the SystemRescueCD was recommended.

But, as you have noted, it may take a while for a LiveCD/DVD to come out with a 2.6.33 kernel (when it's released) and btrfs progs.
Back to top
View user's profile Send private message
Dont Panic
Guru
Guru


Joined: 20 Jun 2007
Posts: 308
Location: SouthEast U.S.A.

PostPosted: Wed Feb 10, 2010 11:00 pm    Post subject: Reply with quote

regomodo wrote:
Does anyone know if 2.6.33 will solve the multi-device issue with btrfs?

I've seen several btrfs patches related to RAID and multiple devices in the 2.6.33_rc# commits.

Which issue were you referring to?
Back to top
View user's profile Send private message
Kingoftherings
Guru
Guru


Joined: 04 May 2008
Posts: 328

PostPosted: Wed Feb 10, 2010 11:45 pm    Post subject: Reply with quote

Dont Panic wrote:
Kingoftherings wrote:
If it is a problem, would it be possible to boot like a Gentoo LiveDVD using my kernel on /boot instead of the kernel on the LiveDVD?

A few pages ago, the SystemRescueCD was recommended.

But, as you have noted, it may take a while for a LiveCD/DVD to come out with a 2.6.33 kernel (when it's released) and btrfs progs.


Thanks. SystemRescueCD uses 2.6.31, which I assume will be fine?
Back to top
View user's profile Send private message
Dont Panic
Guru
Guru


Joined: 20 Jun 2007
Posts: 308
Location: SouthEast U.S.A.

PostPosted: Thu Feb 11, 2010 12:19 am    Post subject: Reply with quote

Kingoftherings wrote:
Thanks. SystemRescueCD uses 2.6.31, which I assume will be fine?

Probably, but that can't be said for certain. There have been significant improvements in Btrfs since 2.6.31. But most shouldn't affect the initial setup of a partition.

When you are up and running, there's clear improvements in the 2.6.33_rc code for day-to-day usage.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page Previous  1, 2, 3 ... 19, 20, 21 ... 24, 25, 26  Next
Page 20 of 26

 
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