Discussion:
[linux-lvm] lvremove does not remove /dev/mapper/...-cow... and ...-real...
Tomas Dalebjork
2016-04-24 21:36:30 UTC
Permalink
Hi.

I have noticed that if a thick snapshot device is created
# /sbin/lvcreate --size size --snapshot --name snap /dev/system/lvname
And later removed
# /sbin/lvremove system/lvname

Than the symbolic link files under /dev/mapper/ is not removed

This is applicable on RHEL7 and sometimes on RHEL6.

Is this a known bug?
Or why is the links still there?

Regards Tomas
Tomas Dalebjörk | CIO
+46 (0)31 322 4359
REPOSTOR AB
Första Långgatan 19, 41327 Göteborg, Sweden

Follow us at
Twitter | http://twitter.com/#repostor-ab
Linda A. Walsh
2016-04-26 16:38:59 UTC
Permalink
Post by Tomas Dalebjork
Hi.
I have noticed that if a thick snapshot device is created
# /sbin/lvcreate --size size --snapshot --name snap /dev/system/lvname
And later removed
# /sbin/lvremove system/lvname
----
It's been known to me, and I mentioned it a few-several years
back.

I use dmsetup to remove those extra partitions after ensuring they
are no longer active.

Loading...