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 95904C61DA4 for ; Sat, 18 Feb 2023 11:45:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229463AbjBRLpG (ORCPT ); Sat, 18 Feb 2023 06:45:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjBRLpF (ORCPT ); Sat, 18 Feb 2023 06:45:05 -0500 Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88BF713D59 for ; Sat, 18 Feb 2023 03:45:04 -0800 (PST) Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pTLeI-0005lb-IV for linux-btrfs@vger.kernel.org; Sat, 18 Feb 2023 12:45:02 +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:38:16 +0100 Organization: Phoenix Foundation Message-ID: <87a61bi4pj.fsf@physik.rwth-aachen.de> References: <87wn4fiec8.fsf@physik.rwth-aachen.de> <04ddea4e-4823-00dc-c32c-700d9f7e1fef@libero.it> 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:s5DTFZxHH8pgb5Eyj9whv8It0fI= 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! Goffredo Baroncelli writes: > On 18/02/2023 09.10, Torsten Bronger wrote: > > >> I want to replace a device in a RAID1 and converted it >> temporarily to “single”: > > I suggest you to evaluate > - remove a disk when the FS is offline > - mount the FS in 'degraded' mode > - attach a new disk I agree that converting to single is not the fastest way to replace a disk, but the safest AFAICS. It is the boot partition in a simple home server without monitor or keyboard, which makes mounting as degraded difficult. Besides, you can only mount in degraded mode once. If anything goes wrong, I have to rebuild from scratch. Mileage may vary in a more professional environment. Regards, Torsten. -- Torsten Bronger