lvcreate creating lv with wrong name when the lvname has "-" in it.
Issue
- When the lvname has a "-" characted in it.. the lvcreate command adds addtional character "-"
# lvcreate rootvg --size=100MB --name=lvopt-data
Rounding up size to full physical extent 128.00 MiB
Logical volume "lvopt-data" created
# ls -l /dev/mapper|grep data
lrwxrwxrwx 1 root root 8 Sep 10 13:51 rootvg-lvopt--data -> ../dm-15
Environment
- Red Hat Enterprise Linux (RHEL) 6.6
- Logical Volume Manager (LVM) 2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
