Why do I see double hyphens (dashes) in my Logical volume name ?

Solution Verified - Updated -

Issue

  • Creating a "VG" named volume-group and "LV" named logical-volume, ends up with with this entry under /dev/mapper and /dev/disk/by-id as volume--group and logical--volume (double dash):

    # ls -al /dev/mapper/
    [...]
    lrwxrwxrwx.  1 root root      7 Apr 21 12:16 volume--group-logical--volume -> ../dm-2
    
    # ls -al /dev/disk/by-id/
    [...]
    lrwxrwxrwx.  1 root root      7 Apr 21 12:16 dm-name-volume--group-logical--volume -> ../../dm-2
    
  • The names contain double hyphens instead of one as expected.

  • The lvm names contain double dashes instead of one as expected.
  • Is the - character a dash or a hyphen?

Environment

  • Red Hat Enterprise Linux
  • device-mapper managed Logical volumes

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content