1836644 Members
1916 Online
110102 Solutions
New Discussion

Changing lvol names

 
sai_2
Occasional Advisor

Changing lvol names

Hi:
I just installed 11.0 on a nclass, but i found after the succesfull installation that the bdf output has the wrong lvol names. The mount points are all correct. Only the root(lvol3) swap(lvol2) and /stand are OK. I need to rename all the other lvol's. Is there a way to do it w/o affecting anything on the installation? Please advise.

Thanks
Sai.
2 REPLIES 2
Patrick Wallek
Honored Contributor

Re: Changing lvol names

I would be somewhat leary of changing the LV names for VG00. What is wrong with the names? As long as they mount correctly I wouldn't worry too much about them.

Anyway, if you must change them, I would do so from either single-user mode or LVM maintenance.

Here is a procedure that could work for you:

cd /dev/vg00
mv lvol1 newlvname1
mv rlvol1 rnewlvnmae1
mv lvol2 newlvname2
mv rlvol2 rnewlvname2
mv lvol3 newlvname3
mv rlvol3 rnewlvname3
etc...until you get them all done. Make sure you mv both the lvol and rlvol to their new names.

vgchange -a y /dev/vg00
mount -a

This SHOULD work, BUT I take no responsibility if you somehow mess up your VG00.

I would make ABSOLUTELY SURE you have a good make_tape_recovery tape (or 2) before you do this.
John Poff
Honored Contributor

Re: Changing lvol names

Hi,

Just to add to Patrick's advice, you might also need to edit your /etc/fstab file to reflect the changes in the logical volume names, so that they get mounted in the right places. You might also have to worry about /etc/lvmtab.

Another way to do it would be to use Ignite to make a system backup and then reload the system.

Probably the easy way is just to live with it. I never worry about the lvol names in vg00 as long as everything is there.

JP