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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9BC1C433EF for ; Sat, 26 Mar 2022 18:29:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232686AbiCZSbH (ORCPT ); Sat, 26 Mar 2022 14:31:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbiCZSbH (ORCPT ); Sat, 26 Mar 2022 14:31:07 -0400 Received: from smtp.hosts.co.uk (smtp.hosts.co.uk [85.233.160.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F83533E0E for ; Sat, 26 Mar 2022 11:29:29 -0700 (PDT) Received: from host86-155-180-61.range86-155.btcentralplus.com ([86.155.180.61] helo=[192.168.1.218]) by smtp.hosts.co.uk with esmtpa (Exim) (envelope-from ) id 1nYBAE-000AA9-5p; Sat, 26 Mar 2022 18:29:27 +0000 Message-ID: <3f62842d-0eb0-37a3-8dcd-5d08da4d18e9@youngman.org.uk> Date: Sat, 26 Mar 2022 18:29:25 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: new drive is 4 sectors shorter, can it be used for swraid5 array? Content-Language: en-GB To: Tom Mitchell , Marc MERLIN Cc: linux-raid@vger.kernel.org References: <20220318030855.GV3131742@merlins.org> From: Wols Lists In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-raid@vger.kernel.org On 26/03/2022 18:01, Tom Mitchell wrote: > Shrinking a filesystem (resize2fs) does have some risks so backup first. > > It is sort of nice to leave modest unused space when setting up a new disk. > > Also back up to the new disk formatted correctly then invert the question and > add the old disk with matched size partitions to mirror to. > > It all depends on the backup strategy. Clonezilla? If they are the same size or the backup disk is larger, I'd just use dd on an unmounted filesystem! Cheers, Wol