Using BtrFS and backup tools for keeping two systems in sync

2015-10-07 Thread Shriramana Sharma
y use the desktop vs 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 ஶ்ரீரமணஶர்மா श्रीरमणशर्मा

Moving contents from one subvol to another

2014-11-29 Thread Shriramana Sharma
) like: find . | while read 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 wh

Re: Moving contents from one subvol to another

2014-11-29 Thread Shriramana Sharma
option so it seems 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 me

Moving an entire subvol?

2014-11-29 Thread Shriramana Sharma
bout this... Do 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
r whatchamacallit) of the entire BtrFS-based contents of the device(s) and hence cannot be deleted but only 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

Possible to undo subvol delete?

2014-11-29 Thread Shriramana Sharma
tting 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 "u

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
here should be a ToS 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
; revision). As I said, there doesn't actually seem to be a --reflink command 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 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 > >

Re: Moving an entire subvol?

2014-11-30 Thread Shriramana Sharma
recursively in one mount AFAIK. I'm not sure what you mean. I 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 ஶ்ரீரமணஶர்மா श्रीरमणशर्मा

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 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. Loo

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 wrote: > On Sun, Aug 31, 2014 at 7:25 AM, Shriramana Sharma 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 >>

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 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 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 multi

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

Re: Possible to undo subvol delete?

2014-12-01 Thread Shriramana Sharma
a.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-b

Re: Possible to undo subvol delete?

2014-12-01 Thread Shriramana Sharma
ever file will be read only if the shell is interactive) 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 major

Re: Possible to undo subvol delete?

2014-12-01 Thread Shriramana Sharma
d-write and vica-versa, 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 t

Re: Moving an entire subvol?

2014-12-01 Thread Shriramana Sharma
On Mon, Dec 1, 2014 at 6:24 AM, Chris Murphy 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 test1, test2 and fo

Re: Possible to undo subvol delete?

2014-12-01 Thread Shriramana Sharma
kernel 3.17.2 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

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? -- Shriram

Re: Moving an entire subvol?

2014-12-02 Thread Shriramana Sharma
t refer to my layout.) 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

Re: Possible to undo subvol delete?

2014-12-02 Thread Shriramana Sharma
On Tue, Dec 2, 2014 at 6:26 PM, David Sterba 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 ஶ்ரீரமணஶர்மா श्रीरमणशर्मा N

Re: Possible to undo subvol delete?

2014-12-02 Thread Shriramana Sharma
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
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://v

Re: Moving an entire subvol?

2014-12-02 Thread Shriramana Sharma
7 gen 10 top level 5 path test1 ID 258 gen 10 top level 5 path test2 ID 259 gen 9 top level 258 path test2/foo $ sudo mv test2/foo 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

Re: Moving an entire subvol?

2014-12-02 Thread Shriramana Sharma
On Wed, Dec 3, 2014 at 2:43 AM, Austin S Hemmelgarn 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
rstood. Excellent illustration. So using snapper is sorta 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 "unsubscrib

btrfs fi show not accepting mount path as arg?

2014-12-04 Thread Shriramana Sharma
h of the filesystem (or a subvolume thereof?). Some problem here? -- 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
. One should not need to run 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 "unsubs

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

2014-12-04 Thread Shriramana Sharma
still 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-btr

Re: Possible to undo subvol delete?

2014-12-04 Thread Shriramana Sharma
On Thu, Dec 4, 2014 at 12:23 AM, David Sterba 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 wrote: >> > >> > Works for me without the root password on a Tumbleweed installation >

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

2014-12-04 Thread Shriramana Sharma
saying: Refusing to explicitly operate 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"

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 wrote: > > If those disappeared, or got stripped off onto other drives then not-amusing > things would happen. Well after doing btrfs bal start -mprofiles=single, the FS is still working... -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा

Re: Possible to undo subvol delete?

2014-12-05 Thread Shriramana Sharma
s. I guess I'll ask around 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
he password. 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

Why is the actual disk usage of btrfs considered unknowable?

2014-12-07 Thread Shriramana Sharma
otted") size of all the directories and files on the disk. So this means that btrfs fi df actually shows the real on-disk usage. In this case, why do we hear people saying it's not possible to know the actual on-disk usage and when a btrfs-formatted disk (or partition) will go out of space?

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

2014-12-07 Thread Shriramana Sharma
ny 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...@v

Re: Possible to undo subvol delete?

2014-12-08 Thread Shriramana Sharma
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 the lin

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

2014-12-10 Thread Shriramana Sharma
;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

Advisability of using nocow via chattr +C

2014-08-16 Thread Shriramana Sharma
here would 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 Shar

Limitation of nocow set via chattr +C?

2014-08-16 Thread Shriramana Sharma
pshot. 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 ஶ்ரீரமணஶர்ம

Putting very big and small files in one subvolume?

2014-08-17 Thread Shriramana Sharma
my use case? 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-info.html

exact nature of send/receive problems?

2014-08-17 Thread Shriramana Sharma
receive promises. 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 messag

Significance of high number of mails on this list?

2014-08-20 Thread Shriramana Sharma
FSs". But still given the volume of mails here I wanted to ask... I'm sorry I realize I'm being a bit vague but I'm not sure how to exactly express what I'm feeling about BTRFS right now... -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा -- To unsubscribe from this list: sen

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

2014-08-21 Thread Shriramana Sharma
rwritten due 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

Distro vs latest kernel for BTRFS?

2014-08-22 Thread Shriramana Sharma
on Kubuntu, 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 u

Re: Announcement: buttersink - like rsync for btrfs snapshots

2014-08-23 Thread Shriramana Sharma
like 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

Re: Putting very big and small files in one subvolume?

2014-08-29 Thread Shriramana Sharma
On 8/17/14, Shriramana Sharma 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 advi

Change "total" in btrfs filesystem df output to "alloc"

2014-08-30 Thread Shriramana Sharma
alloc" or "allocated" (if the short 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 ஶ்ரீரமணஶ

Re: btrfs: add -k option to filesystem df

2014-08-30 Thread Shriramana Sharma
ts -- perhaps is it Alexandre's 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