Re: Preparing single-disk setup for future multi-disk usage

2012-05-23 Thread Fajar A. Nugraha
On Thu, May 24, 2012 at 1:05 PM, Björn Wüst wrote: > > Unfortunately, I do not have a disk to test it right now. The disk I am > planning to use is with the post service still :) . you can use sparse files. Possibly with losetup, if necessary. > Thank you for your replies to this email (bjoern.

Preparing single-disk setup for future multi-disk usage

2012-05-23 Thread Björn Wüst
Good morning, I currently have a single-disk setup where I want to use btrfs filesystem. Yet, I expect to add additional disks to this system in the future. Those disks shall be visible to the OS like a single disk, i.e. using multi-disk feature in btrfs. While data shall be striped among thos

Re: Ceph on btrfs 3.4rc

2012-05-23 Thread Martin Mailand
Hi, the ceph cluster is running under heavy load for the last 13 hours without a problem, dmesg is empty and the performance is good. -martin Am 23.05.2012 21:12, schrieb Martin Mailand: this patch is running for 3 hours without a Bug and without the Warning. I will let it run overnight and r

[PATCH] Btrfs: fix the same inode id problem when doing auto defragment

2012-05-23 Thread Miao Xie
Two files in the different subvolumes may have the same inode id, so The rb-tree which is used to manage the defragment object must take it into account. This patch fix this problem. Signed-off-by: Miao Xie --- fs/btrfs/file.c | 45 +++-- 1 files changed

Re: [PATCH 2/2] Btrfs: resize all devices when we dont assign a specific device id

2012-05-23 Thread Liu Bo
On 05/23/2012 01:21 PM, Goffredo Baroncelli wrote: > Hi > > On 05/17/2012 02:08 PM, Liu Bo wrote: >> This patch fixes two bugs: >> >> When we do not assigne a device id for the resizer, >> - it will only take one device to resize, which is supposed to apply on >> all available devices. >> - it

[PATCH] Btrfs: fall back to non-inline if we don't have enough space

2012-05-23 Thread Josef Bacik
If cow_file_range_inline fails with ENOSPC we abort the transaction which isn't very nice. This really shouldn't be happening anyways but there's no sense in making it a horrible error when we can easily just go allocate normal data space for this stuff. Thanks, Signed-off-by: Josef Bacik ---

Re: SSD erase state and reducing SSD wear

2012-05-23 Thread Calvin Walton
On Wed, 2012-05-23 at 16:44 +0100, Martin wrote: > On 23/05/12 05:19, Calvin Walton wrote: > > On Tue, 2012-05-22 at 22:47 +0100, Martin wrote: > >> I've got two recent examples of SSDs. Their pristine state from the > >> manufacturer shows: > > > >> Device Model: OCZ-VERTEX3 > >> 00

Re: Ceph on btrfs 3.4rc

2012-05-23 Thread Martin Mailand
Hi Josef, this patch is running for 3 hours without a Bug and without the Warning. I will let it run overnight and report tomorrow. It looks very good ;-) -martin Am 23.05.2012 17:02, schrieb Josef Bacik: Ok give this a shot, it should do it. Thanks, -- To unsubscribe from this list: send th

Re: Cant mount multi-subvolume via fstab

2012-05-23 Thread Goffredo Baroncelli
Hi Rogerio, On 05/23/2012 05:00 PM, Rogerio Bastos wrote: > Hi, > > I'm trying mount many subvolume during boot via fstab: > > UUID=xxx /usr btrfs subvol=usr,ro,nodev 0 0 > UUID=xxx /home btrfs subvol=home,nodev,nosuid 0 0 > UUID=xxx /var btrfs subvol=var,nodev 0 0 > UUID=xxx /var/tmp btrfs subv

Re: Cant mount multi-subvolume via fstab

2012-05-23 Thread ROGERIO DE CARVALHO BASTOS
Quoting Hugo Mills : On Wed, May 23, 2012 at 12:00:02PM -0300, Rogerio Bastos wrote: Hi, I'm trying mount many subvolume during boot via fstab: UUID=xxx /usr btrfs subvol=usr,ro,nodev 0 0 UUID=xxx /home btrfs subvol=home,nodev,nosuid 0 0 UUID=xxx /var btrfs subvol=var,nodev 0 0 UUID=xxx /var/

[PATCH] Btrfs: fix false positive in check-integrity on unmount

2012-05-23 Thread Stefan Behrens
During unmount, it could happen that the integrity checker printed a warning message "attempt to free ... on umount which is not yet iodone" which turned out to be a false positive. Signed-off-by: Stefan Behrens --- fs/btrfs/check-integrity.c |2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: SSD erase state and reducing SSD wear

2012-05-23 Thread Martin
On 23/05/12 05:19, Calvin Walton wrote: > On Tue, 2012-05-22 at 22:47 +0100, Martin wrote: >> I've got two recent examples of SSDs. Their pristine state from the >> manufacturer shows: > >> Device Model: OCZ-VERTEX3 >> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > >> Device Mode

Re: Cant mount multi-subvolume via fstab

2012-05-23 Thread Hugo Mills
On Wed, May 23, 2012 at 12:00:02PM -0300, Rogerio Bastos wrote: > Hi, > > I'm trying mount many subvolume during boot via fstab: > > UUID=xxx /usr btrfs subvol=usr,ro,nodev 0 0 > UUID=xxx /home btrfs subvol=home,nodev,nosuid 0 0 > UUID=xxx /var btrfs subvol=var,nodev 0 0 > UUID=xxx /var/tmp btrfs

Cant mount multi-subvolume via fstab

2012-05-23 Thread Rogerio Bastos
Hi, I'm trying mount many subvolume during boot via fstab: UUID=xxx /usr btrfs subvol=usr,ro,nodev 0 0 UUID=xxx /home btrfs subvol=home,nodev,nosuid 0 0 UUID=xxx /var btrfs subvol=var,nodev 0 0 UUID=xxx /var/tmp btrfs subvol=var-tmp,nodev,noexec,nosuid 0 0 But only the first one is mounted. When

Re: Ceph on btrfs 3.4rc

2012-05-23 Thread Josef Bacik
On Wed, May 23, 2012 at 02:34:43PM +0200, Christian Brunner wrote: > 2012/5/22 Josef Bacik : > >> > > > > Yeah you would also need to change orphan_meta_reserved.  I fixed this by > > just > > taking the BTRFS_I(inode)->lock when messing with these since we don't want > > to > > take up all that

Re: [PATCH v4 3/3] Btrfs: read device stats on mount, write modified ones during commit

2012-05-23 Thread Stefan Behrens
On Wed, 23 May 2012 09:29:12 +0800, Liu Bo wrote: > On 05/22/2012 06:53 PM, Stefan Behrens wrote: > >> The device statistics are written into the device tree with each >> transaction commit. Only modified statistics are written. >> When a filesystem is mounted, the device statistics for each invol

Re: [PATCH v4 2/3] Btrfs: add ioctl to get and reset the device stats

2012-05-23 Thread David Sterba
On Tue, May 22, 2012 at 12:53:48PM +0200, Stefan Behrens wrote: > An ioctl interface is added to get the device statistic counters. > A second ioctl is added to atomically get and reset these counters. > > Signed-off-by: Stefan Behrens > --- > fs/btrfs/ioctl.c | 26 > fs

Re: Could btrfs-restore be extended to also restore file dates?

2012-05-23 Thread Henry Bakker
I'm sure restoring all those fields would be functionality that most server admins would want. If anyone on this list can add it, then you have my thanks. On 5/23/2012 3:07 AM, David Sterba wrote: > On Tue, May 22, 2012 at 03:42:05PM -0600, Henry Bakker wrote: >> Any possibility of getting btrfs-r

Re: Ceph on btrfs 3.4rc

2012-05-23 Thread Josef Bacik
On Wed, May 23, 2012 at 02:34:43PM +0200, Christian Brunner wrote: > 2012/5/22 Josef Bacik : > >> > > > > Yeah you would also need to change orphan_meta_reserved.  I fixed this by > > just > > taking the BTRFS_I(inode)->lock when messing with these since we don't want > > to > > take up all that

Re: [PATCH v4 1/3] Btrfs: add device counters for detected IO and checksum errors

2012-05-23 Thread David Sterba
On Tue, May 22, 2012 at 12:53:47PM +0200, Stefan Behrens wrote: >*/ > clear_buffer_uptodate(bh); > + btrfs_device_stat_inc(&device->cnt_write_io_errs); > + device->device_stats_dirty = 1; > + btrfs_device_stat_print_on_error(device);

Re: Ceph on btrfs 3.4rc

2012-05-23 Thread Christian Brunner
2012/5/22 Josef Bacik : >> > > Yeah you would also need to change orphan_meta_reserved.  I fixed this by just > taking the BTRFS_I(inode)->lock when messing with these since we don't want to > take up all that space in the inode just for a marker.  I ran this patch for 3 > hours with no issues, let

Re: Could btrfs-restore be extended to also restore file dates?

2012-05-23 Thread David Sterba
On Tue, May 22, 2012 at 03:42:05PM -0600, Henry Bakker wrote: > Any possibility of getting btrfs-restore to also restore the files > timestamp? Quick look, yes it is possible and quite straightforward. The function restore.c:copy_file has direct access to the found on-disk inode item and can acces

[BUG] kernel crash when storage goes offline

2012-05-23 Thread Tomash Brechko
Hi! We are using external SAS storage via LSI MegaRAID SAS 9280-8e controller. When storage suddenly goes offline (cable unplug or expander glitch) the kernel (Fedora 3.3.5-2 64bit) outputs to log lots of kernel: [63.509223] sd 4:2:2:0: rejecting I/O to offline device but later crashes wi