Is there consistency between how volume and mount points are named?

February 11, 2019 151 views
Block Storage Ubuntu 18.04

What is the convention on how external block storage devices are named and how mount points are named?

I have volume whose naming follows this pattern: first-second.

I expect that mountpoint and partitions will follow the same pattern: /mnt/first-second and /dev/disk/by-id/scsi-0DO_Volume_first-second .

Instead the result is /mnt/first_second and /dev/disk/by-id/scsi-0DO_Volume_first_second .

Can we have volume names, mount points, and partitions adher to the same convention? This is a great help with provision and configuration tools.

1 comment
  • Question:

    What is the convention on how external block storage devices are named and how mount points are named?

    Issue/Feature Request:

    Volume names are expected to consist of only lowercase alphanumeric characters. Therefore the expectation is that the mount points and partitions follow the same convention.

    Expectation

    In essence, given a volume with naming pattern: first-second, I expect that:

    • volume name
    • mountpoint
    • partition

    will follow the same pattern: which is:

    • volume_name = first-second
    • mountpoint = /mnt/first-second
    • partition = /dev/disk/by-id/scsi-0DO_Volume_first-second

    This expectation matches the example provided here :

    /dev/disk/by-id/scsi-0DO_Volume_volume-nyc1-01:       symbolic link to ../../sda
    /dev/disk/by-id/scsi-0DO_Volume_volume-nyc1-01-part1: symbolic link to ../../sda1
    
    Result

    Instead the result is:

    • volume_name = first-second
    • mountpoint = /mnt/first_second
    • partition = /dev/disk/by-id/scsi-0DO_Volume_first_second
    Clarification Needed

    Can we have volume names, mount points, and partitions adher to the same convention? This is a great help with provision and configuration tools.

Be the first one to answer this question.