[linux-lvm] Inconsistent naming...?
jmales at cio.sc.gov
Wed Jul 13 17:34:15 UTC 2011
>Oh - you've just reminded me:
> dmsetup splitname
That works, but it's not exactly convenient.
[root at system ~]# dmsetup splitname /dev/mapper/tempvg-lvspare1
VG LV LVLayer
If /dev/tempvg/lvspare1 is the optimal naming scheme, cut or awk is needed to recreate the name from that output. How about a 'dmsetup canonical' that takes <device> and provides /dev/<vg>/<lv>?
More information about the linux-lvm