Can't remove missing drive (kernel BUG)

2010-10-17 Thread Erik Jensen
I have an six-drive array I use for television recordings (4 2TB and 2 1.5TB). Yesterday, I had one of the 1.5TBs die on me, so I did a mount -o degraded /dev/sdb /mnt/media followed by a btrfs-vol -r missing /mnt/media, but the latter command almost immediately generated a kernel BUG message,

dkms build problem

2010-10-17 Thread Andreas Philipp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I tried to follow this howto https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories#Building_latest_btrfs_against_a_recent_kernel_with_DKMS from the btrfs wiki to build my own btrfs module using dkms on my gentoo running kernel

How can I recover data from little overwritten missing raid0 device?

2010-10-17 Thread Chalet16
I had set up btrfs with 2 devices by using command this command sequence. mkfs.btrfs -m raid1 /dev/sda1 mount /dev/sda1 /mnt/data btrfs-vol -a /dev/sdb1 /mnt/data btrfs-vol -b /mnt/data (I was think that it will do raid1 for both data and metadata but I currently realised that it will do raid1

Re: How can I recover data from little overwritten missing raid0 device?

2010-10-17 Thread Chalet16
UPDATE: I'm currently able to see and read/write some file in degraded mode but there're many file i can't read with input/output error too. On Sun, Oct 17, 2010 at 9:57 PM, Chalet16 chale...@gmail.com wrote: I had set up btrfs with 2 devices by using command this command sequence. mkfs.btrfs

Re: [PATCH V2] Removing a subvolume by an ordinary user

2010-10-17 Thread Goffredo Baroncelli
On Tuesday, 12 October, 2010, Ian Kent wrote: On Mon, 2010-10-11 at 20:08 +0200, Goffredo Baroncelli wrote: [...] + ret = btrfs_unlink_subvol(trans, root, dir, + dest-root_key.objectid, + dentry-d_name.name, +

Re: How can I recover data from little overwritten missing raid0 device?

2010-10-17 Thread Goffredo Baroncelli
After a reboot you need to do # btrfs device scan in order to search all devices which may be involved in a multi devices setup (like RAID). G.Baroncelli On Sunday, 17 October, 2010, Chalet16 wrote: UPDATE: I'm currently able to see and read/write some file in degraded mode but there're

[PATCH V3] Removing a subvolume with a simple rm -rf

2010-10-17 Thread Goffredo Baroncelli
Hi all, enclosed you can find a new version of the patch which permits to remove a volume via the rmdir(2) syscall by a non-root user. The goal of this patch is to permits to remove a subvolume with a simple rm -rf command. The rules for a subvolume removal are the same ones of a directory: -

Re: How can I recover data from little overwritten missing raid0 device?

2010-10-17 Thread Chalet16
It seem that another device doesn't detect as btrfs filesystem anymore.(I think because its header had been overwritten.) That device is not appear when I run btrfs filesystem show. On Sun, Oct 17, 2010 at 11:04 PM, Goffredo Baroncelli kreij...@libero.it wrote: After a reboot you need to do

Apologies

2010-10-17 Thread Hugo Mills
I'm sorry about those last mails of mine. Clearly, nobody actually uses quilt mail to send mails. Or at least has never documented clearly how they do it. I shall test some more and try again. Irritated and embarrassed, Hugo. -- === Hugo Mills: h...@... carfax.org.uk |

[patch 0/4] Size reporting of btrfs tool

2010-10-17 Thread hugo-lkml
While playing around with resizing volumes recently, I realised that I didn't know whether btrfs fi show and btrfs fi df reported sizes in ISO (e.g. powers of 10^3) units, as they appear to from the labels they use, or in binary (powers of 2^10) units. Also, a mere three significant figures is

[patch 2/4] Add an option to show ISO, binary or raw bytes counts using df.

2010-10-17 Thread hugo-lkml
Change btrfs filesystem df to allow the user to control the scales used for sizes in the output. Signed-off-by: Hugo Mills h...@carfax.org.uk --- btrfs.c |5 +++-- btrfs_cmds.c | 37 - 2 files changed, 35 insertions(+), 7 deletions(-) Index:

[patch 4/4] Add an option to show ISO, binary or raw bytes counts using btrfs-show.

2010-10-17 Thread hugo-lkml
Change btrfs-show to allow the user to control the scales used for sizes in the output. Signed-off-by: Hugo Mills h...@carfax.org.uk --- btrfs-show.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) Index: btrfs-progs-unstable/btrfs-show.c

[patch 3/4] Add an option to show ISO, binary or raw bytes counts using show.

2010-10-17 Thread hugo-lkml
Change btrfs filesystem show to allow the user to control the scales used for sizes in the output. Signed-off-by: Hugo Mills h...@carfax.org.uk --- btrfs.c |5 +++-- btrfs_cmds.c | 42 +++--- 2 files changed, 38 insertions(+), 9 deletions(-) Index:

[patch 1/4] Update pretty-printer for different multiple systems.

2010-10-17 Thread hugo-lkml
Make the pretty-printer for data sizes capable of printing in ISO (powers of 10^3), binary (powers of 2^10) or raw (a simple byte count). We default to binary sizes, maintaining the original behaviour, but print (e.g.) MiB to indicate that it's a power of 2^10. Signed-off-by: Hugo Mills

Re: the idea for improving the performance of b-tree search

2010-10-17 Thread Shaohua Li
Hi Miao Chris, On Wed, Oct 13, 2010 at 05:00:56PM +0800, Miao Xie wrote: When I investigated the performance problem of file creation/deletion, I found btrfs spends lots of time in the b-tree search, so I consider whether we can use the latest search result in the same transaction or not.

FS consistency while snapshoting

2010-10-17 Thread Fabrício dos Anjos Silva
Hi, I want to use AWS EC2 EBS snapshot capability and while doing this, I want to make sure that Btrfs is consistent. I already know how to proceed when using XFS in the two scenarios that follow: 1) XFS on EBS Freeze XFS by using xfs_freeze -f, then create EBS snapshot, then unfreeze XFS

Re: FS consistency while snapshoting

2010-10-17 Thread Chris Samuel
On 18/10/10 13:47, Fabrício dos Anjos Silva wrote: If there is any difference betweens kernel 2.6.21 and 2.6.35, please point it out. btrfs wasn't merged into the mainline kernel until 2.6.29. http://lwn.net/Articles/314325/ -- Chris Samuel : http://www.csamuel.org/ : Melbourne, VIC --