Re: Rebalancing raid1 after adding a device

2019-06-19 Thread Supercilious Dude
On Tue, 18 Jun 2019 at 19:45, Hugo Mills wrote: > >It would be really great if there was an ioctl that allowed you to > say things like "take the chunks of this block group and put them on > devices 2, 4 and 5 in RAID-5", because you could do a load of > optimisation with reshaping the FS in u

Re: Rebalancing raid1 after adding a device

2019-06-19 Thread Stéphane Lesimple
Le 19 juin 2019 05:27:21 Andrei Borzenkov a écrit : 18.06.2019 21:45, Hugo Mills пишет: ... Is there a way to ask the block group allocator to prefer writing to a specific device during a balance? Something like -ddestdevid=N? This would just be a hint to the allocator and the usual const

Re: Rebalancing raid1 after adding a device

2019-06-18 Thread Andrei Borzenkov
18.06.2019 21:45, Hugo Mills пишет: ... > >> Is there a way to ask the block group allocator to prefer writing to >> a specific device during a balance? Something like -ddestdevid=N? >> This would just be a hint to the allocator and the usual constraints >> would always apply (and prevail over the

Re: Rebalancing raid1 after adding a device

2019-06-18 Thread Stéphane Lesimple
June 18, 2019 9:42 PM, "Austin S. Hemmelgarn" wrote: > On 2019-06-18 15:37, Stéphane Lesimple wrote: > >> June 18, 2019 9:06 PM, "Austin S. Hemmelgarn" wrote: >> On 2019-06-18 14:26, Stéphane Lesimple wrote: >>> [...] >> >> I don't need to have a perfectly balanced FS, I just want all the spac

Re: Rebalancing raid1 after adding a device

2019-06-18 Thread Austin S. Hemmelgarn
On 2019-06-18 15:37, Stéphane Lesimple wrote: June 18, 2019 9:06 PM, "Austin S. Hemmelgarn" wrote: On 2019-06-18 14:26, Stéphane Lesimple wrote: [...] I don't need to have a perfectly balanced FS, I just want all the space > to be allocatable. I tried using the -ddevid option but it only i

Re: Rebalancing raid1 after adding a device

2019-06-18 Thread Stéphane Lesimple
June 18, 2019 9:06 PM, "Austin S. Hemmelgarn" wrote: > On 2019-06-18 14:26, Stéphane Lesimple wrote: > > [...] > >> I don't need to have a perfectly balanced FS, I just want all the space > to >> be allocatable. >> I tried using the -ddevid option but it only instructs btrfs to work on > >> th

Re: Rebalancing raid1 after adding a device

2019-06-18 Thread Hugo Mills
On Tue, Jun 18, 2019 at 07:14:26PM +, DO NOT USE wrote: > June 18, 2019 8:45 PM, "Hugo Mills" wrote: > > > On Tue, Jun 18, 2019 at 08:26:32PM +0200, Stéphane Lesimple wrote: > >> [...] > >> I tried using the -ddevid option but it only instructs btrfs to work > >> on the block groups allocated

Re: Rebalancing raid1 after adding a device

2019-06-18 Thread Stéphane Lesimple
June 18, 2019 8:45 PM, "Hugo Mills" wrote: > On Tue, Jun 18, 2019 at 08:26:32PM +0200, Stéphane Lesimple wrote: >> [...] >> Of course the solution is to run a balance, but as the filesystem is >> now quite big, I'd like to avoid running a full rebalance. This >> would be quite i/o intensive, woul

Re: Rebalancing raid1 after adding a device

2019-06-18 Thread Austin S. Hemmelgarn
On 2019-06-18 14:26, Stéphane Lesimple wrote: Hello, I've been a btrfs user for quite a number of years now, but it seems I need the wiseness of the btrfs gurus on this one! I have a 5-hdd btrfs raid1 setup with 4x3T+1x10T drives. A few days ago, I replaced one of the 3T by a new 10T, running

Re: Rebalancing raid1 after adding a device

2019-06-18 Thread Chris Murphy
On Tue, Jun 18, 2019 at 12:58 PM Austin S. Hemmelgarn wrote: > > On 2019-06-18 14:57, Hugo Mills wrote: > > On Tue, Jun 18, 2019 at 02:50:34PM -0400, Austin S. Hemmelgarn wrote: > >> On 2019-06-18 14:45, Hugo Mills wrote: > >>> On Tue, Jun 18, 2019 at 08:26:32PM +0200, Stéphane Lesimple wrote: > >

Re: Rebalancing raid1 after adding a device

2019-06-18 Thread Austin S. Hemmelgarn
On 2019-06-18 14:57, Hugo Mills wrote: On Tue, Jun 18, 2019 at 02:50:34PM -0400, Austin S. Hemmelgarn wrote: On 2019-06-18 14:45, Hugo Mills wrote: On Tue, Jun 18, 2019 at 08:26:32PM +0200, Stéphane Lesimple wrote: I've been a btrfs user for quite a number of years now, but it seems I need the

Re: Rebalancing raid1 after adding a device

2019-06-18 Thread Chris Murphy
On Tue, Jun 18, 2019 at 12:50 PM Austin S. Hemmelgarn wrote: > > On 2019-06-18 14:45, Hugo Mills wrote: > > -dlimit=100 will only move 100 GiB of data (i.e. 200 GiB), so it'll > > be a pretty limited change. You'll need to use a larger number than > > that if you want it to have a significant

Re: Rebalancing raid1 after adding a device

2019-06-18 Thread Hugo Mills
On Tue, Jun 18, 2019 at 02:50:34PM -0400, Austin S. Hemmelgarn wrote: > On 2019-06-18 14:45, Hugo Mills wrote: > >On Tue, Jun 18, 2019 at 08:26:32PM +0200, Stéphane Lesimple wrote: > >>I've been a btrfs user for quite a number of years now, but it seems > >>I need the wiseness of the btrfs gurus on

Re: Rebalancing raid1 after adding a device

2019-06-18 Thread Austin S. Hemmelgarn
On 2019-06-18 14:45, Hugo Mills wrote: On Tue, Jun 18, 2019 at 08:26:32PM +0200, Stéphane Lesimple wrote: I've been a btrfs user for quite a number of years now, but it seems I need the wiseness of the btrfs gurus on this one! I have a 5-hdd btrfs raid1 setup with 4x3T+1x10T drives. A few days

Re: Rebalancing raid1 after adding a device

2019-06-18 Thread Hugo Mills
On Tue, Jun 18, 2019 at 08:26:32PM +0200, Stéphane Lesimple wrote: > I've been a btrfs user for quite a number of years now, but it seems > I need the wiseness of the btrfs gurus on this one! > > I have a 5-hdd btrfs raid1 setup with 4x3T+1x10T drives. > A few days ago, I replaced one of the 3T by

Rebalancing raid1 after adding a device

2019-06-18 Thread Stéphane Lesimple
Hello, I've been a btrfs user for quite a number of years now, but it seems I need the wiseness of the btrfs gurus on this one! I have a 5-hdd btrfs raid1 setup with 4x3T+1x10T drives. A few days ago, I replaced one of the 3T by a new 10T, running btrfs replace and then resizing the FS to use