From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76EE5C34021 for ; Mon, 17 Feb 2020 14:17:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4BC79207FD for ; Mon, 17 Feb 2020 14:17:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728528AbgBQORK (ORCPT ); Mon, 17 Feb 2020 09:17:10 -0500 Received: from savella.carfax.org.uk ([85.119.84.138]:42224 "EHLO savella.carfax.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728433AbgBQORK (ORCPT ); Mon, 17 Feb 2020 09:17:10 -0500 Received: from hrm by savella.carfax.org.uk with local (Exim 4.92) (envelope-from ) id 1j3hCu-0006Ef-U6; Mon, 17 Feb 2020 14:17:08 +0000 Date: Mon, 17 Feb 2020 14:17:08 +0000 From: Hugo Mills To: Menion Cc: =?iso-8859-1?Q?Sw=E2mi?= Petaramesh , linux-btrfs Subject: Re: btrfs: convert metadata from raid5 to raid1 Message-ID: <20200217141708.GE1235@savella.carfax.org.uk> Mail-Followup-To: Hugo Mills , Menion , =?iso-8859-1?Q?Sw=E2mi?= Petaramesh , linux-btrfs References: <641d8ba2-89c1-83ac-155f-f661f511218a@petaramesh.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-GPG-Fingerprint: DD84 D558 9D81 DDEE 930D 2054 585E 1475 E2AB 1DE4 X-GPG-Key: E2AB1DE4 X-Parrot: It is no more. It has joined the choir invisible. X-IRC-Nicks: darksatanic darkersatanic darkling darkthing User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Mon, Feb 17, 2020 at 03:12:35PM +0100, Menion wrote: > ok thanks > I have launched it (in a tmux session), after 5 minutes the command > did not return yet, but dmesg and btrfs balance status > /array/mount/point report it in progress (0%). > Is it normal? Yes, it's got to rewrite all of your metadata. This can take a while (especially if you have lots of snapshots or reflinks -- such as from running a deduper). You should be able to see progress happening fairly regularly in dmesg. This is typically one chunk every minute or so, although some chunks can take much *much* longer. Hugo. > Il giorno lun 17 feb 2020 alle ore 14:55 Swâmi Petaramesh > ha scritto: > > > > On 2020-02-17 14:50, Menion wrote: > > > Is it ok to run it on a mounted filesystem with concurrent read and > > > write operations? > > > > Yes. Please check man btrfs-balance. > > > > All such BTRFS operations are to be run on live, mounted filesystems. > > > > Performance will suffer and it might be long though. > > > > > Also, since the number of HDD is 5, how this "raid1" scheme is deployed? > > > > BTRFS will manage storing 2 copies of every metadata block on 2 > > different disks, and will choose how by itself. > > > > ॐ > > -- Hugo Mills | You've read the project plan. Forget that. We're hugo@... carfax.org.uk | going to Do Stuff and Have Fun doing it. http://carfax.org.uk/ | PGP: E2AB1DE4 | Jeremy Frey