System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to rename an existing filesystem

SOLVED
Go to solution
Marylou Kohlmeier
Frequent Advisor

How to rename an existing filesystem

I would like to rename our filesystem
from: /dev/vg05/R17
to: /dev/vg05/R18

The mount point will remain the same as /tmpd

We are on HP-UX 11.23 Itanium and we have online JFS

Any suggestion will be apprecaited.

thank you,
Marylou
5 REPLIES
Pete Randall
Outstanding Contributor

Re: How to rename an existing filesystem

I know you can just rename tape device files, so this might work:

mv /dev/vg05/R17 /dev/vg05/R18

However, I would be very cautious and try to figure out a way to test it first.


Pete

Pete
Mark S Meadows
Valued Contributor
Solution

Re: How to rename an existing filesystem

Hi Marylou,

Assuming that logical volume R18 does not already exist.

1. Unmount /tmpd
2. mv /dev/vg05/R17 /dev/vg05/R18
3. mv /dev/vg05/rR17 /dev/vg05/rR18
4. mount /dev/vg05/R18 /tmpd

5. The /etc/fstab file will then need to be modified to reflect the new lv for the existing mount point.

Regards,

Mark
Administrating HP-UX systems for more years than I care to admit, but still enjoying it (most of the time!).
Marylou Kohlmeier
Frequent Advisor

Re: How to rename an existing filesystem

Thank you everyone.

Appreciate your responses,
Marylou
UVK
Trusted Contributor

Re: How to rename an existing filesystem

I would the same as Mark said, get an outage for the mount point, unmount the mount point. Rename both the block & character special device files using mv command, makes necessary changes inthe /etc/fstab and mount your mount point.

-uvk
-------------------------------------------
Like it or worked !! Click kudos !!
Robert-Jan Goossens
Honored Contributor

Re: How to rename an existing filesystem

Marylou,

You need to run one additional command after moving the device files.

# vgcfgbackup vg05

To create a new backup of your lvm configuration.

Regards,
Robert-Jan