【AIX 學習】檔案系統--監視

楊奇龍發表於2010-09-14

/etc/filesystems 存放這許多檔案系統的所有資訊,許多維護檔案系統的命令都是從這個檔案中獲取的檔案系統的預設屬性。此檔案的格式是stanza 格式的。包含檔案系統的名字和屬性。
ufserver[/]#cat /etc/filesystems
* @(#)filesystems @(#)29        1.22  src/bos/etc/filesystems/filesystems, cmdfs, bos530 9/8/00 13:57:45
* IBM_PROLOG_BEGIN_TAG
* This is an automatically generated prolog.
* bos530 src/bos/etc/filesystems/filesystems 1.22
* IBM_PROLOG_END_TAG
* COMPONENT_NAME: CMDFS
* FUNCTIONS: none
* ORIGINS: 27
*
* US Government Users Restricted Rights - Use, duplication or
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*
* This version of /etc/filesystems assumes that only the root file system
* is created and ready.  As new file systems are added, change the check,
* mount, free, log, vol and vfs entries for the appropriate stanza.
*

/:
        dev             = /dev/hd4   --檔案對應的邏輯裝置,邏輯卷
        vfs             = jfs2       -- mount的型別
        log             = /dev/hd8   ---檔案系統的日誌裝置。該項只對jfs 和jfs2 有用。
        mount           = automatic  --檔案系統預設安裝方式 
                                        1 automatic
                                        2 true  用mount all 命令安裝,用unmount all 解除安裝檔案,系統初始化時自動執行  mount all。
                                        3 false 檔案系統不會自動安裝,必須手動安裝(用mount 命令單獨安裝)
                                        4 readonly 檔案系統以只讀的方式安裝
        check           = false      --檔案系統是否由fsck 命令在預設情況下檢查。   
        type            = bootfs     --檔案系統型別,用於按型別分組安裝檔案系統。mount -t type
        vol             = root       --檔案系統的卷標
        free            = true       --

/home:
        dev             = /dev/hd1
        vfs             = jfs2
        log             = /dev/hd8
        mount           = true
        check           = true
        vol             = /home
        free            = false

/usr:
        dev             = /dev/hd2
        vfs             = jfs2
        log             = /dev/hd8
        mount           = automatic
        check           = false
        type            = bootfs
        vol             = /usr
        free            = false

/var:
        dev             = /dev/hd9var
        vfs             = jfs2
        log             = /dev/hd8
        mount           = automatic
        check           = false
        type            = bootfs
        vol             = /var
        free            = false

/opt:
        dev             = /dev/hd10opt
        vfs             = jfs2
        log             = /dev/hd8
        mount           = true
        check           = true
        vol             = /opt
        free            = false

/ora10g:
        dev             = /dev/ora10g
        vfs             = jfs2
        log             = /dev/loglv00
        mount           = true
        options         = rw
        account         = false

/db2data:
        dev             = /dev/db2data
        vfs             = jfs2
        log             = /dev/loglv00
        mount           = true
        options         = rw
        account         = false
ufserver[/]#cat /etc/vfs
# @(#)vfs  @(#)77       1.30  src/bos/etc/vfs/vfs, cmdfs, bos530 2/26/04 10:48:56
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
# bos530 src/bos/etc/vfs/vfs 1.30
# IBM_PROLOG_END_TAG
# COMPONENT_NAME: CFGETC
# FUNCTIONS:
# ORIGINS: 27
# this file describes the known virtual file system implementations.
# format: (the name and vfs_number should match what is in )
# The standard helper directory is /etc/helpers
# name  vfs_number mount_helper filsys_helper
# Uncomment the following line to specify the local or remote default vfs.
%defaultvfs     jfs2    nfs
#
#名稱 虛擬檔案  vfs型別的安裝助手           vfs型別的檔案系統助手
      系統型別  程式路徑                    程式路徑名
      程式碼
cdrfs   5       none                            none
procfs  6       none                            none
jfs     3       none                           /sbin/helpers/v3fshelper
jfs2    0       /sbin/helpers/jfs2              none
nfs     2       /sbin/helpers/nfsmnthelp        none                    remote
sfs     16      none                            none
nfs3    18      /sbin/helpers/nfsmnthelp        none                    remote
nfs4    35      /sbin/helpers/nfsmnthelp        none                    remote
cachefs 17      /sbin/helpers/cfsmnthelp        none                    remote
udfs    34      /sbin/helpers/udfmnthelp        none
cifs    37      /sbin/helpers/mount_cifs        none
autofs  19      /sbin/helpers/aufsmnthelp       none
ufserver[/]#
%defaultvfs --控制標識
jfs2        --預設的本地虛擬檔案系統的型別
nfs         --預設的遠端虛擬檔案系統型別

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22664653/viewspace-673874/,如需轉載,請註明出處,否則將追究法律責任。

相關文章