Re: Adding a disk fails

2011-01-21 Thread Fajar A. Nugraha
On Fri, Jan 21, 2011 at 2:00 PM, Helmut Hullen wrote: > > Hallo, Carl, > > Du meintest am 20.01.11: > > >> If you shutdown the system, at the reboot you should "scan" all the > >> device in order to find the btrfs ones > >> > >> # find the btrfs device > >> btrfs device scan > > > This must be don

btrfs RAID1 woes and tiered storage

2011-01-21 Thread Hubert Kario
I've been experimenting lately with btrfs RAID1 implementation and have to say that it is performing quite well, but there are few problems: * when I purposefully damage partitions on which btrfs stores data (for example, by changing the case of letters) it will read the other copy and retu

Re: btrfs, broken design?

2011-01-21 Thread Benoît Thiébault
Ok, thanks, I will read the project wiki more carefully then :-) Beware however that Wikipedia is the first place to look for information for a lot of people (whether this is a good practice or not) and it currently does not provide a very good advertisement to btrfs. Kind regards Le 21 janv. 2

Re: btrfs, broken design?

2011-01-21 Thread Hubert Kario
On Friday 21 of January 2011 09:11:57 Benoît Thiébault wrote: > Ok, thanks, I will read the project wiki more carefully then :-) > Beware however that Wikipedia is the first place to look for information > for a lot of people (whether this is a good practice or not) and it > currently does not prov

Re: Kernel error during btrfs balance

2011-01-21 Thread Erik Logtenberg
Hi, I hit the same bug again I think: [291835.724344] [ cut here ] [291835.724376] kernel BUG at fs/btrfs/relocation.c:836! [291835.724401] invalid opcode: [#1] SMP [291835.724424] last sysfs file: /sys/devices/system/cpu/cpu1/cache/index2/shared_cpu_map [291835.72446

Re: Kernel error during btrfs balance

2011-01-21 Thread Yan, Zheng
please try patch attached below, Thanks. --- diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index b37d723..49d6b13 100644 --- a/fs/btrfs/relocation.c +++ b/fs/btrfs/relocation.c @@ -1158,6 +1158,7 @@ static int clone_backref_node(struct btrfs_trans_handle *trans, new_node->byte

Re: Adding a disk fails

2011-01-21 Thread CACook
On Thu 20 January 2011 22:55:54 Hubert Kario wrote: > You still have a btrfs on /dev/sdc, do a > dd if=/dev/zero of=/dev/sdc bs=8192 > (overkill, but I don't remember which blocks have to be zeroed to destroy > btrfs superblock) I gave up and started over. Maybe it should be clarified in the wi

Re: Adding a disk fails

2011-01-21 Thread Hubert Kario
On Friday, January 21, 2011 11:16:49 cac...@quantum-sci.com wrote: > On Thu 20 January 2011 22:55:54 Hubert Kario wrote: > > You still have a btrfs on /dev/sdc, do a > > dd if=/dev/zero of=/dev/sdc bs=8192 > > (overkill, but I don't remember which blocks have to be zeroed to destroy > > btrfs super

Re: Adding a disk fails

2011-01-21 Thread Helmut Hullen
Hallo, Goffredo, Du meintest am 20.01.11: > To add another disk you don't have to run mkfs.btrfs. For example: > # add the first disk > mkfs.btrfs /dev/sdb > # mount the disk > mount /dev/sdb /media/backups > # add another disk to the first one > btrfs device add /dev/sdc /media/backup > Note1

version (was: btrfs, broken design?)

2011-01-21 Thread Helmut Hullen
Hallo, Chris, Du meintest am 20.01.11: >> Is there a planned date for the final release of btrfs? > A final release? We'll keep improving things for a long time. The > biggest missing feature today is btrfsck, which I'm working on full > time right now. Could it be possible to tell somewhere

Re: version (was: btrfs, broken design?)

2011-01-21 Thread Hugo Mills
On Fri, Jan 21, 2011 at 10:54:00AM +0100, Helmut Hullen wrote: > Hallo, Chris, > > Du meintest am 20.01.11: > > >> Is there a planned date for the final release of btrfs? > > > A final release? We'll keep improving things for a long time. The > > biggest missing feature today is btrfsck, which

Re: Adding a disk fails

2011-01-21 Thread Helmut Hullen
Hallo, Goffredo, Du meintest am 20.01.11: > To add another disk you don't have to run mkfs.btrfs. For example: > # add the first disk > mkfs.btrfs /dev/sdb > # mount the disk > mount /dev/sdb /media/backups > # add another disk to the first one > btrfs device add /dev/sdc /media/backup > Note1

Re: version

2011-01-21 Thread Helmut Hullen
Hallo, Hugo, Du meintest am 21.01.11: >> Could it be possible to tell somewhere the actual version? >> >> Sometimes I download via git, >> >> > stable.git> >> and I never have found which version that is; "version.sh" tells >> something wrong. > $ git log Ok - last changes from October 6, 20

Re: version (was: btrfs, broken design?)

2011-01-21 Thread Diego Calleja
On Viernes, 21 de Enero de 2011 10:54:00 Helmut Hullen escribió: > And I never have seen somethin like "Changelog" - that would be fine > too. Check the wiki, I keep that updated: https://btrfs.wiki.kernel.org/index.php/Main_Page#News -- To unsubscribe from this list: send the line "unsubscrib

latest btrfs hangs when creating/deleting snapshots

2011-01-21 Thread Ian! D. Allen
I can make the latest btrfs from Chris hang my system. I got a fresh clone yesterday from: git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs-unstable.git git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstagle.git Built and installed both tools and kernel into Ubuntu 10.1

Re: version

2011-01-21 Thread Helmut Hullen
Hallo, Diego, Du meintest am 21.01.11: >> And I never have seen somethin like "Changelog" - that would be fine >> too. > Check the wiki, I keep that updated: > https://btrfs.wiki.kernel.org/index.php/Main_Page#News Thank you - that's more simple for me than first cloning via "git clone" and t

Re: version

2011-01-21 Thread Hugo Mills
On Fri, Jan 21, 2011 at 03:55:00PM +0100, Helmut Hullen wrote: > Hallo, Diego, > > Du meintest am 21.01.11: > > >> And I never have seen somethin like "Changelog" - that would be fine > >> too. > > > Check the wiki, I keep that updated: > > https://btrfs.wiki.kernel.org/index.php/Main_Page#News

ENOSPC - where's the problem, where's the solution?

2011-01-21 Thread Helmut Hullen
Hallo, linux-btrfs, I've just finished testing my btrfs installation. Kernel 2.6.37, btrfs-progs from 2010-10-06 Again the same problem as mourned last year: the smaller of the 2 disks sets the capacity. Where is the problem: is it a kernel problem (and I have to wait for the next kernel re

Re: version

2011-01-21 Thread Helmut Hullen
Hallo, Hugo, Du meintest am 21.01.11: >>> Check the wiki, I keep that updated: >>> https://btrfs.wiki.kernel.org/index.php/Main_Page#News >> >> Thank you - that's more simple for me than first cloning via "git >> clone" and then running "git log". >Once you've done a git clone, you can keep

Re: Shrinking virtual disk with btrfs on it

2011-01-21 Thread Hugo Mills
On Fri, Jan 21, 2011 at 10:20:34AM -0700, Rodney Beede wrote: > Any tools to go about zeroing about the free space on a btrfs file > system so I can shrink the VMware vmdk virtual disk? > > I ran the VMware command, but the dynamic disk is still really big. I > presume it is due to free space tha

Re: Adding a disk fails

2011-01-21 Thread Goffredo Baroncelli
On 01/21/2011 12:10 AM, Carl Cook wrote: > On Thu 20 January 2011 14:13:22 Goffredo Baroncelli wrote: >> To add another disk you don't have to run mkfs.btrfs. For example: >> >> # add the first disk >> mkfs.btrfs /dev/sdb >> # mount the disk >> mount /dev/sdb /media/backups >> >> # add another disk

Re: Backup Command

2011-01-21 Thread CACook
Well thanks to some help from you guys I seem to have my backup server almost fully running and functional with rsync. Amazing functions, this snapshotting and rsync. I still don't know why I cannot remove snapshots though. (Debian Testing with 2.6.32-28) And I don't know how to reach out fr

Re: Backup Command

2011-01-21 Thread Goffredo Baroncelli
On 01/21/2011 08:07 PM, cac...@quantum-sci.com wrote: > > Well thanks to some help from you guys I seem to have my backup server almost > fully running and functional with rsync. Amazing functions, this > snapshotting and rsync. > > I still don't know why I cannot remove snapshots though. (Deb

Re: Backup Command

2011-01-21 Thread Niklas Schnelle
Kernel 2.6.32.x is to old for snapshot deletion, you will have to use something more recent On Fri, 2011-01-21 at 11:07 -0800, cac...@quantum-sci.com wrote: > Well thanks to some help from you guys I seem to have my backup server almost > fully running and functional with rsync. Amazing functions

Re: Adding a disk fails

2011-01-21 Thread CACook
On Fri 21 January 2011 10:42:39 Goffredo Baroncelli wrote: > > Thanks Goffredo but as I say, I did this and it responds with > > "ERROR: error adding the device '/dev/sdc'" > > .. it doesn't give a clue. > > In your email you wrote that before adding the device you format it. > Anyway I don't th

Re: Synching a Backup Server

2011-01-21 Thread Freddie Cash
On Sun, Jan 9, 2011 at 10:30 AM, Hugo Mills wrote: > On Sun, Jan 09, 2011 at 09:59:46AM -0800, Freddie Cash wrote: >> Let see if I can match up the terminology and layers a bit: >> >> LVM Physical Volume == Btrfs disk == ZFS disk / vdevs >> LVM Volume Group == Btrfs "filesystem" == ZFS storage poo

Re: Backup Command

2011-01-21 Thread Freddie Cash
On Fri, Jan 21, 2011 at 11:07 AM, wrote: > > Well thanks to some help from you guys I seem to have my backup server almost > fully running and functional with rsync.  Amazing functions, this > snapshotting and rsync. > > I still don't know why I cannot remove snapshots though. (Debian Testing w

Re: Shrinking virtual disk with btrfs on it

2011-01-21 Thread David Pottage
On 21/01/11 17:20, Rodney Beede wrote: > Any tools to go about zeroing about the free space on a btrfs file > system so I can shrink the VMware vmdk virtual disk? > > I ran the VMware command, but the dynamic disk is still really big. I > presume it is due to free space that isn't zeroed out. Does

[PATCH] Btrfs: make shrink_delalloc a little friendlier

2011-01-21 Thread Josef Bacik
Xfstests 224 will just sit there and spin for ever until eventually we give up flushing delalloc and exit. On my box this took several hours. I could not interrupt this process either, even though we use INTERRUPTIBLE. So do 2 things 1) Keep us from looping over and over again without reclaimin

Re: Backup Command

2011-01-21 Thread CACook
On Fri 21 January 2011 11:44:24 Freddie Cash wrote: > #!/bin/sh > > ssh someu...@mythtv.pc "/path/to/some/script stop" > > /path/to/your/rsync/script > > ssh someu...@mythtv.pc "/path/to/some/script start" Ho-lee crap, this is fantastic. Everything seems to work. I find though that if I stop