Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89D13C61DA4 for ; Sat, 18 Feb 2023 11:41:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229530AbjBRLl1 (ORCPT ); Sat, 18 Feb 2023 06:41:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjBRLlZ (ORCPT ); Sat, 18 Feb 2023 06:41:25 -0500 Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B766E1557E for ; Sat, 18 Feb 2023 03:41:24 -0800 (PST) Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pTLak-0001cZ-FC for linux-btrfs@vger.kernel.org; Sat, 18 Feb 2023 12:41:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: linux-btrfs@vger.kernel.org To: linux-btrfs@vger.kernel.org From: Torsten Bronger Subject: Re: Why is converting from RAID1 to single in Btrfs an I/O-intensive operation? Date: Sat, 18 Feb 2023 12:32:34 +0100 Organization: Phoenix Foundation Message-ID: <87edqni4z1.fsf@physik.rwth-aachen.de> References: <87wn4fiec8.fsf@physik.rwth-aachen.de> <752fc1e0-74d3-3a80-916f-de5df9ff4e1f@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:3+jc37Ub+x14UVXHDRP2U1pHC+Y= X-PGP-Fingerprint: C5C8 D6E2 79D2 EFE9 8C0F 6D77 D5E3 CEFC 9F51 6B77 X-Home-Page: http://www.wikipedia.org/wiki/User:Bronger X-Face: +wpw"|jN2Fde|7_lKBa0\7!_6suIE_m! x)'S9ytBu8tkt'k779jbzQ4o|p+@H_DCrIdnKG]E*w X-Binford: 6100 (more power) X-Accept-Language: de, en Mail-Copies-To: never Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Hallöchen! Andrei Borzenkov writes: > On 18.02.2023 11:10, Torsten Bronger wrote: > >> I want to replace a device in a RAID1 and converted it >> temporarily to “single”: [...] This takes very long. I don’t see >> why, [...] > > Converting between RAID profiles copies data from chunks with the > old profile to the chunks with the new profile. Old chunk is not > modified in place, they are removed after all data is moved to the > new chunk. Thank you! I see the reason now (while it is unfortunate nevertheless that this means that the bulk data has to be moved as well). Regards, Torsten. -- Torsten Bronger