On 6/3/23 21:02, Mike Wright wrote:
On 6/3/23 19:42, Eyal Lebedinsky wrote:
> I am on f38, but I had this problem before with f36.
>
> I attach an external USB disk that has CentOS.
> I see that beyond the basic device and partitions, three other devices
> /dev/dm-{0,1,2} show up.
> Without doing anything else I want to remove the disk safely. I could
> not do it, see below.
>
> The question at the end is: how do I cleanly remove the external USB
> disk. It is an SSD in a USB3.0 caddy.
>
Clarification:
Note: the VG/LVs still exist and can be remounted by referring to
them
with their physical names: /dev/cl/{root,home} or added to swap with
swapon /dev/cl/swap.
I need to clarify the dual meaning of "physical" in the above paragraph.
When a logical volume is created there is an entry created for it in
/dev/mapper of the form VGName--LVName, in effect a pseudo physical
device. When you need to refer to the LV using non-lvm tools you have
to use the full path: /dev/VG/LV. When using the lvm tools you need
only refer to its LVM style name: VG/LV.