[root@localhost ~]# vi /etc/exports
#增加
/nfs 192.168.10.132(rw,no_root_squash,no_all_squash,async)

[root@testdg ~]# mount -t nfs 192.168.10.20:/nfs /rman
mount.nfs: Input/output error

NFS服务系统重启后自动运行
[root@testdg ~]# chkconfig --list nfs
nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@testdg ~]# chkconfig nfs on
[root@testdg ~]# chkconfig --list nfs
nfs 0:off 1:off 2:on 3:on 4:on 5:on 6:off

NFS挂载共享目录
[root@testdg ~]# showmount -e 192.168.10.20
Export list for 192.168.10.20:
/nfs 192.168.10.132

[root@testdg ~]# mount -t nfs 192.168.10.20(NFS机器IP):/nfs /rman
mount.nfs: Input/output error

--这里主要是服务没启动导致的,启动下就可以了
[root@testdg ~]# service portmap status
portmap is stopped
[root@testdg ~]# service portmap start
Starting portmap: [ OK ]
[root@testdg ~]# service portmap status
portmap (pid 5183) is running...

查看是否成功
[root@testdg ~]# df -h |grep /rman
192.168.10.20:/nfs 2.0T 1.2T 686G 65% /rman
现在已经挂上了。。。

NFS备份自动挂载和卸载
[oracle@test-db01 ~]$ crontab -l
00 03 * * 1,4 /home/oracle/dba/backup/backup_datafile_nas.sh
--NFS 有时不大稳定,现在让其在备份时候才挂上,备份完再去掉
[oracle@test-db01 ~]$
[oracle@test-db01 ~]$ cat /home/oracle/dba/backup/backup_datafile_nas.sh
#!/bin/bash
sudo mount -l |grep /rman
if [ $? -ne 0 ]
then
sudo mount -t nfs 192.168.10.20:/nfs /rman
sudo mount -l |grep /rman
if [ $? -ne 0 ]
then
exit
fi
fi
source /home/oracle/.bash_profile
$ORACLE_HOME/bin/rman target / log=/home/oracle/dba/backup/log/rman_backup_nas_`date +%m%d`.log append <<EOF
run
{
allocate channel ch1 device type disk;
allocate channel ch2 device type disk;
allocate channel ch3 device type disk;
allocate channel ch4 device type disk;
backup as compressed backupset database format '/rman/db_%d_%T_%U_full.bak';
backup current controlfile format '/rman/ctl_%d_%T_%U.bak';
backup as compressed backupset archivelog all format '/rman/arch_%d_%T_%U_full.bak';
release channel ch1;
release channel ch2;
release channel ch3;
release channel ch4;
}
EOF
sudo umount -l /rman

NFS挂载异常 mount.nfs: Input/output error的更多相关文章

  1. nfs挂载出错:mount.nfs: access denied by server while mounting

    这个问题就是服务器不允许客户端去挂载,那么修改服务端的权限 $ sudo vi /etc/hosts.deny 文本末添加 ### NFS DAEMONS portmap: ALL lockd: AL ...

  2. CentOS 启动提示unexpected inconsistency;RUN fsck MANUALLY, ntfs的input/output Error,InPageError c000009c使用chkdsk修复磁盘,12款Linux系统恢复工具

    CentOS这两天服务器出了问题了,提示如下: unexpected inconsistency;RUN fsck MANUALLY An error occurred during the file ...

  3. mount_cd9660:/dev/acd0: Input/output error

    mount -t cd9660 /dev/acd0 /cdrom g_vfs_done():acd0[READ(offset32768, length=204]error =5 mount_cd966 ...

  4. PHP-FPM-failed to ptrace(PEEKDATA) pid 123: Input/output error

    If you're running PHP-FPM you can see these kind of errors in your PHP-FPM logs. $ tail -f php-fpm.l ...

  5. read()、write()返回 Input/output error, Device or resource busy解决

    遇到的问题,通过I2C总线读.写(read.write)fs8816加密芯片,报错如下: read str failed,error= Input/output error! write str fa ...

  6. Docker 在转发端口时的这个错误Error starting userland proxy: mkdir /port/tcp:0.0.0.0:3306:tcp:172.17.0.2:3306: input/output error.

    from:https://www.v2ex.com/amp/t/463719 系统环境是 Windows 10 Pro,Docker 版本 18.03.1-ce,电脑开机之后第一次运行 docker ...

  7. dpdk EAL: Error reading from file descriptor 23: Input/output error

    执行test程序时输出: EAL: Error reading from file descriptor 23: Input/output error 原因: 在虚拟机添加的网卡,dpdk不支持导致的 ...

  8. PHP failed to ptrace(PEEKDATA) pid 13659: Input/output error错误解决方法

    PHP failed to ptrace(PEEKDATA) pid 13659: Input/output error错误解决方法 现在改linux内核文件打开限制<pre>ulimit ...

  9. cannot access Input/output error

    ls: cannot access  Input/output errorls: cannot open directory .: Input/output error 硬盘故障,只读或只写,你可以d ...

随机推荐

  1. PAT1084:Broken Keyboard

    1084. Broken Keyboard (20) 时间限制 200 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue On a ...

  2. Render

    render 渲染元素 元素是React应用程序的最小构建块 "根"DOM节点,它内部的所有内容都将由React DOM进行管理 仅使用React构建的App程序通常具有单个Dom ...

  3. 对JDK的深入理解

    今天对Java的jdk有了更加深入的理解: Java的jdk其实一共包含三部分内容: 1.工具包 2.类库 3.JRE jdk的全名:Java develop kit (java开发工具) jdk包含 ...

  4. 000webhost虚拟主机绑定自定义二级域名

    作者:荒原之梦 原文链接:http://zhaokaifeng.com/?p=558 前言: 最近想给导航狗IT信息导航做一个文件服务器专门存放文件,以提供引用或下载.于是,我在000webhost上 ...

  5. Day1 《机器学习》第一章学习笔记

    <机器学习>这本书算是很好的一本了解机器学习知识的一本入门书籍吧,是南京大学周志华老师所著的鸿篇大作,很早就听闻周老师大名了,算是国内机器学习领域少数的大牛了吧,刚好研究生做这个方向相关的 ...

  6. What is the best way to handle Invalid CSRF token found in the request when session times out in Spring security

    18.5.1 Timeouts One issue is that the expected CSRF token is stored in the HttpSession, so as soon a ...

  7. Java Code Examples for org.apache.ibatis.annotations.Insert

    http://www.programcreek.com/java-api-examples/index.php?api=org.apache.ibatis.annotations.Insert htt ...

  8. 【读书笔记】《Maven实战》第6章 仓库

    6.1什么是Maven仓库? Maven仓库:存储所有Maven项目共享的构件的统一位置. Maven仓库的作用:Maven项目仅需声明依赖坐标,即可在需要的时候自动根据坐标找到仓库中的构件. 6.2 ...

  9. TProfiler部署文档--笔记

    TProfiler是一个可以在生产环境长期使用的性能分析工具.它同时支持剖析和采样两种方式,记录方法执行的时间和次数,生成方法热点 对象创建热点 线程状态分析等数据,为查找系统性能瓶颈提供数据支持. ...

  10. Vert.x 线程模型揭秘

    来源:鸟窝, colobu.com/2016/03/31/vertx-thread-model/ 如有好文章投稿,请点击 → 这里了解详情 Vert.x是一个在JVM开发reactive应用的框架,可 ...