Re: root subvol id is 0 or 5?

2014-11-29 Thread Goffredo Baroncelli
On 11/30/2014 04:31 AM, Shriramana Sharma wrote: > I am confused with this: should I call it the "root subvol" or > "top-level subvol" or "default subvol" or doesn't it matter? Are all > subvols equal, or some are more equal than others [hark to Orwell's > Animal Farm ;-)]? > > And more importantl

Running out of disk space during BTRFS_IOC_CLONE - rebalance doesn't help

2014-11-29 Thread Guenther Starnberger
I'm having an issue with a filesystem where I'm regularly running out of disk space during deduplication with bedup. Rebalancing does not help and the same issue occurs even after a full rebalance. Main use-case for this filesystem is a 3 TB backup disk where I'm creating backups by copying a newe

Re: BTRFS messes up snapshot LV with origin

2014-11-29 Thread Duncan
Robert White posted on Sat, 29 Nov 2014 08:50:57 -0800 as excerpted: > To those reading along who don't already know. My explanation below is > factually inadequate or wrong in various places... > > The "type codes" as presented in the various EFI/GUID disk partitioning > tools as 0700, 8200, 830

Re: Experimental tag in FAQ?

2014-11-29 Thread Marc MERLIN
On Sun, Nov 30, 2014 at 09:16:38AM +0530, Shriramana Sharma wrote: > 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? I would say no. Btrfs is still unstable,

Re: Possible to undo subvol delete?

2014-11-29 Thread Marc MERLIN
On Sun, Nov 30, 2014 at 09:03:14AM +0530, Shriramana Sharma wrote: > IIUC with BtrFS while it is possible to easily undelete a file or > ordinary directory if a snapshot of the containing subvol exists, it > seems that it's not elementary to undelete a subvol itself, because > all subvols are under

Re: Moving an entire subvol?

2014-11-29 Thread Marc MERLIN
On Sun, Nov 30, 2014 at 09:01:42AM +0530, Shriramana Sharma wrote: > So the Ubuntu Wiki BtrFS entry advises against using subvol > set-default because it boots its kernel using root=subvol=@ and home > as subvol=@home, and these two subvols are only present under the > subvol with ID 5. But isn't i

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 > > I feel it would make the inte

Re: Moving contents from one subvol to another

2014-11-29 Thread Shriramana Sharma
On Sat, Nov 29, 2014 at 10:37 PM, Robert White wrote: > > One thing to keep in mind is that mv, when crossing any of these boundaries > degenerates to a copy-and-remove operation and _none_ of the source files > will be removed until _all_ of the files have been copied. If any of the > copy operat

ToS page does not exist?

2014-11-29 Thread Shriramana Sharma
I am asked to read the ToS before signing up on the wiki: Make sure that you first read the Terms of Service before requesting an account. ... but the link is red and the page does not exist. For signing up I'm going to say I've "agreed to the ToS" anyhow, but still either there should be a ToS

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/���

Possible to undo subvol delete?

2014-11-29 Thread Shriramana Sharma
IIUC with BtrFS while it is possible to easily undelete a file or ordinary directory if a snapshot of the containing subvol exists, it seems that it's not elementary to undelete a subvol itself, because all subvols are under the root-level subvol (id 0 or 5, see my other q) but even snapshotting th

root subvol id is 0 or 5?

2014-11-29 Thread Shriramana Sharma
I am confused with this: should I call it the "root subvol" or "top-level subvol" or "default subvol" or doesn't it matter? Are all subvols equal, or some are more equal than others [hark to Orwell's Animal Farm ;-)]? And more importantly, is the ID of the root subvol 0 or 5? The Oracle guide (ht

Moving an entire subvol?

2014-11-29 Thread Shriramana Sharma
So the Ubuntu Wiki BtrFS entry advises against using subvol set-default because it boots its kernel using root=subvol=@ and home as subvol=@home, and these two subvols are only present under the subvol with ID 5. But isn't it just possible to move i.e. reparent a subvol so I can move these two unde

Re: [RFC PATCH] Btrfs: add sha256 checksum option

2014-11-29 Thread Alex Elsayed
John Williams wrote: > On Sat, Nov 29, 2014 at 1:07 PM, Alex Elsayed > wrote: >> I'd suggest looking more closely at the crypto api section of menuconfig >> - it already has crc32c, among others. Just because it's called the >> "crypto api" doesn't mean it only has cryptographically-strong >> alg

Re: [RFC PATCH] Btrfs: add sha256 checksum option

2014-11-29 Thread John Williams
On Sat, Nov 29, 2014 at 1:07 PM, Alex Elsayed wrote: > I'd suggest looking more closely at the crypto api section of menuconfig - > it already has crc32c, among others. Just because it's called the "crypto > api" doesn't mean it only has cryptographically-strong algorithms. I have looked. What 12

Re: BTRFS messes up snapshot LV with origin

2014-11-29 Thread Chris Murphy
On Sat, Nov 29, 2014 at 1:20 AM, Robert White wrote: > On 11/28/2014 11:29 PM, Duncan wrote: >> >> Since I can't/won't run pretty much anything proprietary, there's little >> chance of it being taken as anything but Linux, here. (Tho I actually >> use (c)gdisk for partitioning here and it appears

Re: Skript for backup btrfs on external HD

2014-11-29 Thread Marc MERLIN
On Sat, Nov 29, 2014 at 09:34:01PM +0100, Jakob Schürz wrote: > Hi there! > > I made a script to do backup with btrfs on a external HD. > You can see the function, how it works, and how it's to be used on > my site http://linux.xundeenergie.at/doku.php?id=mkbtrbackup > The site is in german. An en

Re: [RFC PATCH] Btrfs: add sha256 checksum option

2014-11-29 Thread Alex Elsayed
John Williams wrote: > On Sat, Nov 29, 2014 at 12:38 PM, Alex Elsayed > wrote: >> Why not just use the kernel crypto API? Then the user can just specify >> any hash the kernel supports. > > One reason is that crytographic hashes are an order of magnitude > slower than the fastest non-cryptograph

Re: [RFC PATCH] Btrfs: add sha256 checksum option

2014-11-29 Thread John Williams
On Sat, Nov 29, 2014 at 12:38 PM, Alex Elsayed wrote: > Why not just use the kernel crypto API? Then the user can just specify any > hash the kernel supports. One reason is that crytographic hashes are an order of magnitude slower than the fastest non-cryptographic hashes. And for filesystem chec

Skript for backup btrfs on external HD

2014-11-29 Thread Jakob Schürz
Hi there! I made a script to do backup with btrfs on a external HD. You can see the function, how it works, and how it's to be used on my site http://linux.xundeenergie.at/doku.php?id=mkbtrbackup The site is in german. An english one will follow later. Do you want some explanations? greetings

Re: [RFC PATCH] Btrfs: add sha256 checksum option

2014-11-29 Thread Alex Elsayed
David Sterba wrote: > On Mon, Nov 24, 2014 at 01:23:05PM +0800, Liu Bo wrote: >> This brings a strong-but-slow checksum algorithm, sha256. >> >> Actually btrfs used sha256 at the early time, but then moved to crc32c >> for performance purposes. >> >> As crc32c is sort of weak due to its hash col

Re: Moving contents from one subvol to another

2014-11-29 Thread Robert White
On 11/29/2014 07:15 AM, Shriramana Sharma wrote: On Sat, Nov 29, 2014 at 7:58 PM, Hugo Mills wrote: The latest version of mv should be able to use CoW copies to make it more efficient. It has a --reflink option, the same as cp. Note that you can't make reflinks crossing a mount boundary, bu

Re: BTRFS messes up snapshot LV with origin

2014-11-29 Thread Robert White
To those reading along who don't already know. My explanation below is factually inadequate or wrong in various places... The "type codes" as presented in the various EFI/GUID disk partitioning tools as 0700, 8200, 8300, EF02, and so on are never written to disk as such. They are short-hand va

Re: BTRFS messes up snapshot LV with origin

2014-11-29 Thread Robert White
On 11/29/2014 01:41 AM, Duncan wrote: Robert White posted on Sat, 29 Nov 2014 00:20:11 -0800 as excerpted: l Display a summary of partition types. GPT uses a GUID to identify partition types for particular OSes and purposes. For ease of data entry, gdisk compresses these int

Re: Moving contents from one subvol to another

2014-11-29 Thread Shriramana Sharma
On Sat, Nov 29, 2014 at 7:58 PM, Hugo Mills wrote: >The latest version of mv should be able to use CoW copies to make > it more efficient. It has a --reflink option, the same as cp. Note > that you can't make reflinks crossing a mount boundary, but you can do > so crossing a subvolume boundary

Re: Moving contents from one subvol to another

2014-11-29 Thread Hugo Mills
On Sat, Nov 29, 2014 at 07:51:07PM +0530, Shriramana Sharma wrote: > Hello. I am now taking the first steps to making my backup external > HDD in BtrFS. From > http://askubuntu.com/questions/119014/btrfs-subvolumes-vs-folders I > understand that the only difference between subvolumes and ordinary >

Moving contents from one subvol to another

2014-11-29 Thread Shriramana Sharma
Hello. I am now taking the first steps to making my backup external HDD in BtrFS. From http://askubuntu.com/questions/119014/btrfs-subvolumes-vs-folders I understand that the only difference between subvolumes and ordinary folders is that the former can be snapshotted and independently mounted. Bu

Re: BTRFS messes up snapshot LV with origin

2014-11-29 Thread Duncan
Robert White posted on Sat, 29 Nov 2014 00:20:11 -0800 as excerpted: > On 11/28/2014 11:29 PM, Duncan wrote: >> (Tho I actually use (c)gdisk for partitioning here and it appears to >> use a different GUID. (0700 in its short form which AFAIK is gdisk >> specific, for MS basic data, while it uses 8

Re: BTRFS messes up snapshot LV with origin

2014-11-29 Thread Robert White
On 11/28/2014 11:29 PM, Duncan wrote: Since I can't/won't run pretty much anything proprietary, there's little chance of it being taken as anything but Linux, here. (Tho I actually use (c)gdisk for partitioning here and it appears to use a different GUID. (0700 in its short form which AFAIK is g

Re: BTRFS messes up snapshot LV with origin

2014-11-29 Thread Robert White
On 11/28/2014 11:35 PM, Goffredo Baroncelli wrote: I agree with you; but I have to find a "default" so during the boot a system can start even if snapshots are present. No, you really _don't_ need to find such a default. Better a system that doesn't boot than one that boots based on a guess.