AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

equivalent of /proc/mounts in AIX

  • 1.  equivalent of /proc/mounts in AIX

    Posted Thu January 18, 2018 09:06 AM

    Originally posted by: amandeepgautam


    Hello,

       I am trying to figure out a source where I look up all the mounted devices. After some reading, I came to know that AIX tries to mount the entries in /etc/filesystems automatically at startup. But does that files contain everything after the system is started?

    Basically, I am looking for an equivalent of /proc/mounts file for AIX.

     


    #AIX-Forum


  • 2.  Re: equivalent of /proc/mounts in AIX

    Posted Thu January 18, 2018 10:14 AM

    Originally posted by: luverofpeanuts


     

    I believe if you enter the 'mount' command with no options, it displays the mounted filesystems, including those that were mounted manually and not in /etc/filesystems.   Are you looking for something different than that?   

     

     


    #AIX-Forum


  • 3.  Re: equivalent of /proc/mounts in AIX

    Posted Thu January 18, 2018 11:28 AM

    Originally posted by: amandeepgautam


    I am looking for this:

    Our use case is that we would like to know every device that can be backed up (any physical volumes, remote mount points etc.). In linux we get this by reading /proc/mounts.

     

    Since I do not have enough experience with AIX I am not sure if the list provided by mount is complete, but it looks promising.

     


    #AIX-Forum


  • 4.  Re: equivalent of /proc/mounts in AIX

    Posted Thu January 18, 2018 01:22 PM

    Originally posted by: luverofpeanuts


     

    I hope it works for you.  The 'lsfs' command also can be useful too.   

     

    Good luck.   


    #AIX-Forum


  • 5.  Re: equivalent of /proc/mounts in AIX

    Posted Thu January 18, 2018 02:20 PM

    Originally posted by: amandeepgautam


    Can you also tell how does LVM fit into this picture. See the sequence of following commands:

     

    bash-4.4# lsfs

    Name            Nodename   Mount Pt               VFS   Size    Options    Auto Accounting

    /dev/hd4        --         /                      jfs2  720896  --         yes  no

    /dev/hd1        --         /home                  jfs2  8454144 --         yes  no

    /dev/hd2        --         /usr                   jfs2  12648448 --         yes  no

    /dev/hd9var     --         /var                   jfs2  8781824 --         yes  no

    /dev/hd3        --         /tmp                   jfs2  4390912 --         yes  no

    /dev/hd11admin  --         /admin                 jfs2  262144  --         yes  no

    /proc           --         /proc                  procfs --      --         yes  no

    /dev/hd10opt    --         /opt                   jfs2  8454144 --         yes  no

    /dev/livedump   --         /var/adm/ras/livedump  jfs2  524288  --         yes  no

    bash-4.4# mount

      node       mounted        mounted over    vfs       date        options      

    -------- ---------------  ---------------  ------ ------------ ---------------

             /dev/hd4         /                jfs2   Jan 16 00:33 rw,log=/dev/hd8

             /dev/hd2         /usr             jfs2   Jan 16 00:33 rw,log=/dev/hd8

             /dev/hd9var      /var             jfs2   Jan 16 00:33 rw,log=/dev/hd8

             /dev/hd3         /tmp             jfs2   Jan 16 00:33 rw,log=/dev/hd8

             /dev/hd1         /home            jfs2   Jan 16 00:33 rw,log=/dev/hd8

             /dev/hd11admin   /admin           jfs2   Jan 16 00:33 rw,log=/dev/hd8

             /proc            /proc            procfs Jan 16 00:33 rw              

             /dev/hd10opt     /opt             jfs2   Jan 16 00:33 rw,log=/dev/hd8

             /dev/livedump    /var/adm/ras/livedump jfs2   Jan 16 00:33 rw,log=/dev/hd8

    bash-4.4# lsvg

    rootvg

    bash-4.4# lsvg -l rootvg

    rootvg:

    LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT

    hd5                 boot       1       1       1    closed/syncd  N/A

    hd6                 paging     16      16      1    open/syncd    N/A

    hd8                 jfs2log    1       1       1    open/syncd    N/A

    hd4                 jfs2       11      11      1    open/syncd    /

    hd2                 jfs2       193     193     1    open/syncd    /usr

    hd9var              jfs2       134     134     2    open/syncd    /var

    hd3                 jfs2       67      67      2    open/syncd    /tmp

    hd1                 jfs2       129     129     1    open/syncd    /home

    hd10opt             jfs2       129     129     1    open/syncd    /opt

    hd11admin           jfs2       4       4       1    open/syncd    /admin

    lg_dumplv           sysdump    32      32      1    open/syncd    N/A

    livedump            jfs2       8       8       1    open/syncd    /var/adm/ras/livedump

    bash-4.4#

     

    lsvg -l rootvg also seems to provide all the mount point information plus information on some other devices. Can that be taken as a source of truth?

     


    #AIX-Forum