Renaming a filesystem

Posted on 2003-03-13
Medium Priority
Last Modified: 2012-05-04
Is there a quick and easy way to rename a journaled filesystem in AIX?
Question by:Sonk
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 51

Expert Comment

ID: 8131214
what do you mean by "rename"? directory, mount point
LVL 48

Expert Comment

ID: 8132439
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
LVL 21

Expert Comment

ID: 8135231
/etc/filesystems ;-)

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

LVL 46

Expert Comment

by:Kent Olsen
ID: 8136721
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".



Accepted Solution

Printaporn earned 1000 total points
ID: 8143306
umount <your file system>
mkdir < what ever name you want>
mount <your lvol device file> < new dir>

Author Comment

ID: 8144973
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.
LVL 46

Expert Comment

by:Kent Olsen
ID: 8145130
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.  :(


Expert Comment

ID: 8145651
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.


Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question