Make AIX 5.3 /lhome to mount as /home

Posted on 2009-02-11
Last Modified: 2013-11-17
I am trying to make AIX /lhome to mount as /home, since our Security pushes users home folder as /home.  I tried chfs, and manual change in /etc/filesystems, /home gets mounted, but then after a while it gets unmounted on its own.  Any suggestion, how to make it work
Question by:sshujaat
    LVL 68

    Expert Comment


    I'm not quite sure that I understood your problem.
    In AIX, /home is a filesystem of its own which resides in /dev/hd1 (rootvg) and gets mounted automatically at boot time via /etc/filesystems.

    Now, what is '/lhome'?
    Did you create a new filesystem and now try to mount it over /home?
    Or is it a remote FS and you try to mount it over /home?

    Normally, an AIX filesystem never gets unmounted on its own.
    If /lhome was remote, it could be that you loose the connection to your server (NFS, cifs, whatever).

    What does your /etc/filesystems look like after you made your changes?
    What did you try to achieve with chfs (which parameters did you use)?

    As you see, I need some clarification and some more detail.



    Author Comment

    In AIX 5.3 /lhome comes as Operating System Build, since our sec. is pushing user's home directory passwd files, their home folders are coming as /home/<username>.  I used following command:
    chfs -m /lhome /home

    As per AIX dont make changes directly into filesystems file.
    LVL 68

    Accepted Solution

    I am not aware of any AIX build shipping /lhome.

    Anyway, format of chfs is

    chfs -m [/new/mount/point] [filesystem]

    so your command should have looked like

    chfs -m /home /lhome

    But attention! Don't you have an existing /home filesystem, or doesn't your 'build' contain one?

    If you have, you should first issue

    chfs -m [/any/mount/point/of/your/choice] /home

    to free the /home mountpoint.

    Remember filesystems must be unmounted/mounted  after chfs -m for the changes to take effect.



    Author Comment

    I used last recommended solution

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    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…
    Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Video by: Phil
    This video goes over how to configure and start a jail in FreeBSD.  This video is meant to supplement the article included with this course.

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now