Re: btrfs multi device handling

2016-06-22 Thread sri
Hi, any inputs on this would be appreciated. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

btrfs multi device handling

2016-06-17 Thread sri
I am trying to understand how btrfs handles multiple devices configured to a single btrfs file system. As compared to traditinal LVM2, say 2 physical disks /dev/sda, /dev/sdb are configured as single LVM2 pool and lvm provide an abstract view say /dev/mapper/VG1-LV1 where VG1 is name of volume

btrfs on disk consistency

2016-05-26 Thread sri
In traditional file systems such as ext3/ext4 when a snapshot (say with LVM2) is taken, all I/O are frozen and entire file system including meta dta is part of snapshot. Btrfs snapshot also managed by file system itself and btrfs snapshot is actually does a sub volume snapshot which makes a

backup and restore consideration of btrfs

2016-04-28 Thread sri
Btrfs supports btrfs send and receive tools to backup subvolumes which is built in and good. However considering the current storage data utilization in the industry, using send/receive would be very slow operation and kills lot of CUP cycles of source machine. As an example, file systems

Re: btrfs-image and btrfs send related queries

2016-04-20 Thread sri
Sorry. Its typo I used original disk /dev/sdb where filesystem is created and seeing these errors. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: btrfs-image and btrfs send related queries

2016-04-19 Thread sri
Henk Slager gmail.com> writes: > > On Mon, Apr 18, 2016 at 4:26 PM, Roman Mamedov romanrm.net> wrote: > > On Mon, 18 Apr 2016 16:13:28 +0200 > > Henk Slager gmail.com> wrote: > > > >> (your email keeps ending up in gmail spam folder) >

Re: btrfs-image and btrfs send related queries

2016-04-18 Thread sri
I tried btrfs-image and created image file and ran btrfs-image -r to a different disk. Once recovered and mounted, I can able to see data is not zeroed out as mentioned in btrfs-image man page. I tried on same machine. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs"

btrfs-image and btrfs send related queries

2016-04-15 Thread sri
Hi, I have couple of queries related to btrfs-image, btrfs send and with combination of two. 1) I would like to know if a btrfs source file system is spread across more than 1 disks, does btrfs-image require same number of disks to create empty file system without files content?? 2) would

good documentation on btrfs internals and on disk layout

2016-03-30 Thread sri
Hi, I could find very limited documentation related to on disk layout of btrfs and how all trees are related to each other. Except wiki which has very specific top level details I couldn't able to find more details on btrfs. FSs such as zfs, ext3/4 and XFS there are documents which explains

Re: Blocks changed since previous snapshot of subvolume

2016-03-19 Thread sri
Henk Slager gmail.com> writes: > > sri yahoo.co.in> writes: > > > > > Hi, > > > > I Would like to know between 2 snapshots of a subvolume, can we identify > > what all blocks modified particular to that subvolume ? > > > > there

Blocks changed since previous snapshot of subvolume

2016-03-18 Thread sri
Hi, I Would like to know between 2 snapshots of a subvolume, can we identify what all blocks modified particular to that subvolume ? there can be many subvolume and snapshots present on the btrfs but i want only blocks modified since first snapshot for the specific subvolume. blocks should

Re: how many chunk trees and extent trees present

2016-02-25 Thread sri
em with send/receive is 1. It is file level dump 2. previous snapshot should be present to get incremental otherwise it generates full backup again. sri yahoo.co.in> writes: > > Hugo Mills carfax.org.uk> writes: > > > > > On Fri, Apr 17, 2015 at 06:24:05AM +,

btrfs on disk stability

2015-05-26 Thread sri
Hi, According to btrfs wiki page, under Stability status it is written that The filesystem disk format is no longer unstable. Does this mean if there are more I/Os are going on a btrfs file system, copy of entire disk (all disk blocks) gives a stable disk? Just to elaborate more, if btrfs

Re: btrfs on disk stability

2015-05-26 Thread sri
Hugo Mills hugo at carfax.org.uk writes: On Tue, May 26, 2015 at 08:45:06AM +, sri wrote: Hi, According to btrfs wiki page, under Stability status it is written that The filesystem disk format is no longer unstable. Does this mean if there are more I/Os are going

btrfs send/receive for backup of subvolumes

2015-05-05 Thread sri
Hi My query speicific to incremental backup/recovery with btrfs send/receive option available for btrfs subvolume backups. say i have /b1/s1 subvolume and snapshot of s1 is /b1/snap1_s1 I run btrfs send /b1/snap_s1 | btrfs receive /backup where /backup is my backup btrfs file system. Now I

btrfs freeze/thaw when using with LVM2

2015-04-27 Thread sri
Hi, I would like to know if btrfs file system is created on LVM2 logical volumes, does freeze and thaw operations takes place for btrfs to make file system consistent?? If not is there a way (ioctl etc..) to run btrfs freeze/thaw before and after creating LVM2 snapshot of a btrfs file

Re: btrfs freeze/thaw when using with LVM2

2015-04-27 Thread sri
Hugo Mills hugo at carfax.org.uk writes: On Mon, Apr 27, 2015 at 12:05:28PM +, sri wrote: Hi, I would like to know if btrfs file system is created on LVM2 logical volumes, does freeze and thaw operations takes place for btrfs to make file system consistent?? No, because

Re: btrfs freeze/thaw when using with LVM2

2015-04-27 Thread sri
Hugo Mills hugo at carfax.org.uk writes: On Mon, Apr 27, 2015 at 10:34:42PM +0500, Roman Mamedov wrote: On Mon, 27 Apr 2015 14:55:49 + Hugo Mills hugo at carfax.org.uk wrote: This is strange considering that I wanted a consistent snapshot of entire btrfs filesystem at

btrfs send dump format

2015-04-24 Thread sri
Hi, Is there any document or something to understand btrfs send format/layout i.e being created when we give a file with -f option. I looking for it in order to create similar dump file with same layout so that I can use btrfs receive with the dump file which I have created in order to

btrfs snapshot root level and for subvolumes

2015-04-22 Thread sri
Hi, I btrfs file system created with one device /dev/sdb and mounted under /btrfs1. created one file /btrfs1/errno.h, one directory /btrfs1/dir1 and 2 subvolumes /btrfs1/subvol1 and /btrfs/subvol2 create directories and files under subvolume /btrfs1/subvol1. Nothing inside /btrfs1/subvol2.

Re: btrfs send to file differences

2015-04-21 Thread sri
Hugo Mills hugo at carfax.org.uk writes: On Mon, Apr 20, 2015 at 02:15:47PM +, sri wrote: Hi, I have a subvolume with only one file (file.txt) with 5Mb size. under /btrfs/subvol1/ 1) I have created 1st snapshot /btrfs/snap1_subvol1. Then I ran btrfs send and given -f out1

btrfs send to file differences

2015-04-20 Thread sri
Hi, I have a subvolume with only one file (file.txt) with 5Mb size. under /btrfs/subvol1/ 1) I have created 1st snapshot /btrfs/snap1_subvol1. Then I ran btrfs send and given -f out1.img size of out1.img is 5Mb. 2) Next, I have appended 1Mb data to file.txt And again created snapshot

how many chunk trees and extent trees present

2015-04-17 Thread sri
Hi, I have below queries. Could somebody help me in understanding. 1) As per my understanding btrfs file system uses one chunk tree and one extent tree for entire btrfs disk allocation. Is this correct? In, some article i read that future there will be more chunk tree/ extent tree for single

Re: how many chunk trees and extent trees present

2015-04-17 Thread sri
Hugo Mills hugo at carfax.org.uk writes: On Fri, Apr 17, 2015 at 06:24:05AM +, sri wrote: Hi, I have below queries. Could somebody help me in understanding. 1) As per my understanding btrfs file system uses one chunk tree and one extent tree for entire btrfs disk allocation