Re: Confining scrub to a subvolume

2016-01-06 Thread Duncan
Sree Harsha Totakura posted on Mon, 04 Jan 2016 12:01:58 +0100 as excerpted: > On 12/30/2015 07:26 PM, Duncan wrote: >> David Sterba posted on Wed, 30 Dec 2015 18:39:49 +0100 as excerpted: >> >>> On Wed, Dec 30, 2015 at 01:00:34AM +0100, Sree Harsha Totakura wrote: Is it possible to confine

Re: Confining scrub to a subvolume

2016-01-05 Thread David Sterba
On Wed, Dec 30, 2015 at 08:26:00PM +0100, Christoph Anton Mitterer wrote: > On Wed, 2015-12-30 at 18:39 +0100, David Sterba wrote: > > The closest would be to read the files and look for any reported > > errors. > Doesn't that fail for any multi-device setup, in which case btrfs reads > the blocks

Re: Confining scrub to a subvolume

2016-01-04 Thread Sree Harsha Totakura
On 12/30/2015 07:26 PM, Duncan wrote: > David Sterba posted on Wed, 30 Dec 2015 18:39:49 +0100 as excerpted: > >> On Wed, Dec 30, 2015 at 01:00:34AM +0100, Sree Harsha Totakura wrote: >>> Is it possible to confine scrubbing to a subvolume instead of the whole >>> file system? >> >> No. Srub reads

Re: Confining scrub to a subvolume

2015-12-30 Thread Christoph Anton Mitterer
On Wed, 2015-12-30 at 20:57 +, Duncan wrote: > Meanwhile, it's a pretty clever solution, I think. =:^) Well the problem with such workaround-solutions is... end-users get used to it, rely on it, and suddenly they don't work anymore (which the user wouldn't probably notice, though). > I was thi

Re: Confining scrub to a subvolume

2015-12-30 Thread Duncan
Christoph Anton Mitterer posted on Wed, 30 Dec 2015 20:28:00 +0100 as excerpted: > On Wed, 2015-12-30 at 18:26 +, Duncan wrote: >> That should work.  Cat the files to /dev/null and check dmesg.  For >> single mode it should check the only copy.  For raid1/10 or dup, >> running two checks, ensu

Re: Confining scrub to a subvolume

2015-12-30 Thread Christoph Anton Mitterer
On Wed, 2015-12-30 at 18:26 +, Duncan wrote: > That should work.  Cat the files to /dev/null and check dmesg.  For  > single mode it should check the only copy.  For raid1/10 or dup, > running  > two checks, ensuring one is even-PID while the other is odd-PID, > should  > work to check both cop

Re: Confining scrub to a subvolume

2015-12-30 Thread Christoph Anton Mitterer
On Wed, 2015-12-30 at 18:39 +0100, David Sterba wrote: > The closest would be to read the files and look for any reported > errors. Doesn't that fail for any multi-device setup, in which case btrfs reads the blocks only from one device, and if that verifies, doesn't check the other? Cheers, Chris

Re: Confining scrub to a subvolume

2015-12-30 Thread Duncan
David Sterba posted on Wed, 30 Dec 2015 18:39:49 +0100 as excerpted: > On Wed, Dec 30, 2015 at 01:00:34AM +0100, Sree Harsha Totakura wrote: >> Is it possible to confine scrubbing to a subvolume instead of the whole >> file system? > > No. Srub reads the blocks from devices (without knowing which

Re: Confining scrub to a subvolume

2015-12-30 Thread David Sterba
On Wed, Dec 30, 2015 at 01:00:34AM +0100, Sree Harsha Totakura wrote: > Is it possible to confine scrubbing to a subvolume instead of the whole > file system? No. Srub reads the blocks from devices (without knowing which files own them) and compares them to the stored checksums. > [...] Therefor

Confining scrub to a subvolume

2015-12-30 Thread Sree Harsha Totakura
Hi, Is it possible to confine scrubbing to a subvolume instead of the whole file system? The problem I am facing is that I have a 5 TB btrfs FS. On it I have created subvolumes for weekly backups, personal photos, music, and documents. Obviously, I am more concerned about my photos and document