Operating System - HP-UX
1827692 Members
3648 Online
109967 Solutions
New Discussion

Renaming multiple filesystems

 
joe_91
Super Advisor

Renaming multiple filesystems

I have to rename multiple filesystems on 11.11 system. i basically have to do this.

bdf|grep LSS

I have 102 mount points which refernce LSS either as /oracle/LSS/ or /opt/data/LSS etc...


what ever i find as LSS i have to rename as ZSS. what is the best way to do this?

i thght of doing this..

1. grab the bdf data.
2. unmount the FS(all 102)
3. go to /oracle and rename the dir LSS as ZSS
(mv LSS ZSS)--is this step OK?
4. similarly for other LSS remane to ZSS
5. change the mount point references in /etc/fstab from LSS to ZSS.
6. mountall

Please let me know if this will work or better ideas

Thanks

Joe

5 REPLIES 5
joe_91
Super Advisor

Re: Renaming multiple filesystems

I am not seeing this question under LVM

Joe
Patrick Wallek
Honored Contributor

Re: Renaming multiple filesystems

102 filesystems is going to take a while to do, but overall your procedure looks OK to me.

A. Clay Stephenson
Acclaimed Contributor

Re: Renaming multiple filesystems

Obviously you can't unmount all the filesystems, /, /var, /usr, /tmp (to name a few) but your approach would work. Yes, you can use mv to rename directories.

However, have you considered symbolic links?
e.g. ln -s /oracle/LSS /oracle/ZSS
If it ain't broke, I can fix that.
joe_91
Super Advisor

Re: Renaming multiple filesystems

mmm strange...when i do mv to rename the dir LSS..this is what happens(LSS is a directory)

cd /oracle

# mv LSS ZSS
mv: LSS: rename: Invalid argument

Any Ideas?

Thanks

Joe
A. Clay Stephenson
Acclaimed Contributor

Re: Renaming multiple filesystems

Is this a filesystem mountpoint? If so, you will need to first umount the filesystem.
If it ain't broke, I can fix that.