91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

NFS自動mount的使用

發布時間:2020-08-09 15:09:49 來源:ITPUB博客 閱讀:163 作者:qqmengxue 欄目:網絡安全

環境介紹:

REDHAT 5.1 64BIT*2

[@more@]

由于環境中需要掛載遠端系統,所以就用NFS來實現,為了在系統啟動的時候或者用戶訪問的時候就進行掛載不用手動參與,于是就用linux的autofs功能來實現:

source OS:

[root@szpa-bak-db2 ~]# more /etc/exports /u02/backupset/140_expback 16.41.169.139(rw,no_root_squash)
[root@szpa-bak-db2 ~]#

target OS:

[oracle@localhost exp_back]$ more /etc/auto.master #
# $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
/misc /etc/auto.misc
/net -hosts
/u02/backup/expbk /etc/auto.nfs#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master

[oracle@localhost exp_back]$ more /etc/auto.nfs exp_back -rw,bg,hard,rsize=32768,wsze=32768 16.41.169.140:/u02/backupset/140_expback[root@localhost exp_back]# /etc/init.d/autofs restart
Stopping automount: [ OK ]
Starting automount: [ OK ]

自動掛載演示:

[root@localhost u02]# mount/dev/cciss/c0d0p3 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/cciss/c0d0p6 on /u02 type ext3 (rw)
/dev/cciss/c0d0p2 on /u01 type ext3 (rw)
/dev/cciss/c0d0p1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
[root@localhost u02]# cd /u02/backup/expbk/exp_back/
[root@localhost exp_back]# ls
abc
[root@localhost exp_back]# mount;df/dev/cciss/c0d0p3 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/cciss/c0d0p6 on /u02 type ext3 (rw)
/dev/cciss/c0d0p2 on /u01 type ext3 (rw)
/dev/cciss/c0d0p1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
16.41.169.140:/u02/backupset/140_expback on /u02/backup/expbk/exp_back type nfs (rw,soft,rsize=32768,wsze=32768,addr=16.41.169.140)
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p3 49594228 9928852 37105420 22% /
/dev/cciss/c0d0p6 285521444 232729476 38054344 86% /u02
/dev/cciss/c0d0p2 49594228 44736880 2297392 96% /u01
/dev/cciss/c0d0p1 101086 12533 83334 14% /boot
tmpfs 8201032 0 8201032 0% /dev/shm
16.41.169.140:/u02/backupset/140_expback
585057792 168249760 386609472 31% /u02/backup/expbk/exp_back
[root@localhost exp_back]#

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

周宁县| 河东区| 安徽省| 永丰县| 安达市| 新平| 咸丰县| 赫章县| 邹平县| 延庆县| 怀来县| 民权县| 高邑县| 马鞍山市| 隆化县| 合肥市| 邵东县| 安塞县| 武邑县| 东台市| 星子县| 九江市| 新巴尔虎右旗| 仲巴县| 叙永县| 澄城县| 德格县| 鹤壁市| 余姚市| 银川市| 云阳县| 宁城县| 西充县| 克什克腾旗| 观塘区| 修文县| 阜平县| 井冈山市| 武强县| 庄浪县| 四平市|