Using BtrFS and backup tools for keeping two systems in sync

2015-10-07 Thread Shriramana Sharma
laptop alternatingly and sync at each switchover, but the potential problem only would come if I modify both (something like having to do git merge, I guess). Has anyone come across this situation and evolved any policies to handle it? -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा

Re: Using BtrFS and backup tools for keeping two systems in sync

2015-10-07 Thread Shriramana Sharma
Hello can you elaborate a bit on the workflow as to how you use svn for that? -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा

Re: [PATCH] Btrfs: get more accurate output in fd command.

2014-12-10 Thread Shriramana Sharma
the fd command in the subject line is... :-) -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- 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: Possible to undo subvol delete?

2014-12-08 Thread Shriramana Sharma
non-superuser can't really do anything active (whether creating or deleting) with */sbin commands, but only querying (like ifconfig, btrfs subvol list etc). So this is not really hybrid of anything it seems. -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- To unsubscribe from this list: send

Re: Why is the actual disk usage of btrfs considered unknowable?

2014-12-07 Thread Shriramana Sharma
with any other FS, I do think I'd not like my files to occupy more than 90% or so since even then defrag would probably not work. -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org

Re: Possible to undo subvol delete?

2014-12-05 Thread Shriramana Sharma
on the openSUSE Forum... -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- 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: Possible to undo subvol delete?

2014-12-05 Thread Shriramana Sharma
. No idea why this is the openSUSE default...) -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- 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 df not really doing df?

2014-12-04 Thread Shriramana Sharma
the additional (regular) df command to find out that info, IMO. Anyone have any objection to my submitting a bug requesting this additional info to be printed? -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body

System/single + Metadata/single as leftover cruft of mkfs?

2014-12-04 Thread Shriramana Sharma
running) but I don't understand why these have to be created in the first place? (I just used SuSE Tumbleweed's default mkfs.btrfs without any -m or -d options.) -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body

Re: Possible to undo subvol delete?

2014-12-04 Thread Shriramana Sharma
On Thu, Dec 4, 2014 at 12:23 AM, David Sterba dste...@suse.cz wrote: On Tue, Dec 02, 2014 at 08:45:10PM +0530, Shriramana Sharma wrote: On Tue, Dec 2, 2014 at 6:26 PM, David Sterba dste...@suse.cz wrote: Works for me without the root password on a Tumbleweed installation (without apparmor

Re: System/single + Metadata/single as leftover cruft of mkfs?

2014-12-04 Thread Shriramana Sharma
on system chunks. Pass --force if you really want to do that. So I did give --force. (Is it the same as -f?) I hope that was OK? -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord

Re: System/single + Metadata/single as leftover cruft of mkfs?

2014-12-04 Thread Shriramana Sharma
On Thu, Dec 4, 2014 at 11:47 PM, Robert White rwh...@pobox.com wrote: If those disappeared, or got stripped off onto other drives then not-amusing things would happen. Well after doing btrfs bal start path -mprofiles=single, the FS is still working... -- Shriramana Sharma ஶ்ரீரமணஶர்மா

Thin metadata and nohole options recommended?

2014-12-02 Thread Shriramana Sharma
From what I'm reading, thin metadata and nohole options were introduced to make the FS more efficient. Does this mean that for someone about to do mkfs.btrfs, it is actively recommended to use these options? Another pertinent question -- why aren't they default then? -- Shriramana Sharma

Re: Moving an entire subvol?

2014-12-02 Thread Shriramana Sharma
.) I am now reading a SuSECon 2013 presentation by Nyers and Schnell but they are very generic about the recommendations. -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More

Re: Possible to undo subvol delete?

2014-12-02 Thread Shriramana Sharma
On Tue, Dec 2, 2014 at 6:26 PM, David Sterba dste...@suse.cz wrote: Works for me without the root password on a Tumbleweed installation (without apparmor/selinux). Are you then referring to a btrfs partition mounted with user_subvol_rm_allowed? -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा

Re: Possible to undo subvol delete?

2014-12-02 Thread Shriramana Sharma
, no? Or is it some sort of trash vs (real) delete mechanism? -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- 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: Thin metadata and nohole options recommended?

2014-12-02 Thread Shriramana Sharma
by default but not any of the others. Is that a SuSE-specific modification or upstream? -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- 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

Re: Moving an entire subvol?

2014-12-02 Thread Shriramana Sharma
test1/ $ btr sub list . ID 257 gen 10 top level 5 path test1 ID 258 gen 10 top level 5 path test2 ID 259 gen 9 top level 257 path test1/foo $ So now what is the meaning of top level? -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- To unsubscribe from this list: send the line unsubscribe linux

Re: Moving an entire subvol?

2014-12-02 Thread Shriramana Sharma
On Wed, Dec 3, 2014 at 2:43 AM, Austin S Hemmelgarn ahferro...@gmail.com wrote: Here's my approach to things: Wow, thanks a lot people! I'm really benefiting from your experience here. -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा

Re: Possible to undo subvol delete?

2014-12-02 Thread Shriramana Sharma
like using the higher-level trash instead of lower-level rm, so that even after we delete, it's still available... -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More

Re: Possible to undo subvol delete?

2014-12-01 Thread Shriramana Sharma
://bugzilla.kernel.org/show_bug.cgi?id=89091. As I requested there, I prefer for confirmation by default and -f to force otherwise, rather than behaviour of rm which requires -i to ask confirmation. -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- To unsubscribe from this list: send the line unsubscribe linux

Re: Possible to undo subvol delete?

2014-12-01 Thread Shriramana Sharma
) would work? Like in ~/.bashrc: export BTRFS_SUBVOLUME_DELETE_CONFIRM=1 Ideas? -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- 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

Re: Possible to undo subvol delete?

2014-12-01 Thread Shriramana Sharma
, or you can only specify read-only while creating them? IIUC you can only specify RO while creating but you can always cheaply create a RW snapshot of an RO one or an RO snapshot of an RW one... -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- To unsubscribe from this list: send the line

Re: Moving an entire subvol?

2014-12-01 Thread Shriramana Sharma
On Mon, Dec 1, 2014 at 6:24 AM, Chris Murphy li...@colorremedies.com wrote: But isn't it just possible to move i.e. reparent a subvol so I can move these two under another subvol and have that as default? You can move subvolumes. OK so I just found out that just mv test1/foo test2/ where

Re: Possible to undo subvol delete?

2014-12-01 Thread Shriramana Sharma
and btrfsprogs 3.17) requires me to enter the root password before creating a subvol (or in fact running anything under /sbin or /usr/sbin). -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord

Re: Moving an entire subvol?

2014-11-30 Thread Shriramana Sharma
have a few subvols in my external HDD which is entirely formatted as BtrFS and if I just mount the external HDD /dev/sdc1 I am able to access all the subvols' contents as well. -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- To unsubscribe from this list: send the line unsubscribe linux-btrfs

Re: Moving contents from one subvol to another

2014-11-30 Thread Shriramana Sharma
On Sun, Nov 30, 2014 at 9:23 AM, Shriramana Sharma samj...@gmail.com wrote: Why should noCoW affect cp --reflink anyhow? I just created a 500 MiB file from /dev/urandom under a chattr +C-ed dir, and copied to another subvol using cp --reflink, and fi df still shows 500 MiB, not 1 GiB. Looks

Re: Change total in btrfs filesystem df output to alloc

2014-11-30 Thread Shriramana Sharma
Attached patch. On Sun, Nov 30, 2014 at 9:30 AM, Shriramana Sharma samj...@gmail.com wrote: On Sun, Aug 31, 2014 at 7:25 AM, Shriramana Sharma samj...@gmail.com wrote: Hello. There seem to be lots of questions in various forums re the output of btrfs fi df -- especially w.r.t. the usage

Re: root subvol id is 0 or 5?

2014-11-30 Thread Shriramana Sharma
On Sun, Nov 30, 2014 at 5:29 PM, Hugo Mills h...@carfax.org.uk wrote: In the data structures on disk, it's 5. The kernel aliases 0 to mean subvolid 5. So why 5 and not just 0 which seems a logical choice? On top of this, one needs to alias 0 to 5! -- Shriramana Sharma ஶ்ரீரமணஶர்மா

Re: root subvol id is 0 or 5?

2014-11-30 Thread Shriramana Sharma
On Sun, Nov 30, 2014 at 7:08 PM, Shriramana Sharma samj...@gmail.com wrote: So why 5 and not just 0 which seems a logical choice? On top of this, one needs to alias 0 to 5! Attached patch clarifying this in the documentation. (Should have done this with the previous mail. Sorry for multiple

Considerations in snapshotting and send/receive of nocow files?

2014-11-30 Thread Shriramana Sharma
snapshotted less often? 3) sent/received any differently? Thanks. -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- 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

Moving contents from one subvol to another

2014-11-29 Thread Shriramana Sharma
f do [ -d $f ] mkdir target/$f touch target/$f -r $f [ -f $f ] cp -a --reflink $f target/ rm $f done Again, what would happen to files which are not regular directories or files? And why isn't --reflink given a single letter alias for cp? -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा

Re: Moving contents from one subvol to another

2014-11-29 Thread Shriramana Sharma
the improvement is in-built. That's nice to know! Any idea when the next coreutils point release with this will be out? -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More

Moving an entire subvol?

2014-11-29 Thread Shriramana Sharma
they mount root using subvolid, or subvol name or such? -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- 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

root subvol id is 0 or 5?

2014-11-29 Thread Shriramana Sharma
reset by a mkfs.btrfs, but 5 is only the default subvol (mounted when the FS as a whole is mounted without subvol spec) provided by mkfs.btrfs, and subvol set-default can have another subvol mounted as default instead, after which 5 can actually be deleted? [confused]... -- Shriramana Sharma

Possible to undo subvol delete?

2014-11-29 Thread Shriramana Sharma
the root subvol will not snapshot any subvols under it. So is there any way to undo a subvol delete? [If no, then ordinary users should probably prefer regular directories to subvols.] -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- To unsubscribe from this list: send the line unsubscribe linux

Experimental tag in FAQ?

2014-11-29 Thread Shriramana Sharma
https://btrfs.wiki.kernel.org/index.php/FAQ#Is_btrfs_stable.3F still reads experimental whereas the warning has been removed in the tools recently IIUC. The FAQ item to be updated, no? -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा N�r��yb�X��ǧv�^�)޺{.n�+{�n�߲)w*jg����ݢj

ToS page does not exist?

2014-11-29 Thread Shriramana Sharma
page or this requirement should not be there... -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- 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: Moving contents from one subvol to another

2014-11-29 Thread Shriramana Sharma
line option. -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- 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: Change total in btrfs filesystem df output to alloc

2014-11-29 Thread Shriramana Sharma
On Sun, Aug 31, 2014 at 7:25 AM, Shriramana Sharma samj...@gmail.com wrote: Hello. There seem to be lots of questions in various forums re the output of btrfs fi df -- especially w.r.t. the usage of the word total. For example see https://community.oracle.com/thread/2459838 I feel it would

Change total in btrfs filesystem df output to alloc

2014-08-30 Thread Shriramana Sharma
form is felt unclear). It would also help people understand the output of regular df on a btrfs system since one can understand easier that pre-allocated space would count as used space as it is not free! -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- To unsubscribe from this list: send

Re: btrfs: add -k option to filesystem df

2014-08-30 Thread Shriramana Sharma
site?! -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- 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: Putting very big and small files in one subvolume?

2014-08-29 Thread Shriramana Sharma
On 8/17/14, Shriramana Sharma samj...@gmail.com wrote: Hello. One more Q re generic BTRFS behaviour. https://btrfs.wiki.kernel.org/index.php/Main_Page specifically advertises BTRFS's Space-efficient packing of small files. Hello. I realized that while I got lots of interesting advice on how

Re: Announcement: buttersink - like rsync for btrfs snapshots

2014-08-23 Thread Shriramana Sharma
their review... -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- 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

Distro vs latest kernel for BTRFS?

2014-08-22 Thread Shriramana Sharma
, which provides mainline kernels till a particular point but not beyond that. Do people here always compile the latest kernel themselves just to get the latest BTRFS stability fixes (and improvements, though as a second priority)? -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- To unsubscribe

Re: Significance of high number of mails on this list?

2014-08-21 Thread Shriramana Sharma
to COW and atomic operations, and I can always retry send/receive again. Is this correct? If yes, then I guess I can take the plunge but ensure I have daily backups (which BTRFS itself should help me do easily). -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- To unsubscribe from this list: send

Putting very big and small files in one subvolume?

2014-08-17 Thread Shriramana Sharma
! -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- 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

exact nature of send/receive problems?

2014-08-17 Thread Shriramana Sharma
. If this reason is going to be affected seriously, then I'll return to BTRFS a year hence as was suggested elsewhere... -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More

Advisability of using nocow via chattr +C

2014-08-16 Thread Shriramana Sharma
be a different way to provide crash resistance. But since BTRFS doesn't have journaling, it seems that this suggestion to disable COW on the image file to avoid defragmentation would only make it vulnerable to data corruption. Comments please? Thanks! -- Shriramana Sharma ஶ்ரீரமணஶர்மா

Limitation of nocow set via chattr +C?

2014-08-16 Thread Shriramana Sharma
. I tried this out, and sure enough, just because chattr +C was applied, my change in the snapshot did not reflect in the original subvolume. So nocow via chattr +C only means don't do COW unless this file exists in another snapshot, right? -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा