Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 2 down vote accepted

This is actually nothing to do with MDADM (which handles software RAID). It is a question about LVS, which is a file management layer - 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
add comment

Your Answer

 
discard

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.