ITEM: DC9678L

Why some file system info is not displayed under SMIT menu


Question:
Env: 4.2

Problem:  When the customer attempts to mount a file system in SMIT, he
hits the F4 key to select a file system, and the output shows mount 
points and sizes for some of the filesystems, but not for others.  Why?

Action taken:  We ran SMIT through the debugger to see what shell
command SMIT was running:

\# rm smit.log
\# smitty -D mountfs
(hit F4 at "FILE SYSTEM name" screen, then hit CNTL-C).

The output in the menu is:

/dev/hd4
/dev/hd1                /home                   jfs     8192
/dev/hd3
/dev/hd2
/dev/lv00
/dev/lv05               /usr/sys/inst.images    jfs     204800
/dev/hd9var
/dev/geelv              /gee                    jfs     24576
/dev/lv01               /lf                     jfs     8192

The output of smit.log shows:

...
       Doing following Command_to_List:
>lsfs | while read dev node mnt vfs size opts jnk
do
        if mount | grep -q $dev
        then
                echo $dev
        else
                echo $dev $mnt $vfs $size
        fi
done | awk 'NR > 1 { printf "%-20s      %-20s   %-5s    %-10s\\n", $1, $2, 
   $3, $4 }'

This script indicates that if the file system is mounted (i.e.,
"mount | grep -d $dev"), then only the file system name will be
displayed in SMIT.  If not mounted, then all the relevant information
will be shown (file system name, mount point, vfs, and size).

The "mount" command gives the following output:

  node       mounted  mounted over  vfs    date          options      
-------- -----------  ------------  ------ ------------  --------------- 
         /dev/hd4     /             jfs    Jun 25 08:55  rw,log=/dev/hd8 
         /dev/hd2     /usr          jfs    Jun 25 08:55  rw,log=/dev/hd8 
         /dev/hd9var  /var          jfs    Jun 25 08:55  rw,log=/dev/hd8 
         /dev/hd3     /tmp          jfs    Jun 25 08:55  rw,log=/dev/hd8 
         /dev/lv00    /data         jfs    Jun 25 08:56  rw,log=/dev/hd8 

None of these file systems have mount point, vfs, or size entries in the
SMIT menu output, but since these file systems are already mounted and
we are in the "Mount a File System" SMIT menu, the output is irrelevant.

Action plan:  Close.


Support Line: Why some file system info is not displayed under SMIT menu ITEM: DC9678L
Dated: June 1997 Category: N/A
This HTML file was generated 99/06/24~13:30:16
Comments or suggestions? Contact us