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 4AE9FC6FA82 for ; Tue, 13 Sep 2022 20:28:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229893AbiIMU2j (ORCPT ); Tue, 13 Sep 2022 16:28:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230079AbiIMU23 (ORCPT ); Tue, 13 Sep 2022 16:28:29 -0400 Received: from rin.romanrm.net (rin.romanrm.net [IPv6:2001:bc8:2dd2:1000::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C9866AA1A for ; Tue, 13 Sep 2022 13:28:03 -0700 (PDT) Received: from nvm (nvm2.home.romanrm.net [IPv6:fd39::4a:3cff:fe57:d6b5]) by rin.romanrm.net (Postfix) with SMTP id 0E91B581; Tue, 13 Sep 2022 20:28:01 +0000 (UTC) Date: Wed, 14 Sep 2022 01:28:01 +0500 From: Roman Mamedov To: Reindl Harald Cc: Pascal Hambourg , Linux RAID Mailing List Subject: Re: change UUID of RAID devcies Message-ID: <20220914012801.5b2dce25@nvm> In-Reply-To: <93ea4d09-d6f9-0c5f-1b8e-e610af592834@thelounge.net> References: <2341a2a9-b86e-f0e5-784a-05dbd474dec5@thelounge.net> <729bdc01-b0ae-887a-6d2a-5135d287636c@youngman.org.uk> <05a1161b-d798-c68f-d37c-a9fc373c6e73@thelounge.net> <0023fefe-aad1-e692-48dd-e354497f6e41@plouf.fr.eu.org> <1fb05e0f-34b7-3ec4-bc00-ec540e592f19@thelounge.net> <3fc0b889-3ef9-652e-6452-2eeede918683@plouf.fr.eu.org> <9e537739-2fbd-2c99-8191-54faf0a69a8b@thelounge.net> <6b4a5399-5053-4a51-26d7-2f62c47c2981@plouf.fr.eu.org> <65ee1134-60e4-4577-74c7-0ba15ae39225@thelounge.net> <97b66977-97c7-21aa-f1d9-f0d34a0fcf9b@plouf.fr.eu.org> <071b8b8a-7a50-3eec-22d4-5880ff3f80e9@thelounge.net> <8babedc5-a2e7-326f-3340-10e354aecb45@plouf.fr.eu.org> <15f573c4-0c96-885f-659f-bfa2cbd698a7@thelounge.net> <20220914003228.4377cc6a@nvm> <93ea4d09-d6f9-0c5f-1b8e-e610af592834@thelounge.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-raid@vger.kernel.org On Tue, 13 Sep 2022 21:54:21 +0200 Reindl Harald wrote: > >> it's not funny when you are used to rsync your /etc/fstab over 11 years > >> that doing so would lead in a unbootbale system on the other side > > > > For this I'd suggest to use LABEL=rootfs (and so on) in fstab, instead of > > UUIDs. > > > > It's kind of the point of UUIDs that they are supposed to be (even globally) > > unique, and there should not be the same UUID on two different machines > > that's already the case for 15 years here > > but there is also mdadm.conf and sadly a copy in the intird It has never occured to me to check, but you could also specify arrays by "name=" there, instead of UUID. See "man mdadm.conf". And it is possible to rename arrays: https://askubuntu.com/questions/63980/how-do-i-rename-an-mdadm-raid-array Having same-name arrays on different hosts seems much more reasonable than same UUIDs. -- With respect, Roman