Renaming a filesystem

Is there a quick and easy way to rename a journaled filesystem in AIX?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

what do you mean by "rename"? directory, mount point
I assume (like ahoffmann) that you mean the mount point.

Simply unmount the filesystem, change the mount point and remount it.

It's been a long time since I've used AIX, so I can't remember the AIX equivalent of /etc/vfstab
/etc/filesystems ;-)
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Kent OlsenData Warehouse Architect / DBACommented:
If you're familiar with "smitty", try this:

smitty fs

Add / Change / Show / Delete File Systems

Journaled File System (or Enhanced Journaled File System)

Change / Show Characteristics of a Journaled File System

Enter value for "NEW mount point".


umount <your file system>
mkdir < what ever name you want>
mount <your lvol device file> < new dir>

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SonkAuthor Commented:
Thanks...that is what I did.  When you stated <your lvol device file> , did you mean that I could reuse the original lvol that was associated with the unmounted file?  I find it a bit confusing that the filesystem and the mount point share the same name.  Smitty would only let me change mount point names.
Kent OlsenData Warehouse Architect / DBACommented:
Hi Sonk,

Be careful with that implementation.  While you've changed the mount point associated with that file system, you've not renamed the file system -- you've simply moved it.

What's worse is that this is temporary.  You've not recorded the change in /etc/filesystems.  The next time you reboot AIX the file set will revert to it's recorded mount point.  And since rebooting AIX is something that you probably don't do very often, when you take AIX down for a system upgrade next Christmas you'll probably forget about this and wonder why none of your applications will run.  :(

Hi Sonk,
That right !,Logical volumn is the storage that you referencee with mount point name.

/dev/vg00/lvol10 /aaa
umount /dev/vg00/lvol10
mkdir /bbb
mount /dev/vg00/lvol10 /bbb
then you got
/dev/vg00/lvol10 /bbb
the the data same as before.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.