Re: Filesystem

2013-07-01 Thread Alexander Skwar
Hello Rodrigo, On Wed, Jun 26, 2013 at 5:44 PM, Rodrigo Dias Cruz wrote: > I had the very same problem some days ago. > > I have not yet found out how to fix the broken btrfs filesystem. However, I > have been able to recover all my files from the filesystem and copy them to > a brand new ext4 f

Re: Filesystem "somewhat" destroyed - need help for recovery/fixing

2013-06-20 Thread Alexander Skwar
Hi On Mon, Jun 17, 2013 at 11:43 PM, Alexander Skwar wrote: > Hello Josef > > On Mon, Jun 17, 2013 at 11:21 PM, Josef Bacik wrote: > >> Pull down my tree >> >> git://github.com/josefbacik/btrfs-progs.git >> >> and build and run the fsck in there and s

Re: Filesystem "somewhat" destroyed - need help for recovery/fixing

2013-06-17 Thread Alexander Skwar
Hello Josef On Mon, Jun 17, 2013 at 11:21 PM, Josef Bacik wrote: > Pull down my tree > > git://github.com/josefbacik/btrfs-progs.git > > and build and run the fsck in there and see if it's a bit more friendly. I just gave it a try, but wasn't successful, it seems… Kernel still crashes. Maybe ch

Filesystem "somewhat" destroyed - need help for recovery/fixing

2013-06-17 Thread Alexander Skwar
Hello I think, I somewhat destroyed my btrfs filesystem on my Ubuntu 13.04 kernel 3.8.0-25-lowlatency system. It got destroyed, because the system was hanging for some other reason and I had to remove power... When I try to mount my filesystem (there's only one, with a few subfilesystems), the

Determining size of subvolumes

2013-05-13 Thread Alexander Skwar
Hello What's the easiest way to determine the size of snapshots/subvolumes? As I come from a Solaris/FreeBSD background with ZFS, I compare the feature sets and in ZFS I can easily do this: # zfs list -t snapshot,filesystem -r datapool/home/ftp_example NAMEUSED AVAIL R

Re: WARNING: at fs/btrfs/free-space-cache.c:921 __btrfs_write_out_cache+0x6b9/0x9a0 [btrfs]()

2013-05-13 Thread Alexander Skwar
Hello Josef On Wed, May 8, 2013 at 10:47 PM, Josef Bacik wrote: > On Wed, May 08, 2013 at 11:34:40AM -0600, Alexander Skwar wrote: >> Hello Josef >> >> Did you have a chance to look at that image? Did you find anything? >> >> Or should I simply create a new file

Re: btrfs subv list -> ERROR: Failed to lookup path for root 0 - No such file or directory

2013-05-05 Thread Alexander Skwar
Hi Wang On Sat, May 4, 2013 at 4:50 PM, Wang Shilong wrote: > I use the latest btrfs-progs, and i can not reproduce the problem, would you > please > double check with this url: > https://git.kernel.org/cgit/linux/kernel/git/mason/btrfs-progs.git/ Must be so, that I by accident used the "stab

Re: Script for creating/managing snapshots of all subvolumes of all filesystems

2013-05-05 Thread Alexander Skwar
Hi On Sun, May 5, 2013 at 7:36 PM, Kai Krakow wrote: > Alexander Skwar schrieb: > >> FWIW, I've also written a script which creates and "manages" >> (ie. deletes old) snapshots. >> >> It figures out all the available filesystems and create

Re: Creating recursive snapshots for all filesystems

2013-05-05 Thread Alexander Skwar
Hi Kai On Sun, May 5, 2013 at 6:03 PM, Kai Krakow wrote: > That brings in the idea how bedup seems to handle this. Maybe you want to > take one or the other idea from there as it also has to enumerate all btrfs > filesystems and snapshots: Sure, will have a look. There are _certainly_ more clev

Re: Creating recursive snapshots for all filesystems

2013-05-05 Thread Alexander Skwar
Hello On Sun, May 5, 2013 at 1:05 PM, Kai Krakow wrote: > Alexander Skwar schrieb: > >> Where I'm hanging right now, is that I can't seem to figure out a >> "bullet proof" way to find all the subvolumes of the filesystems I >> might have. > > Wh

Re: btrfs subv list -> ERROR: Failed to lookup path for root 0 - No such file or directory

2013-05-04 Thread Alexander Skwar
ete" running. At the very same time. Which additional information should I provide? Thanks, Alexander On Fri, May 3, 2013 at 1:24 PM, Alexander Skwar wrote: > Hi Russel > > Russell Coker coker.com.au> writes: > >> I asked a similar question about 10 days ag

Re: Creating recursive snapshots for all filesystems

2013-05-03 Thread Alexander Skwar
Hi Sander humilis.net> writes: > > Alexander Skwar wrote (ao): > > Where I'm hanging right now, is that I can't seem to figure out a > > "bullet proof" way to find all the subvolumes of the filesystems I > > might have. > > > Is there

Script for creating/managing snapshots of all subvolumes of all filesystems

2013-05-03 Thread Alexander Skwar
Hi FWIW, I've also written a script which creates and "manages" (ie. deletes old) snapshots. It figures out all the available filesystems and creates snaps for all the available (sub)volumes. It's also on https://copy.com/WI9AXqTH2nD4 and http://pastebin.com/YX8WKcsR to avoid line break issues

Re: btrfs subv list -> ERROR: Failed to lookup path for root 0 - No such file or directory

2013-05-03 Thread Alexander Skwar
Hi Russel Russell Coker coker.com.au> writes: > I asked a similar question about 10 days ago and got the below response which > solved it for me. Thanks a lot. This solved it for me as well. Cheers, Alexander -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the

Creating recursive snapshots for all filesystems

2013-05-02 Thread Alexander Skwar
Hello once more... I'm on Ubuntu 13.04 with Ubuntu kernel 3.8.0-19-lowlatency and Btrfs v0.20-rc1. (Did I say that before...? *G*) Okay, ATM I'm writing a script for creating snapshots for "backups" of all my btrfs filesystems. I come from a FreeBSD / Solaris background with heavy use of ZFS. I

Listing EVERYTHING BUT read only snapshots; and what are snapshots if compared with ZFS?

2013-05-02 Thread Alexander Skwar
Hello once more... I'm on Ubuntu 13.04 with Ubuntu kernel 3.8.0-19-lowlatency and Btrfs v0.20-rc1. First a clarification question - if I compare btrfs with zfs (which I know better...), how do snapshots compare? A read only snapshot is what ZFS calls snapshots, and a read/write snapshot would be

btrfs subv list -> ERROR: Failed to lookup path for root 0 - No such file or directory

2013-05-02 Thread Alexander Skwar
Hello I'm on Ubuntu 13.04 with Ubuntu kernel 3.8.0-19-lowlatency and Btrfs v0.20-rc1. Sometimes, I'm unable to list the subvolumes of a filesystem, like so: root@ask-home:~# btrfs subv list /home ERROR: Failed to lookup path for root 0 - No such file or directory This was after I removed a few

Re: WARNING: at fs/btrfs/free-space-cache.c:921 __btrfs_write_out_cache+0x6b9/0x9a0 [btrfs]()

2013-05-01 Thread Alexander Skwar
Hello Josef On Wed, May 1, 2013 at 8:57 PM, Josef Bacik wrote: > and build that and then run > > ./btrfs-image -c 9 -t 4 /dev/whatever somefile.img > > and upload the image somewhere so I can take a look at it. Thanks, Sure thing ;) You can download it from my Copy share: https://copy.com/6U

Re: Best Practice - Partition, or not?

2013-05-01 Thread Alexander Skwar
Hello dima dima parallels.com> writes: > (NB: grub will not boot from "/dev/sdb", selinux will) Fair point :) I don't plan to boot from the disk, though. It's a data disk, if you will. But, yeah, for a "best practice", that's certainly something to keep in mind. BR, Alexander -- To unsubscri

Best Practice - Partition, or not?

2013-05-01 Thread Alexander Skwar
Hello If I want to manage a complete disk with btrfs, what's the "Best Practice"? Would it be best to create the btrfs filesystem on "/dev/sdb", or would it be better to create just one partition from start to end and then do "mkfs.btrfs /dev/sdb1"? Would the same recomendation hold true, if w

Re: WARNING: at fs/btrfs/free-space-cache.c:921 __btrfs_write_out_cache+0x6b9/0x9a0 [btrfs]()

2013-04-30 Thread Alexander Skwar
Hello Josef On Tue, Apr 30, 2013 at 7:53 PM, Josef Bacik wrote: > Can you run this patch and capture the output when you get the warning? You > should see some mesages before the -- [ cut here ] -- part, make sure to > capture > those. Thanks, Sure. There you go (also on http://pastebin.com

Re: WARNING: at fs/btrfs/free-space-cache.c:921 __btrfs_write_out_cache+0x6b9/0x9a0 [btrfs]()

2013-04-30 Thread Alexander Skwar
Hello Josef On Tue, Apr 30, 2013 at 3:58 PM, Josef Bacik wrote: > So we deal with this case fine, but it really shouldn't be happening, it only > happens if your block groups are way too large, which again shouldn't be > happening. Can you run fsck on this device and see if it complains? Thank

Re: WARNING: at fs/btrfs/free-space-cache.c:921 __btrfs_write_out_cache+0x6b9/0x9a0 [btrfs]()

2013-04-30 Thread Alexander Skwar
Hugo Mills carfax.org.uk> writes: >The differences in btrfs between the two are very small, and even > I(*) wouldn't call 3.8.0 "very old" quite yet, given that 3.9 was only > released yesterday. From memory, there's one btrfs patch in the 3.8 > stable series. > >Your problem is "just" a

WARNING: at fs/btrfs/free-space-cache.c:921 __btrfs_write_out_cache+0x6b9/0x9a0 [btrfs]()

2013-04-29 Thread Alexander Skwar
Hello On my HP Compaq dc5800 with Ubuntu 13.04 and their 3.8.0-19-lowlatency kernel, I've got quite some kernel traces in the syslog. You can find them below or at http://pastebin.com/bLXPBX67 (to avoid line breaks…). These kernel traces all begin with: WARNING: at fs/btrfs/free-space-cache.c:92