In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Environment introduction:
REDHAT 5.1 64BIT*2
[@ more@]
Because the remote system needs to be mounted in the environment, it is implemented with NFS. In order to mount the remote system when the system starts or when the user accesses it without manual participation, the autofs function of linux is used to implement it:
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.140Backup set and 140expend [root @ localhost exp_back] # / etc/init.d/autofs restart
Stopping automount: [OK]
Starting automount: [OK]
Automatic mount demo:
[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] # lsabc
[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 / dev/shm
16.41.169.140:/u02/backupset/140_expback
585057792 168249760 386609472 31% / u02 _ localhost exp_back _ exp [root @ root] #
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.