Monday 31 March 2014

Renaming an LVM partition

Recently, one of my friend named an LVM partition wrongly. Then, we wanted it to rename to the right one.

But, we were just wondering how can we do that ?

The we got the solution for our question, and the solution was "lvrename".

You can use any of the following command to rename an LVM, named "lvold" to "lvnew" in volume group "VG1".

lvrename /dev/VG1/lvold /dev/VG1/lvnew

lvrename VG1 lvold lvnew

Kool :)

No comments:

Post a Comment

Note: only a member of this blog may post a comment.