btrfs and backups

2012-03-26 Thread James Courtier-Dutton
Hi, I have a local btrfs file system with various sub-volumes that have had snapshots done on them. Is there some tool like rsync that I could copy all the data and snapshots to a backup system, but still only use the same amount of space as the source filesystem. I see a problem being getting a

Re: Can't mount, power failure - recoverable?

2012-03-26 Thread Skylar Burtenshaw
Hey - been a few days, not meaning to pester but I wanted to make sure my previous message didn't slip through the cracks. If I offended, I apologize - I certainly didn't mean to, and my attempts at joviality can come across as abrasive. If you simply haven't had time to look into this yet, or

Re: Can't mount, power failure - recoverable?

2012-03-26 Thread Hugo Mills
On Mon, Mar 26, 2012 at 08:34:46AM +, Skylar Burtenshaw wrote: Hey - been a few days, not meaning to pester but I wanted to make sure my previous message didn't slip through the cracks. If I offended, I apologize - I certainly didn't mean to, and my attempts at joviality can come across

Re: Can't mount, power failure - recoverable?

2012-03-26 Thread Fajar A. Nugraha
On Mon, Mar 26, 2012 at 3:34 PM, Skylar Burtenshaw daninfu...@gmail.com wrote: Hey - been a few days, not meaning to pester but I wanted to make sure my previous message didn't slip through the cracks. If I offended, I apologize - I certainly didn't mean to, and my attempts at joviality can

Re: Can't mount, power failure - recoverable?

2012-03-26 Thread Skylar Burtenshaw
Fajar A. Nugraha list at fajar.net writes: Didn't Chris' last response basically say use kernel 3.2 or newer, mount the fs (possibly with -o ro), and copy the data elsewhere? Why yes, yes it did actually. I appreciate your spotlighting it, just in case I somehow managed to miss it, though.

Re: Invalid argument when mounting a btrfs raid1 filesystem

2012-03-26 Thread Karel Zak
On Sat, Mar 24, 2012 at 06:21:05PM +, Hugo Mills wrote: As Sadner says, you have to run btrfs dev scan before you try to mount the FS. If you have root on btrfs, this will have to go in an initrd; otherwise, it can go in your initscripts anywhere before the non-root filesystem mounts.

Re: Can't mount, power failure - recoverable?

2012-03-26 Thread Skylar Burtenshaw
Hugo Mills hugo at carfax.org.uk writes: I suspect that Chris is working hard on getting queued-up patches ready to go into the 3.4 kernel. He's usually quite quiet while he's doing that. Hugo. Thanks Hugo - I assumed he was busy, I just wanted to make sure it wasn't a case of

Re: Can't mount, power failure - recoverable?

2012-03-26 Thread Fajar A. Nugraha
On Mon, Mar 26, 2012 at 3:49 PM, Skylar Burtenshaw daninfu...@gmail.com wrote: Fajar A. Nugraha list at fajar.net writes: Didn't Chris' last response basically say use kernel 3.2 or newer, mount the fs (possibly with -o ro), and copy the data elsewhere? Why yes, yes it did actually. I

Re: btrfs and backups

2012-03-26 Thread Fajar A. Nugraha
On Mon, Mar 26, 2012 at 3:56 PM, Felix Blanke felixbla...@gmail.com wrote: On 3/26/12 10:30 AM, James Courtier-Dutton wrote: Is there some tool like rsync that I could copy all the data and snapshots to a backup system, but still only use the same amount of space as the source filesystem.

kernel BUG at fs/btrfs/extent-tree.c:4263 (due to lost usb connection)

2012-03-26 Thread Sander
Hello all, I've just encountered a kernel BUG at fs/btrfs/extent-tree.c:4263 due to a usb connection hickup to the storage (so you might as well stop reading now ;-) ) With google, a lot turns up on kernel BUG at fs/btrfs/extent-tree.c, but not on the specific line number, nor on PC is at

[RFC] [PATCH 2/2] Btrfs: move over to use -update_time

2012-03-26 Thread Josef Bacik
Btrfs had been doing it's own file_update_time so we could catch ENOSPC properly, so just update our btrfs_update_time to work with the new stuff and then we'll be fancy later. Thanks, Signed-off-by: Josef Bacik jo...@redhat.com --- fs/btrfs/ctree.h |1 - fs/btrfs/file.c |2 +-

[RFC] [PATCH 1/2] fs: introduce inode operation -update_time

2012-03-26 Thread Josef Bacik
Btrfs has to make sure we have space to allocate new blocks in order to modify the inode, so updating time can fail. We've gotten around this by having our own file_update_time but this is kind of a pain, and Christoph has indicated he would like to make xfs do something different with atime

Re: btrfs and backups

2012-03-26 Thread Duncan
Fajar A. Nugraha posted on Mon, 26 Mar 2012 16:01:54 +0700 as excerpted: On Mon, Mar 26, 2012 at 3:56 PM, Felix Blanke felixbla...@gmail.com wrote: On 3/26/12 10:30 AM, James Courtier-Dutton wrote: Is there some tool like rsync that I could copy all the data and snapshots to a backup system,

Re: btrfs and backups

2012-03-26 Thread Alexander Block
On Mon, Mar 26, 2012 at 4:26 PM, Duncan 1i5t5.dun...@cox.net wrote: Fajar A. Nugraha posted on Mon, 26 Mar 2012 16:01:54 +0700 as excerpted: On Mon, Mar 26, 2012 at 3:56 PM, Felix Blanke felixbla...@gmail.com wrote: On 3/26/12 10:30 AM, James Courtier-Dutton wrote: Is there some tool like

Re: Invalid argument when mounting a btrfs raid1 filesystem

2012-03-26 Thread Calvin Walton
On Mon, 2012-03-26 at 10:51 +0200, Karel Zak wrote: On Sat, Mar 24, 2012 at 06:21:05PM +, Hugo Mills wrote: As Sadner says, you have to run btrfs dev scan before you try to mount the FS. If you have root on btrfs, this will have to go in an initrd; otherwise, it can go in your

State of btrfs send/receive

2012-03-26 Thread Alexander Block
Hello, I used btrfs some time to do incremental backups of large (200GB) VM images, which worked fine using snapshots and rsync (with --inplace to preserve COW). The only problem with this solution is that it takes extremely long due to rsync's performance on large files. For this reason, I can't

Re: State of btrfs send/receive

2012-03-26 Thread Jan Schmidt
Hi Alex, On 26.03.2012 17:46, Alexander Block wrote: I used btrfs some time to do incremental backups of large (200GB) VM images, which worked fine using snapshots and rsync (with --inplace to preserve COW). The only problem with this solution is that it takes extremely long due to rsync's

Re: btrfs: open_ctree failed

2012-03-26 Thread Not Zippy
Was working this morning and my kernel crashed. Unfortunately one of my two btrfs partitions would not mount after rebooting, this is the error log: [ 1518.147030] device label MediaNew devid 1 transid 28844 /dev/sdc3 [ 1518.147364] btrfs: enabling auto defrag [ 1518.147372] btrfs: use lzo

Re: btrfs: open_ctree failed

2012-03-26 Thread Hugo Mills
On Mon, Mar 26, 2012 at 02:40:24PM -0700, Not Zippy wrote: Was working this morning and my kernel crashed. Unfortunately one of my two btrfs partitions would not mount after rebooting, this is the error log: [ 1518.147030] device label MediaNew devid 1 transid 28844 /dev/sdc3 [ 1518.147364]

Re: btrfs: open_ctree failed

2012-03-26 Thread Not Zippy
Hugo I did try the dangerdonteveruse branch and thats the error btrfsck --repair gave me. Looks like the btrfs-restore command may work (thanks!). And yes I do have backups for the important data - I had some other data on there which would need to be d/l again.. I don't dabble that much with the

Re: btrfs: open_ctree failed

2012-03-26 Thread Hugo Mills
On Mon, Mar 26, 2012 at 03:36:13PM -0700, Not Zippy wrote: Hugo I did try the dangerdonteveruse branch and thats the error btrfsck --repair gave me. Oooh, a brave one, I see. ;) Looks like the btrfs-restore command may work (thanks!). And yes I do have backups for the important data - I

Re: Btrfs Storage Array Corrupted

2012-03-26 Thread Travis Shivers
Hello, I was just wondering what the status of the patch that would fix my problem is. I have not heard from anyone in over a month, and I just wanted to check in and see how it is progressing, or if you have put it on hold for more important work like kernel 3.4. Thank you again for helping me.

Re: btrfs: open_ctree failed

2012-03-26 Thread Chris Samuel
On 27/03/12 09:47, Hugo Mills wrote: I'd definitely recommend running as recent a kernel as you can -- either the last released (3.3 in this case) I'm not sure I'd recommend 3.3; there were a number of reports of a regression regarding preamture ENOSPC in that code which was bisected to a