LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-07-2015, 11:52 AM   #1
TenEighty
Member
 
Registered: Oct 2004
Location: Vancouver, B.C., Canada
Distribution: Kubuntu
Posts: 59

Rep: Reputation: 15
BTRFS rollback, still broken, how?


Running Kubuntu Vivid (15.04) using a BTRFS filesystem and a more recent than out of the box 3.19.0-22-generic kernel. I have a couple of times experienced an apparent lock up on boot with only "starting version 219" in the top corner of the screen. Strangely, I would boot from USB, mount the drive, reboot, and it worked again.

I suspect this is a different issue. Everything was fine. I installed a couple of packages, shutdown, later on, started up and the display and desktop were broken. Displays were mirrored instead of the desktop spanning the two, the desktop could not be seen. Yakuake drop down terminal started and dropped down as normal, but filled the entire screen. The mouse cursor, starting before switching from lightdm to KDE, disappears, and only shows up in the windows "yakuake has successfully started" or in the yakuake window once it appears. A pretty bad failure.

For just this sort of thing, I have apt-btrfs-snapshot installed and working. But I rolled back to several previous snapshots, back to 2 weeks ago when I know for sure it was working perfectly, and I get exactly the same problem.

Then I scrub the hard drive to see if there are any checksum errors. None. Not one on the whole drive, so I am at a loss.

If everything is working as it should, and the checksums match the data on the drive, then a rollback to a working state should work, 100%, no question. It couldn't be bit rot or some sort of physical corruption because the checksum wouldn't match. I'm no computer scientist, but the only logical explanation I can think of is some sort of problem or bug with the BTRFS file system, which, although relatively new and undergoing rapid development is supposed to be stable (yes, use it at my own risk, I do have a backup). It would have to affect previous snapshots, which could easily be data that has not changed and is therefore common to all snapshots, but would have to escape checksum verification.

This is my OS snapshot, but what if similar things are happening to my home directory? I could be scrubbing, and running incremental backups, thinking it's fine, but there are errors BTRFS is failing to tell me about.

Any idea what could have caused this?
Is there any way to avoid it?
Or is this the kind of risk one takes, however unexpected, when using btrfs?
 
Old 09-07-2015, 10:04 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
If I saw those symptoms, I'd be suspecting hardware not software straight away. You could start with the easy stuff - check cables, give everything a good blow-out - then I'd be looking at PSU.

I've used btrfs for many years - snaps being a major attraction. Never seen anything like this - not saying it's not possible. I might be inclined to send the filesystem to another system just to satisfy myself it is ok, but I'd have pretty high confidence in it.
 
Old 09-08-2015, 08:06 AM   #3
TenEighty
Member
 
Registered: Oct 2004
Location: Vancouver, B.C., Canada
Distribution: Kubuntu
Posts: 59

Original Poster
Rep: Reputation: 15
Thanks, I'll do that and see how it goes. It's good to hear you've never had such a problem with btrfs at least.
 
  


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
btrfs filesystem df /mnt/btrfs/ shows bothe data and metdata with raid1 and single. gonus Linux - Software 3 07-17-2014 02:48 PM
LXer: Rollback To A Working State With btrfs + apt-btrfs-snapshot On Ubuntu 12.10 LXer Syndicated Linux News 0 11-25-2012 10:42 AM
ext4 vs btrfs, and with btrfs do I still need to use LVM? blue_k Linux - Software 4 08-17-2012 11:31 PM
Rollback to 9.04 bcbotha Ubuntu 1 11-02-2009 05:53 AM
how to rollback erinlang101 Red Hat 2 09-20-2005 09:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:37 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