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=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,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 B3D2EC71155 for ; Mon, 30 Nov 2020 22:32:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6282B206CA for ; Mon, 30 Nov 2020 22:32:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730711AbgK3WcI (ORCPT ); Mon, 30 Nov 2020 17:32:08 -0500 Received: from smtp.hosts.co.uk ([85.233.160.19]:58565 "EHLO smtp.hosts.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728255AbgK3WcH (ORCPT ); Mon, 30 Nov 2020 17:32:07 -0500 Received: from host86-149-69-253.range86-149.btcentralplus.com ([86.149.69.253] helo=[192.168.1.65]) by smtp.hosts.co.uk with esmtpa (Exim) (envelope-from ) id 1kjrhe-000752-6m; Mon, 30 Nov 2020 22:31:26 +0000 Subject: Re: partitions & filesystems (was "Re: ???root account locked??? after removing one RAID1 hard disc") To: Reindl Harald , David T-G , linux-raid@vger.kernel.org References: <20201130200503.GV1415@justpickone.org> <01a571de-8ae8-3d9e-6f3d-16555ad93ea3@youngman.org.uk> <2d0fcd02-9e3a-d11a-a1cf-a47c1b6ce2c3@thelounge.net> From: antlists Message-ID: Date: Mon, 30 Nov 2020 22:31:25 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <2d0fcd02-9e3a-d11a-a1cf-a47c1b6ce2c3@thelounge.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-raid@vger.kernel.org On 30/11/2020 21:49, Reindl Harald wrote: > > > Am 30.11.20 um 21:51 schrieb antlists: >> On 30/11/2020 20:05, David T-G wrote: >>> You don't see any "filesystem" or, more correctly, partition in your >>> >>>    fdisk -l >>> >>> output because you have apparently created your filesystem on the entire >>> device (hey, I didn't know one could do that!). >> >> That, actually, is the norm. It is NOT normal to partition a raid array > > it IS normal for several reasons > > * you may end with a replacement disk which is subtle >   smaller and hence you normally make the partition >   a little smaller then the device And what does that have to do with the price of tea in China? Partitioning your array doesn't have any effect on whether or not said array uses the whole disk or not. > > * in case of SSD you reserve some space for >   better wear-levelling And putting a partition table in your array does exactly what to help that? > > * in case you ever need to reinstall your OS you >   want your data not in the same filesystem Which is why I partition my disk. I use one raid for the OS, and another for my data. Cheers, Wol