linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* Import duplicate VG from a read-only device
@ 2024-11-15 20:07 Gionatan Danti
  2024-11-18  9:53 ` Zdenek Kabelac
  0 siblings, 1 reply; 6+ messages in thread
From: Gionatan Danti @ 2024-11-15 20:07 UTC (permalink / raw)
  To: linux-lvm

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-11-18 20:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-15 20:07 Import duplicate VG from a read-only device Gionatan Danti
2024-11-18  9:53 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).