I made a typo when I created an LVM group under Centos 6.4. I'm trying to rename using the syntax
vgrename /dev/mapper/oldVG /dev/mapper/newVG. However, both the old and new VGs have hyphens in the name:
I get the error message:
New volume group name "StoreVG/BackupLV" is invalid
I've tried escaping with
\, putting the volumes in single and double quotes. Also tried a
-- after the command
vgrename. If I try to rename to something without a hyphen (i.e.
StoreVGBackupLV) it complains about the old name instead:
Volume group name BACKUP/StoreVG has invalid characters.
The LVM is unmounted. What am I doing wrong?