3

I created a thinpool LV using the following command:

lvcreate --type thin-pool -l 100%VG -n lv-thinpool vg-test

Now /dev/mapper has the following entries:

vg--test-lv--thinpool
vg--test-lv--thinpool_tdata
vg--test-lv--thinpool_tmeta

Why do the double hyphens appear, and how can I prevent them?

4

If either the volume group or the logical volume name contains a hyphen, then LVM doubles the hyphen when a device path file is created.

Use underscores (_) in lieu of hyphens in VG and LV names to avoid double hyphens in the composite device path name.

  • You have the single and double hyphens mixed up. – Tom Hale Oct 30 '16 at 16:58
  • @TomHale - Corrected – JRFerguson Oct 30 '16 at 23:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.