1834594 Members
3623 Online
110069 Solutions
New Discussion

Rename lvols in root vg

 
SOLVED
Go to solution
Neil Wilson_2
Valued Contributor

Rename lvols in root vg

Can someone verify the process for renaming lvols in the root vg? I'm not sure if its a straight mv command to rename the lvol and rlvol?
4 REPLIES 4
Pete Randall
Outstanding Contributor
Solution

Re: Rename lvols in root vg

Yes, device files can simply be renamed with the mv command, but don't forget to correct your /etc/fstab to reflect the new names and please explain to me why in heaven's name you would want to do this?


Pete

Pete
Neil Wilson_2
Valued Contributor

Re: Rename lvols in root vg

thanks Peter! erm well I dont really care what the lvol numbers are called. Lets just say the people delivering the application want all the ducks in a straight line... politics and all that! but spot on with your answer as I thought!
Neil Wilson_2
Valued Contributor

Re: Rename lvols in root vg

answer provided was as expected.
OFC_EDM
Respected Contributor

Re: Rename lvols in root vg

I noticed the "For heavens sake why would you want to do this".

Example:
We had a 40Gb Lvol which had to be moved to 3x20Gb disks and extended to 60Gb

So we added 3x20Gb disks to the VG.
Mirrored the orignal Lvol to the 3 new disks.
Broke (using lvsplit) the mirror.
---which created an lvol1split lvol
Removed the original lvol1.
Extended the VG to the rest of the free PE's on the 3 new disks
Then extended the FS.

So at this point the Lvol originally on 1 physical disk is now on 3 physical disks and resized to 60Gb.

BUT the LVOL is now called "lvol1split".

None of our existing documentation references that naming convention. SOOOOO that's why...It's easier to rename the lvol than update docs. phew...

Cheers
The Devil is in the detail.