Re: Determine the creation time of a root tree

2016-08-06 Thread Hugo Mills
like look at the modification time of a file, and then find the latest generation of any item associated with that file, which would give you a time/inode pairing. Do enough of those, and you'd have some kind of map that you could use to approximate the time for a given genid. Hugo. -- Hugo Mil

Re: Strange behavior after "rm -rf //"

2016-08-08 Thread Hugo Mills
mantics after a power loss: all th efiles that you'd written up to the point of the power loss actually appear afterwards. (If this didn't happen, you could lose up to 30s of writes from before the crash). It's only very recently that there's been an option to prevent it, whic

btrfs dev del hangs on 4.7

2016-08-09 Thread Hugo Mills
el: [] ? btree_invalidatepage+0x85/0x85 Aug 9 15:59:56 s_src@amelia kernel: [] ? kthread+0x95/0x9d Aug 9 15:59:56 s_src@amelia kernel: [] ? ret_from_fork+0x1f/0x40 Aug 9 15:59:56 s_src@amelia kernel: [] ? init_completion+0x1d/0x1d -- Hugo Mills | Great films about cricket: Monster's No-Ball hugo@... carfax.org.uk | http://carfax.org.uk/ | PGP: E2AB1DE4 | signature.asc Description: Digital signature

Re: btrfs dev del hangs on 4.7

2016-08-09 Thread Hugo Mills
Hi, Chris, On Tue, Aug 09, 2016 at 02:02:20PM -0400, Chris Mason wrote: > On 08/09/2016 01:27 PM, Hugo Mills wrote: > > Over the weekend, I started doing some maintenance on my server: I > >upgraded to 4.7.0, and I started deleting a device from my array, > >prepar

Re: btrfs dev del hangs on 4.7

2016-08-09 Thread Hugo Mills
On Tue, Aug 09, 2016 at 02:26:14PM -0400, Chris Mason wrote: > On 08/09/2016 02:23 PM, Hugo Mills wrote: > > Hi, Chris, > > > >On Tue, Aug 09, 2016 at 02:02:20PM -0400, Chris Mason wrote: > >>On 08/09/2016 01:27 PM, Hugo Mills wrote: > >>> Over the we

Re: btrfs dev del hangs on 4.7

2016-08-09 Thread Hugo Mills
On Tue, Aug 09, 2016 at 06:27:33PM +, Hugo Mills wrote: > On Tue, Aug 09, 2016 at 02:26:14PM -0400, Chris Mason wrote: > > On 08/09/2016 02:23 PM, Hugo Mills wrote: > > > Hi, Chris, > > > > > >On Tue, Aug 09, 2016 at 02:02:20PM -0400, Chris Mason wrote

Re: btrfs dev del hangs on 4.7

2016-08-09 Thread Hugo Mills
On Tue, Aug 09, 2016 at 03:22:03PM -0400, Chris Mason wrote: > > > On 08/09/2016 03:11 PM, Hugo Mills wrote: > >On Tue, Aug 09, 2016 at 06:27:33PM +0000, Hugo Mills wrote: > >>On Tue, Aug 09, 2016 at 02:26:14PM -0400, Chris Mason wrote: > >>>On 08/09/2016 02

Re: btrfs dev del hangs on 4.7

2016-08-10 Thread Hugo Mills
On Tue, Aug 09, 2016 at 07:41:42PM +, Hugo Mills wrote: > On Tue, Aug 09, 2016 at 03:22:03PM -0400, Chris Mason wrote: > > > > > > On 08/09/2016 03:11 PM, Hugo Mills wrote: > > >On Tue, Aug 09, 2016 at 06:27:33PM +, Hugo Mills wrote: > > >>On Tu

Re: Likelihood of read error, recover device failure raid10

2016-08-14 Thread Hugo Mills
ecessarily reflected in the real-life usage of the devices. I think that if you're doing those calculations, you really need to find out what the values quoted by the manufacturer actually mean, first. (i.e. if you read all the data once a month with a scrub, and allow the drive to identify

Re: About minimal device number for RAID5/6

2016-08-15 Thread Hugo Mills
R x_n XOR p = 0 for corresponding bits in the n data volumes. With one data volume, n=1, and hence p = x_1. What's the problem? :) Hugo. > -Anand > > > > Three disks in > >RAID6 is similar, but has a slight advantage at the moment in BTRFS > >because it&

df is not using the right algorithm to report usable space

2016-08-17 Thread Hugo Mills
f the unallocated space on all the devices is similar, it gets the answer nearly right. It seems to get worse as the imbalance of unallocated space across the devices gets larger. Hugo. -- Hugo Mills | I know of three kinds: hot, cool, and hugo@... carfax.org.uk | what-time-does

Re: [PATCH] btrfs: Change RAID stripesize to a user-configurable option

2016-08-18 Thread Hugo Mills
parameter to the block group, so that BGs know their own stripe size. Then implement a balance filter so that you can read a BG (in the old stripe size, which it knows about), and write a new BG with the new stripe size and the old data (now restriped). It was a long and somewhat struggling c

Re: Balancing subvolume on a specific device

2016-08-19 Thread Hugo Mills
gen 708 top level 5 path cm13.0 > ID 259 gen 708 top level 5 path ccache > ID 269 gen 708 top level 5 path omni > > I would like the ccache subvol to always be stored on the SSD, unless no > disk space is available. Is that possible? No, it isn't, sorry. Hugo. --

Re: `btrfs dev del` fails with `No space left on device`

2016-08-30 Thread Hugo Mills
o the new/empty drive, but > during the delete `btrfs fi us` shows > Unallocated: > /dev/sdc1 16.00EiB > > so deleted partition is counted as maximum possible empty drive and > blocks are relocated to it instead of new/empty drive? (kernel-4.7.2 & > btrfs-progs-4.7.1

Re: Is stability a joke?

2016-09-11 Thread Hugo Mills
ry valuable. I just said that I > *prefer* to have that stuff on the BTRFS wiki and feel that is the > right place for it. > > > >I bet Chris Mason and other BTRFS developers at Facebook have some idea on > >what they use within Facebook as well. To what exte

Re: Small fs

2016-09-11 Thread Hugo Mills
;s no distinction: Data and metadata both use the same chunks. If those chunks are DUP, then both data and metadata are duplicated, and you get half the space available. Hugo. -- Hugo Mills | Questions are a burden, and answers a prison for hugo@.

Re: [PATCH 02/13] btrfs: Do per-chunk check for mount time check

2016-09-12 Thread Hugo Mills
info->cleaner_kthread = kthread_run(cleaner_kthread, tree_root, > "btrfs-cleaner"); > -- > 2.7.0 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in > the body of a message to major

Re: Is stability a joke? (wiki updated)

2016-09-15 Thread Hugo Mills
here back in the 2.x era (IIRC). Hugo. > > Yeah I know, it's just much of this is non-obvious to users unfamiliar > with this file system. And even I'm often throwing spaghetti on a > wall. > > > -- > Chris Murphy > -- > To unsubscribe from this list

Re: how to understand "btrfs fi show" output? "No space left" issues

2016-09-19 Thread Hugo Mills
iB, used=0.00B > > > # df -h > Filesystem Size Used Avail Use% Mounted on > /dev/sda3 424G 137G 286G 33% /var/lib/lxd > > > > Tomasz Chmielewski > https://lxadm.com > -- > To unsubscribe from this list: send the line "unsubscribe linux-btrfs"

Re: stability matrix (was: Is stability a joke?)

2016-09-20 Thread Hugo Mills
replies preferred. No HTML msgs. > "Every nonfree program has a lord, a master -- > and if you use the program, he is your master." Richard Stallman > > -- > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in > the body of a message to majord...

Re: how to understand "btrfs fi show" output? "No space left" issues

2016-09-20 Thread Hugo Mills
s + new files) only 10GB a day it > > will be enough to run this ever night. > > The last option completly avoid the ENOSPC issue but produce aditional > > workload for your harddrives. > > > > Note: you should avoid making snapshots during balance. Use a

Re: Does data checksumming remain for files with No_COW file attribute?

2016-09-24 Thread Hugo Mills
mo info at http://vger.kernel.org/majordomo-info.html -- Hugo Mills | Comic Sans goes into a bar, and the barman says, "We hugo@... carfax.org.uk | don't serve your type here." http://carfax.org.uk/ | PGP: E2AB1DE4 | signature.asc Description: Digital signature

Re: Does data checksumming remain for files with No_COW file attribute?

2016-09-24 Thread Hugo Mills
gt; > may it disable checksumming only for newly written extents and keep for > > reading existing ones? > > You can't apply chattr +C to any files of non-zero length, so by definition > there won't be any pre-existing checksummed extents in that file. > > --

Re: Data total size shrinking during btrfs balance

2016-10-09 Thread Hugo Mills
ves any data in it to other chunks. Once the chunk is empty, it's freed up. Now, when the data is moved, it will typically go to any free allocated space first; only if there isn't any free space allocated for data will more space be allocated. So, the normal behaviour is that when you

Re: RAID system with adaption to changed number of disks

2016-10-11 Thread Hugo Mills
o. It needs to be triggered manually at the moment, but it definitely works. Hugo. -- Hugo Mills | We are all lying in the gutter, but some of us are hugo@... carfax.org.uk | looking at the stars. http://carfax.org.uk/ | PGP: E2AB1DE4 |

Re: Incremental send robustness question

2016-10-12 Thread Hugo Mills
any accidental errors. (See the received-subvol option for btrfs sub list). It's not robust against an attacker that can control the UUIDs... but then, if they can do that, there's a whole load more problems you've got. Hugo. -- Hugo Mills | Great oxymorons

Re: Cross subvolume "cp --reflink"?

2016-10-19 Thread Hugo Mills
e /mnt subtree. Reflink operations (including cp --reflink=always, and the reflink-aware mv) work across subvol boundaries, but not mount boundaries. Hugo. -- Hugo Mills | For months now, we have been making triumphant hugo@... carfax.org.uk | retreats before a demoralised e

Re: Drive Replacement

2016-10-21 Thread Hugo Mills
he full amount of the device. Otherwise, it'll still be the same size as the original. Hugo. -- Hugo Mills | Great films about cricket: Batsman Begins hugo@... carfax.org.uk | starring Christian Bail http://carfax.org.uk/ | PGP: E2AB1DE4 | signature.asc Description: Digital signature

Re: btrfs-tools source code

2011-10-26 Thread Hugo Mills
he latest integration branch (which is the very latest bits). Gitweb access for browsing is at http://git.darksatanic.net/cgi/gitweb.cgi?p=btrfs-progs-unstable.git;a=summary Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwke

Re: Btrfs progs git repo on kernel.org

2011-10-27 Thread Hugo Mills
ere: > > git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git > > My next step is to push out a branch with Josef's recovery tool > integrated in. I'm spending some time adding my metadata scanning code > with his, and trying to clean up things for a real

Re: Btrfs progs git repo on kernel.org

2011-10-27 Thread Hugo Mills
On Thu, Oct 27, 2011 at 05:32:58PM -0400, Chris Mason wrote: > On Thu, Oct 27, 2011 at 04:58:54PM +0100, Hugo Mills wrote: > > On Thu, Oct 27, 2011 at 11:27:07AM -0400, Chris Mason wrote: > > > I've pulled in Hugo's integration tree, minus the features that were not &g

Re: Unable to mount btrfs partition

2011-10-28 Thread Hugo Mills
sef's git repository at [1], you will find a tool called "restore". This should allow you to copy any files that had been modified since your last backup. If you haven't got backups, you *really* should look into getting some before continuing to use a filesystem marked as EXPERIM

Re: Find RAID level, Change RAID level.

2011-10-29 Thread Hugo Mills
trfs fi df /path/to/filesystem To change RAID levels, you will need Ilya Dryomov's restriper patches, which were posted to this list back in August. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or htt

Re: Find RAID level, Change RAID level.

2011-10-29 Thread Hugo Mills
On Sun, Oct 30, 2011 at 12:55:33AM +1030, Jordan Windsor wrote: > On Sun, Oct 30, 2011 at 12:43 AM, Hugo Mills wrote: > > On Sun, Oct 30, 2011 at 12:28:39AM +1030, Jordan Windsor wrote: > >> Hello, > >> I was wondering is it possible to find the RAID level currently in

Re: Find RAID level, Change RAID level.

2011-10-29 Thread Hugo Mills
On Sun, Oct 30, 2011 at 01:06:49AM +1030, Jordan Windsor wrote: > On Sun, Oct 30, 2011 at 1:04 AM, Hugo Mills wrote: > > On Sun, Oct 30, 2011 at 12:55:33AM +1030, Jordan Windsor wrote: > >> On Sun, Oct 30, 2011 at 12:43 AM, Hugo Mills wrote: > >> > On Sun, Oc

Re: Find RAID level, Change RAID level.

2011-10-30 Thread Hugo Mills
u raid0 for data > > across two drives w/o applying any patches. > > Thanks, I was wondering if I added a device that was already part of > another btrfs volume, then would I have the files merged as one volume > or overwritten in the newly added one? You'll lose the origin

[RFC] [PROGS] Regression tests

2011-10-30 Thread Hugo Mills
"btrfs sub snap". Other tests will follow. Signed-off-by: Hugo Mills --- If nobody has any major comments or objections, I'll feed this up to Chris from the integration branch when I next send him a stack of patches. Hugo. Makefile |8 +++ test/001u

Re: [PATCH 1/2][BTRFS-PROGS] add the "--force" switch to the mkfs.btrfs command

2011-10-30 Thread Hugo Mills
ly the relevant S-o-B line that I can put in. Thanks, Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- That's not rain, that's a lake with slots in it. --- signature.asc Description: Digital signature

Re: Unable to mount btrfs partition

2011-10-31 Thread Hugo Mills
On Sat, Oct 29, 2011 at 01:45:32AM +0200, em...@joachim-neu.de wrote: > > On Fri, 28 Oct 2011 22:09:47 +0100, Hugo Mills > wrote: > >On Fri, Oct 28, 2011 at 08:36:28PM +, em...@joachim-neu.de wrote: > >>Now I'm not able to mount my btrfs / and /home (both on th

New integration branch for btrfs-progs

2011-10-31 Thread Hugo Mills
t: tool to extract the info for the help from the source. Update the makefile for generating the man page. Show the help messages from the info in the comment. Update the makefile for generating the help messages. Hugo Mills (2): Regression tests Fix sub snap parameter

Re: Where can I find symlink's target?

2011-11-01 Thread Hugo Mills
atabase, so we can have it back up somewhere else shortly after that). Hugo. [1] http://btrfs.wiki.kernel.org/ -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Is it true that &quo

Re: https://btrfs.wiki.kernel.org/index.php/Main_Page

2011-11-02 Thread Hugo Mills
On Wed, Nov 02, 2011 at 10:00:19AM +, Leonidas Spyropoulos wrote: > On Mon, Oct 17, 2011 at 2:17 PM, Hugo Mills wrote: > > On Mon, Oct 17, 2011 at 09:07:53PM +0800, Anand Jain wrote: > >> > >>  Does not load. Wondering if this should work or has been moved ? >

Re: [BTRFS-PROG][PATCH 1/7] Correct xstrip() function

2011-11-02 Thread Hugo Mills
s. I put in CC the writer hoping that they will > care to maintain aligned the documentation with the code. > > These patches are base on the latest "Hugo Mills" integration branch. Please don't do this -- it makes it harder for me to integrate, because I throw away

Re: Stupid newb tricks: making a subvolume of root.

2011-11-10 Thread Hugo Mills
ot;), and then mounting subvolid=0 on /media/btrfs-management to delete the old contents of / (I hope that made sense) Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk -

Re: Introduce option to rebalance only metadata

2011-11-10 Thread Hugo Mills
fs_find_device(struct btrfs_root > *root, u64 devid, > int btrfs_shrink_device(struct btrfs_device *device, u64 new_size); > int btrfs_init_new_device(struct btrfs_root *root, char *path); > int btrfs_balance(struct btrfs_root *dev_root); > +int btrfs_balance_metadata(struct btrfs

Re: Stupid newb tricks: making a subvolume of root.

2011-11-11 Thread Hugo Mills
On Fri, Nov 11, 2011 at 02:06:42PM -0500, Ken D'Ambrosio wrote: > On Thu, 10 Nov 2011 14:59:44 +0000 Hugo Mills wrote > > >Alternatively, if you want the top level to be simply a container > > for subvolumes (and to use a default subvolume to mount / ), then you >

Re: Stupid newb tricks: making a subvolume of root.

2011-11-11 Thread Hugo Mills
On Fri, Nov 11, 2011 at 04:47:17PM -0500, Ken D'Ambrosio wrote: > On Fri, 11 Nov 2011 19:13:09 +0000 Hugo Mills wrote > > >I'd suggest reporting (on this mailing list) the panic message(s) > > you got, and how you got to them. I know there's been quite a few

Re: can't access diagrams on wiki

2011-11-13 Thread Hugo Mills
agrams you mention are here on my hard disk -- I just haven't had the time to upload them yet. Hugo. [1] http://btrfs.ipv5.de/ -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Ho

Re: [RFC] Subvolume Quota on-disk structures and configuration

2011-11-22 Thread Hugo Mills
roups > > > >just waiting for the replication to the mirrors... > > What about the btrfs-progs changes to add the commands? Those should be waiting in the integration tree at [1]. Hugo. [1] http://git.darksatanic.net/repo/btrfs-progs-unstable.git/ -- === Hugo Mills: hu

Re: Announcing btrfs-gui

2011-11-23 Thread Hugo Mills
On Sat, Nov 12, 2011 at 01:24:57AM +0100, Amedee Van Gasse wrote: > On 02-06-11 01:20, Hugo Mills wrote: > >Unless the traffic gets too high-volume, or unless someone > >important objects, I'm going to suggest that bug reports should go to > >this list for now (cc

Re: [PATCH 0/3] Show Chunks by position

2011-11-23 Thread Hugo Mills
nsertions(+), 43 deletions(-) > > - -- > 1.7.5.4 > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.11 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk7MSIoACgkQJ4UciIs+XuLyjQCeI4m7+u75R863B2RY3hkFELbP >

Re: subvolume

2011-12-02 Thread Hugo Mills
e qgroups patch, which does exactly that. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- "What's so bad about being drunk?&q

Re: Yet Another Newb Question...

2011-12-07 Thread Hugo Mills
subvolid=0 (on, say, /media/btrfs-top) and then navigating through that to the subvolume you want. See (my) recommended filesystem structure on the wiki[1]. Hugo. http://btrfs.ipv5.de/index.php?title=SysadminGuide#Managing_snapshots -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.ne

Re: Extreme slowdown

2011-12-16 Thread Hugo Mills
involves more writes, as the free space cache is updated. > When i do normal file-access the speed of reading is ok so until not > i didn't care about fragmentation. Especially because the data isn't > changes after the first write. > > Can i do a defrag on the meta

Re: speeding up slow btrfs filesystem

2011-12-17 Thread Hugo Mills
you need one, as a fully- compacted tree would only have to be rearranged when more data is added to it, thus slowing the system down after compaction. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net

Re: speeding up slow btrfs filesystem

2011-12-17 Thread Hugo Mills
On Sat, Dec 17, 2011 at 12:38:07PM +0100, Martin Steigerwald wrote: > Am Samstag, 17. Dezember 2011 schrieb Hugo Mills: > > On Sat, Dec 17, 2011 at 12:09:56PM +0100, Martin Steigerwald wrote: > > > I think I will scrub / balance / defragment the filesystem after a > > >

Re: speeding up slow btrfs filesystem

2011-12-17 Thread Hugo Mills
On Sat, Dec 17, 2011 at 05:35:15PM +0100, Martin Steigerwald wrote: > Am Samstag, 17. Dezember 2011 schrieb Hugo Mills: > > > I might still be doing the balance for that optical viewing pleasure > > > ;). > > > >:) > > > >It can't hur

Re: data integrity in btrfs

2011-12-30 Thread Hugo Mills
turned. With recent kernels and an up-to-date userspace, there is a feature called scrub which will read both copies of all of the data blocks in the filesystem and compare them to each other. If there is a mismatch with a failed checksum, scrub will rewrite the broken block to fix it. Hugo.

Re: btrfs-tools in Debian squeeze-backports?

2012-01-02 Thread Hugo Mills
instructions), or, if you insist on having .deb packages, doing your own backport: $ apt-get build-dep btrfs-tools $ apt-get source -t unstable btrfs-tools $ cd btrfs-tools-0.19+2005 $ fakeroot debian/rules $ sudo dpkg -i ../btrfs-tools-0.19+2005.deb # This may be a different name

Re: btrfs-tools in Debian squeeze-backports?

2012-01-02 Thread Hugo Mills
ls of what's going on underneath. Hugo. [1] http://btrfs.ipv5.de/index.php?title=FAQ#Why_does_df_show_incorrect_free_space_for_my_RAID_volume.3F [2] http://btrfs.ipv5.de/index.php?title=SysadminGuide -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.

Re: (renamed thread) btrfs metrics

2012-01-02 Thread Hugo Mills
n a read-only (and non-locked) basis using the BTRFS_IOC_TREE_SEARCH ioctl, and the FS structures are documented at [1]. However, that's generally going to be pretty ugly, and most likely pretty slow for many operations at the subvolume level. If you want anything on a per-subvolume basis,

Re: btrfsprogs source code

2012-01-04 Thread Hugo Mills
iki, or do you have > plans on pushing an unstable repository again? That wiki is read-only, unfortunately. The up-to-date wiki is at [1], and we'll be decanting that back onto the kernel.org one when the kernel.org wiki is back in full working order. Hugo. [1] http://btrfs.ipv5.de/ --

Re: Why does Btrfs allow raid1 with mismatched drives? Also: How to look behind the curtain

2012-01-05 Thread Hugo Mills
t. Hugo. [1] http://btrfs.ipv5.de/index.php?title=SysadminGuide [2] http://btrfs.ipv5.de/index.php?title=FAQ#Why_does_df_show_incorrect_free_space_for_my_RAID_volume.3F -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.c

Re: Filesystem not mountable after reset, bad tree block

2012-01-07 Thread Hugo Mills
kernel did not keep > tree root backups for this purpose as it is AFAIR a feature of later > kernels. > > Better use a newer kernel - best use 3.2. There are bunch of fixes which > improve the situation with lost file systems after unexpected reboots or > power outages. > >

Re: revert to static snapshot on reboot

2012-01-09 Thread Hugo Mills
; I'd avoid -rc1 or -rc2, but by -rc3 or so it's usually stabilised to the point that it's usable. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- He's playing Schubert. I think Schubert is losing. --- signature.asc Description: Digital signature

Re: revert to static snapshot on reboot

2012-01-12 Thread Hugo Mills
. A btrfs snapshot is a first-class citizen -- there's no real distinction between the original subvolume and a snapshot of it. Hugo -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk

Re: Can't resize second device in RAID1

2012-01-13 Thread Hugo Mills
98GB >     devid    2 size 311.82GB used 286.51GB path /dev/sdb3 >     devid    1 size 897.76GB used 286.51GB path /dev/sda3 > > /dev/sdb3 is the same. > > How can I resize /dev/sdb3? I think the syntax you need is btrfs fi resize max /mnt/RootFS:2 But I could be wrong.

Re: broken fs, "kernel BUG at fs/btrfs/free-space-cache.c:1327"

2012-01-15 Thread Hugo Mills
inode 878158 errors 1000 > root 800 inode 878159 errors 1000 > root 800 inode 878413 errors 1000 > root 801 inode 878157 errors 1000 > root 801 inode 878158 errors 1000 > root 801 inode 878159 errors 1000 > root 801 inode 878413 errors 1000 > root 802 inode 878157

Re: [RFC][PATCH 1/2] Btrfs: try to allocate new chunks with degenerated profile

2012-01-18 Thread Hugo Mills
vices as we can fit right now", we're not really providing much in the way of performance guarantees. (I'd definitely support some way of defining a fixed-width stripe, but that's a whole separate question that we shouldn't get into now). > ENOSPC is the best cho

Re: Single drive volume + second drive -> RAID1?

2012-01-23 Thread Hugo Mills
results I don't want -- RAID0 data, RAID1 > metadata. Ctrl-C doesn't seem to be aborting the balance. Yes, balances are not interruptible right now. The restriper patches (in 3.3-rc1) will allow you to monitor balance progress and stop/restart them. They will also allow you to

Re: Will BTRFS repair or restore data if corrupted?

2012-01-26 Thread Hugo Mills
t the user knowing that a file has been > "fixed"? No, it'll just return the good copy and report the failure in the system logs. If you want to fix the corrupt data, you need to use scrub, which will check everything and fix blocks with failed checksums. Hugo. -- ==

Re: btrfs filesystem df command oddly named?

2012-01-26 Thread Hugo Mills
lobal figures, and a hypothetical "btrfs fi du" (which will probably surface once Arne finishes the qgroups stuff) will report on subvolumes and/or sets of files. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwk

Re: Packed small files

2012-01-31 Thread Hugo Mills
#x27;ll actually use up twice this amount of space on the disks, unless you create the FS with metadata set to "single". I don't know how these figures compare with other filesystems. My entirely uneducated guess is that they're probably comparable, with the exception of

Re: [PATCH 0/3] Btrfs-progs: restriper interface

2012-02-03 Thread Hugo Mills
then, I'll grab them for my integration branch at that point. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- To an Englishman, 100 miles is a long way;

Re: Btrfs out of inodes becomes corrupt

2012-02-05 Thread Hugo Mills
x260 > [11276.470192] [] sys_mount+0x90/0xe0 > [11276.470196] [] system_call_fastpath+0x16/0x1b > [11276.470197] ---[ end trace eeca3fbe2d1be463 ]--- It's not obvious (without me digging into the 2.6.32 code, which I'm not going to do) which tree this is failing in, but if -o

Re: Btrfs out of inodes becomes corrupt

2012-02-06 Thread Hugo Mills
t; development version of the kernel). > > I think you meant 3.2 or 3.3-rc2. I did indeed. Thanks for the correction. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- "Wh

Re: [PATCH 0/3] Btrfs-progs: restriper interface

2012-02-07 Thread Hugo Mills
best. I'm with Goffredo on this one -- I would much prefer to stick to commands of precisely two words: a group and an action. That should mean that we have "filesystem balance" as a synonym for "balance start", and all the other restriper functions under "b

Re: Btrfs out of inodes becomes corrupt

2012-02-08 Thread Hugo Mills
eallocated by the other group type. So if you have, say 5G allocated for metadata, but only 500M used, you could gain back a large amount (but probably not all) of the unused 4.5G by running a balance. Hugo. > Thanks again for your assistance! > > Tommy > > On Mon, Feb 06

Re: brtfs on top of dmcrypt with SSD. No corruption iff write cache off?

2012-02-15 Thread Hugo Mills
> access. btrfs.ipv5.de It's a "temporary" location (6 months and counting) while kernel.org is static-pages-only. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.

Re: online snapshots of subvolumes?

2012-02-19 Thread Hugo Mills
creating a snapshot" doesn't involve unmounting any "live" part of the FS. It's only when you want to roll back to an earlier snapshot that you need to unmount the original subvolume (the second example in that section). Hugo. -- === Hugo Mills: hugo@... carfax.org.uk |

Re: btrfs open_ctree failed (after recent Ubuntu update)

2012-02-19 Thread Hugo Mills
com/~kernel-ppa/mainline/ > > If that doesn't work out you can try the latest 3.3 RC there too. > > I'm running the 64-bit 3.2.5 kernel from there on Kubuntu 11.10 and it > is fine (modulo boot time complaints about the apparmour stuff). > > cheers, > Chris -- ===

Re: Balance RAID10 with odd device count

2012-02-20 Thread Hugo Mills
1 drive would result in lost data. (Any 2 drives, as you corrected in your subsequent email) However, you can remove any one drive, and your data is fine, which is what btrfs's RAID-1 guarantee is. I understand that there will be additional features coming along Real Soon Now (possibly at t

Re: Balance RAID10 with odd device count

2012-02-20 Thread Hugo Mills
art enough to care only about the duplication and striping > of data, and not the actual block-level or extent-level balancing. Hugo. [1] http://btrfs.ipv5.de/index.php?title=SysadminGuide -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238

Re: Balance RAID10 with odd device count

2012-02-20 Thread Hugo Mills
On Mon, Feb 20, 2012 at 08:13:43PM -0500, Tom Cameron wrote: > On Mon, Feb 20, 2012 at 8:07 PM, Hugo Mills wrote: > > > >   However, you can remove any one drive, and your data is fine, which > > is what btrfs's RAID-1 guarantee is. I understand that there will be >

Re: Balance RAID10 with odd device count

2012-02-20 Thread Hugo Mills
ces. And if there > is not enough rest space for the data, the remove operations will > fail. Or what am I missing? The typo. :) He said he meant "removing any 2 drives" in the follow-up mail. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.o

Re: Balance RAID10 with odd device count

2012-02-20 Thread Hugo Mills
ally decreasing (if they go up again, there's a problem we need to know about), but aren't necessarily linearly-spaced, particularly if you've done a balance or partial balance before. i.e. they're an indication that something's happening, but not how much more of it there i

Re: Balance RAID10 with odd device count

2012-02-20 Thread Hugo Mills
also makes things much easier to remember. Like how much data can you fit > > on a 6 drive RAID10? I dunno, but I can more intuitively answer that same > > question when it is phrased as just simply 'dup', or maybe 'dup + stripe'. > > > > Is there

Re: brtfs on top of dmcrypt with SSD. No corruption iff write cache off?

2012-02-22 Thread Hugo Mills
On Wed, Feb 22, 2012 at 11:28:13AM +0100, Justin Ossevoort wrote: > On 15/02/12 17:59, Hugo Mills wrote: > >It's a "temporary" location (6 months and counting) while > > kernel.org is static-pages-only. > > > >Hugo. > > > > Couldn&

Re: Balance RAID10 with odd device count

2012-02-22 Thread Hugo Mills
On Wed, Feb 22, 2012 at 11:22:08AM +0100, Hubert Kario wrote: > On Wednesday 22 of February 2012 09:56:27 Xavier Nicollet wrote: > > Le 21 February 2012 ? 07:54, Hugo Mills a écrit: > > >Some time ago, I proposed the following scheme: > > > CSP > > > >

Re: filesystem full when it's not? out of inodes? huh?

2012-02-26 Thread Hugo Mills
27;t the problem, but it's clearly trying to allocate a new data block group (which it should be able to do -- it should just take all the remaining space, unlike Fahrzin's hypothesis). There have been some issues over having very large metadata allocations that can't apparentl

Re: LABEL only 1 device

2012-02-26 Thread Hugo Mills
l is a *filesystem* label, not a label for the block device(s) it lives on, so it doesn't make much sense to talk about putting an FS label on only one of the devices that the FS is on. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from

Re: LABEL only 1 device

2012-02-26 Thread Hugo Mills
he same label for > several partitions - it doesn't work. But btrfs bundles these partitions > (perhaps sometimes/most times regardless of the labels of the other > partitions). I say again, partitions are not labelled. *Filesystems* are labelled. I think that with a GPT you can refe

Re: LABEL only 1 device

2012-02-26 Thread Hugo Mills
o work. > > mount LABEL=SCSI /mnt/btr > > worked as expected, the bundle of 3 partitions was mounted. And only "/ > dev/sdk1" got this label, no other partition. That's because you've just destroyed part of the original filesystem that was on /dev/

Re: LABEL only 1 device

2012-02-27 Thread Hugo Mills
with my Terabyte disks. > > (Yes - I have backups ...) > > Viele Gruesse! > Helmut -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Be pure. Be vigilant. Behave. --- signature.asc Description: Digital signature

Re: btrfs-convert options

2012-02-27 Thread Hugo Mills
on), and use the restriper after you've converted. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Be pure. Be vigilant. Behave. --- signature.asc Description: Digital signature

Re: LABEL only 1 device

2012-02-27 Thread Hugo Mills
gt; only sets/changes the label (ok - it tests the type of the partition and > refuses labeling if the type doesn't fit). That feels really weird. It wouldn't ever occur to me to look at a mkfs tool to relabel a filesystem without destroying the data on it. I view this behaviour as a

Re: LABEL only 1 device

2012-02-27 Thread Hugo Mills
Writing inode tables: done Writing superblocks and filesystem accounting information: done hrm@ruth:~ $ sudo mount /dev/loop0 /mnt hrm@ruth:~ $ ls /mnt lost+found hrm@ruth:~ $ Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Great oxymorons of the world, no. 6: Mature Student --- signature.asc Description: Digital signature

Re: SELinux inode size gotcha in btrfs.

2012-02-27 Thread Hugo Mills
SE Linux domain. It's not clear from looking at the gentoo doc what the problem actually is with different inode sizes... Without some kind of indication what the issue really is, it's kind of hard to say how this might affect btrfs. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk |

Re: SELinux inode size gotcha in btrfs.

2012-02-28 Thread Hugo Mills
27;s suitability I'm afraid. > 3) Made it clear that I wasn't attacking > XFS, It's my fs of (non /boot) choice > for some years now; I'm exploring SELinux > (after the recent Linux conf au 2012 > talk) and know I have used inode size defaults > for my xf

Re: ?Understanding metadata efficiency of btrfs

2012-03-06 Thread Hugo Mills
is, there won't be any checksums in the checksum tree, because all of the extents are stored inline elsewhere, and checksummed by the normal embedded metadata checksums. Hugo. (*) An internal tree node holds up to 121 tree-node references, so the depth of a tree with n items

  1   2   3   4   5   6   7   8   9   10   >