From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E62D61382C5 for ; Sat, 19 Dec 2020 19:19:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 53711E0999; Sat, 19 Dec 2020 19:19:10 +0000 (UTC) Received: from mail-oo1-xc31.google.com (mail-oo1-xc31.google.com [IPv6:2607:f8b0:4864:20::c31]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E1D59E097D for ; Sat, 19 Dec 2020 19:19:09 +0000 (UTC) Received: by mail-oo1-xc31.google.com with SMTP id k9so1378854oop.6 for ; Sat, 19 Dec 2020 11:19:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=mFNPcLxFUhHxMCNE57kgjXnNvniqTY0dfW2FP7y62gY=; b=N94WjFf598MKGp+ux7//PTn3QUHfAuIe4bSwQhdUC6Or5bZjlZQiVKqz7t0wEvjOU9 etXN5WtBlAeegHuFFZ03IxjMvANsMIjMbYVZg2Z9EhQ6e2cPebLsb7jlFXAE6clv1dLX AfGCRRhKVjYTV74x5CkHryUbuhP6N3qqEWyupV3kGLv+lhXnMUOcgTSLsz15vDGDvu3m qqGejCVNJdaWGyOsB8eihI/vqT3c3ZaMfETuQcQcLZLQ6Vi2B2+ho47oqaer9ueU0dp8 Z73HNcTRD0PYb07TBTOlpS9EoC2yGJUsUMYWzOosBpzWZRmNJR/uE4K3Yx/K0M78e5EP r/kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding; bh=mFNPcLxFUhHxMCNE57kgjXnNvniqTY0dfW2FP7y62gY=; b=g9u0QEfu/trH0zQFw15nuQ/0o/okBiQtnjwZVc9gqjUAlto4qUxA41n6jJaLpZuVVH sSbmJ33HJyCABhPX0zK/unBEauTQJf3+CazP+7jdSWnJCC0JgevcVRnDe643NDmaKuYS gK8LnEUkPFl4H8LRzs/w9t/6pz/Iz/tRquwjnTj/v9v/G9YqU9iXLgRdi7iOx7FiJrjC HgALWzMdYJ+JSTpj26X/2Bk8cRBQ/N8vxcGEXgssZNkjmqCFr3aPhG1HFWZUUm4kgz0C lRMEZhtUH+rZ8XLxmx2TjhRB2l/sz5xB5cqAZBH0CA/CuVIIof5pg59ikdrvCfTq4t8I sBTg== X-Gm-Message-State: AOAM531EpTfIdD9xTuz2JgG0ohh9Enh7nFrz7Qr2zOtMqsIp3fOU+aoC RYWBXlKaid31fTr2s9rAGsc= X-Google-Smtp-Source: ABdhPJwY0dcBYpImUn+CrVmHDMKl9NRlOjuR99WSS90KcDwjWaUv59M0f8mpVbLmmOzG6wIT8uc08w== X-Received: by 2002:a4a:a2c5:: with SMTP id r5mr6875022ool.72.1608405549212; Sat, 19 Dec 2020 11:19:09 -0800 (PST) Received: from [192.168.0.100] (adsl-074-188-243-161.sip.asm.bellsouth.net. [74.188.243.161]) by smtp.gmail.com with ESMTPSA id m3sm2787384ots.72.2020.12.19.11.19.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Dec 2020 11:19:08 -0800 (PST) Subject: Re: [gentoo-user] Rearranging hard drives and data. To: gentoo-user@lists.gentoo.org References: <20201219170616.0998108c@digimed.co.uk> <091cc36b-c7ab-26ce-1e1c-f1a3bc20a294@gmail.com> <37f509ee-491e-045d-a840-e53d7d41a078@youngman.org.uk> From: Dale Open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Xw6ZdZxA5fg7y 35P3TILjznCXXTDgRHq9A3NknKRMcgFacX6eIhANkMFo6oJVjuEgy1dvu1wFfDq7c+i8GAHu L4pYzyXYu6PporlNNU0xSwdVgzM/uuK0lt+UxCimgC+YR3IezgDcbfudb7h9dGIwL+bbPL0A EQEAAYkCNgQYAQgAIBYhBNnuy6u48FpLrRsJhe8Qz9da75mcBQJcXOzIAhsMAAoJEO8Qz9da 75mcXZ4P/1YXgWDZek7mhzrf6uaQzMxa92P89HeWz4PlgB/32symeEFAV04WazzBZffI8AYY rGA1Xmu/2VaB9+FOODyKhUWBc2UL0NRWBk6POwboyTdKlclmpixaN9zLcBt0YLejoRfN1B/5 aQf9/lUDZMnAiCyz0FgeqEMUshldmwWC35RqnjrCbbuk2vIqSH6BLDIXU6jQrLHE1DF0ai41 wLtQFAFXPhn45n0ZwYhVs4Z32z4sjXrIvgBgCaXa4HM+L1Klne0KiNM8ReFTTpTE0SgyDOSZ O3MOa2n77i6JbVtsbiFYnNeP3J9S/l3jevGpZEtNQOKrIm1MW8jGuHWtsDeMkT/mCcSodlkt PxIo+mMK9GpGvG2hW80LiohqNfUbNwAmr3blOYY4URPXPRnEnPs4pmTmL5owjw2dkg145i9I D42Tq+XZ6YtWt3SGzGbAYow6XwTwZ5NFAzV9UQuCGrDw4KWan6O6Z+VIYWsn0UMZlu1Obxna aocofkaUCbISK26kImuD1aA8juSHC18Qv1xUage6/UakbSxyDtACqt6hOVFKX3IA59ApdNRT +2x3iCmlvF9MJsGgFq6IpqL+Fk7iWV8Kjbz0wQOId6N9+JdQh3LrLaS7a1PowUm1z9DK5/O0 Yg+gpDnEOOFI7WM5u7a7FSM2Z/LXGVwel/0eWvLk9tN6 Message-ID: Date: Sat, 19 Dec 2020 13:19:05 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.5.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: <37f509ee-491e-045d-a840-e53d7d41a078@youngman.org.uk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 0f2a6f93-a20c-412c-b299-2cfe91bbc022 X-Archives-Hash: 97526d8ec4ca3a59b9ccd5fced6901e8 antlists wrote: > On 19/12/2020 17:32, Dale wrote: >> Neil Bothwick wrote: >>> On Sat, 19 Dec 2020 07:02:23 -0600, Dale wrote: >>> >>>> I have another question related to LVM.  Let's say a system crashes >>>> and >>>> dies.  Or I just move a drive, or drives, with LVM on it to another >>>> system.  Does the system just recognize the drives and knows how to >>>> add >>>> them or do I have to do that manually on the new system? >>> It should just work if you move all the PVs in the volume group. One >>> thing to watch out for is if the destination system is already using >>> LVM, >>> the volume groups must be named differently. That's why I always use >>> unique VG names based on the hostname. >>> >> >> Ahhh, so it stores the info on the drive so that it knows what it is. >> Neato!!  I was thinking it was in /etc/lvm/ or something.  I've wondered >> about that for a while now. > > mdadm version 0 stored its information in mdadm.conf. That was a > mistake - it had the downside you couldn't boot from the array, it was > wide open to errors, arrays were regularly trashed because things had > got confused, etc etc. Sticking all the necessary information in a > superblock is now considered must-do good practice. >> >> Naming them based on hostname is also a good idea.  I don't have mine >> named that way but if I ever redo them, I will.  It could save me some >> problems down the road. >> > Again, that's now the default for mdadm - not necessarily the user > name, but the internal array name is something like "tigger:0", to > quote one of mine - array 0 created on tigger. > > Cheers, > Wol > > Right now, this is mine: root@fireball / # vgs VG            #PV #LV #SN Attr   VSize    VFree  Home2        2   1   0 wz--n-  <12.74t      0 OS               1   3   0 wz--n- <124.46g <35.46g backup        1   1   0 wz--n-  698.63g      0 root@fireball / # I'm assuming it would be best to have them named like this: root@fireball / # vgs VG            #PV #LV #SN Attr   VSize    VFree  fb-Home2        2   1   0 wz--n-  <12.74t      0 fb-OS               1   3   0 wz--n- <124.46g <35.46g fb-backup        1   1   0 wz--n-  698.63g      0 root@fireball / # The added fb would be short for fireball.  If this rig suddenly blew a gasket and I stuck the drives in a new system, it would make them different at least.  Once moved and stable, Neil says I can rename it to something else to match the new system.  It sounds like a good idea since right now, I could move those drives to a system that has the same names which would cause issues.  As a matter of fact, the reason for Home2 is because I already had a Home group in a previous move.  I guess we are talking about the same thing. Dale :-)  :-)