All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gionatan Danti <g.danti@assyoma.it>
To: linux-lvm@lists.linux.dev
Subject: Import duplicate VG from a read-only device
Date: Fri, 15 Nov 2024 21:07:10 +0100	[thread overview]
Message-ID: <65d1cd8d1b9189ffcd7eb919c91c1b59@assyoma.it> (raw)

Hi list,
is it possible to import a duplicate VG name from a read-only device?

I know about vgrename, but it needs to update metadata - which is not 
possible for read-only device.

I tried to un-manage the host native read/write VG, deleting it from 
system.devices, but lvchange -ay shown an error about not being able to 
create the /dev/VG/LV symlink (and a "device busy" issue, probably 
related to the already-existing symlink). I also tried to activate the 
specific LV via lvchange -S lv_uuid, but it shown the same error as 
above.

In this specific case I put the device in r/w mode and solved the issue 
with a plain vgrename. But what if I could not enable writes on the 
device? Is the only solution to mount it on a machine without the same 
VG name (ie: on a live USB), or can a VG/LV be enabled specifying a 
different path for the symlink?

Thanks.

             reply	other threads:[~2024-11-15 20:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-15 20:07 Gionatan Danti [this message]
2024-11-18  9:53 ` Import duplicate VG from a read-only device Zdenek Kabelac
2024-11-18 13:38   ` Erwin van Londen
2024-11-18 15:04     ` Gionatan Danti
2024-11-18 18:25       ` Stuart D Gathman
2024-11-18 20:44         ` Gionatan Danti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=65d1cd8d1b9189ffcd7eb919c91c1b59@assyoma.it \
    --to=g.danti@assyoma.it \
    --cc=linux-lvm@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.