Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is is possible to rename an LVM volume?

I would like to rename local0 to vm

Device is /dev/mapper/vgdata-local0

I'm using Ubuntu 12.04

share|improve this question
up vote 3 down vote accepted

This is actually nothing to do with MDADM (which handles software RAID). It is a question about LVM (Logical Volume Manager), which is a a layer of abstraction over physical storage - often used on top of a raid device, but can be used on top of pretty much any block device. (Not sure if you can change the tags to be more appropriate)

Anyway, The solution is to use lvrename. For an unmounted partition (I don't know if it would work with a mounted one, I'd imagine not), issue the command

lvrename vgdata local0 vm
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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