[linux-lvm] Inconsistent naming...?

Males, Jess jmales at cio.sc.gov
Wed Jul 13 17:34:15 UTC 2011


>
>Oh - you've just reminded me:
>  dmsetup splitname
>
>Alasdair
>

That works, but it's not exactly convenient.

[root at system ~]# dmsetup splitname /dev/mapper/tempvg-lvspare1
VG                 LV       LVLayer
/dev/mapper/tempvg lvspare1        

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>?

-- Jess




More information about the linux-lvm mailing list