免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2541 | 回复: 1
打印 上一主题 下一主题

AIX挂载Linux下的NFS [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-14 20:17 |只看该作者 |倒序浏览
AIX挂载Linux下的NFS














题记:本次是由于数据库备份文件太大了,于是想将备份文件存放在云存储中,这里是将云存储以NFS方式挂载到系统中。
  1. GD_HYWG_cManager2_A:/> mount 192.168.121.24:/mnt/ws1_fs/db_backup  /backup
  2. mount: 1831-008 giving up on:
  3. 192.168.121.24:/mnt/ws1_fs/db_backup
  4. vmount: Operation not permitted.

  5. GD_HYWG_cManager2_A:/> showmount -e 192.168.121.24
  6. export list for 192.168.121.23:
  7. /mnt/ws1_fs           192.168.120.*
  8. /mnt/ws1_fs/db_backup 192.168.128.*

  9. GD_HYWG_cManager2_A:/> nfso -o nfs_use_reserved_ports=1     --> 修改这个后正常
  10. Setting nfs_use_reserved_ports to 1
  11. GD_HYWG_cManager2_A:/> mount 192.168.121.24:/mnt/ws1_fs/db_backup  /backup
  12. GD_HYWG_cManager2_A:/> df -k
  13. Filesystem    1024-blocks      Free %Used    Iused %Iused Mounted on
  14. /dev/hd4          2097152   2039740    3%     3427     1% /
  15. /dev/hd2          5242880   1918340   64%    90779    18% /usr
  16. /dev/hd9var       3145728    555992   83%      851     1% /var
  17. /dev/hd3          2097152   1968392    7%      449     1% /tmp
  18. /dev/fwdump       1048576   1048088    1%        4     1% /var/adm/ras/platform
  19. /dev/hd1         20971520  12662908   40%    28343     1% /home
  20. /dev/hd10opt      2097152   2054028    3%      707     1% /opt
  21. /dev/oraclelv    20971520   8489068   60%    19707     2% /oracle
  22. /dev/lvbillingcdr   196608000 160211388   19%   426076     2% /billingcdr
  23. /dev/lvbillingarch   225443840 199815628   12%      115     1% /billingcdr/archivelog
  24. /dev/lvbillingbak   435159040  64928800   86%       12     1% /billingcdr/billingbackup
  25. 192.168.121.24:/mnt/ws1_fs/db_backup 103813753376 47553553312   55% 144954938    99% /backup

  26. GD_HYWG_cManager2_A:/> cd /backup
  27. GD_HYWG_cManager2_A:/backup> ls -l
  28. total 104
  29. drwxrwxr-x    2 oracle   dba            4096 Dec 05 15:52 bk
  30. GD_HYWG_cManager2_A:/backup> su - oracle
  31. $ cd /backup/bk
  32. $ mkdir abcd
  33. mkdir: 0653-358 Cannot create abcd.
  34. abcd: There is an input or output error.

  35. GD_HYWG_cManager2_A:/tt01> cat /etc/passwd | grep oracle
  36. oracle:!:123:1002::/oracle:/usr/bin/ksh
  37. GD_HYWG_cManager2_A:/tt01> id oracle
  38. uid=123(oracle) gid=1002(dba) groups=1(staff),1003(hagsuser),1001(oinstall)
复制代码
然后在nfs server上创建一oracle用户后,问题解决。



在AIX上挂载了云存储(以NFS方式挂载),目的是用于数据库的RMAN备份,但是在做rman备份测试时,出现如下错误:
测试脚本:
  1. run {
  2.    allocate channel t1 type disk;
  3.     backup
  4.      skip inaccessible
  5.      format '/backup/bill_db/arclogback_%s_%p_%t_%d'
  6.     (archivelog all
  7.      );
  8.    release CHANNEL t1 ;
  9. }
复制代码
报错:
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 12/06/2011 09:40:39
ORA-19504: failed to create file "/backup/bill_db/arclogback_316_1_20111206_769167624.bk"
ORA-27054: NFS file system where the file is created or resides is not mounted with correct options
IBM AIX RISC System/6000 Error: 13: Permission denied
Additional information: 4

查了下metalink,得到如下的解决方法:
出现这个错误有三种方法解决:
(1)set  event 10298 需要重启数据库生效
alter system set event='10298 trace name context forever,level 32' scope=spfile;
(2)mount时指定一些参数:
  1. mount -o rw,bg,hard,rsize=32768,wsize=32768,vers=3,cio,intr,timeo=600,proto=tcp 192.168.121.24:/mnt/ws1_fs/db_backup  /backup
复制代码
(3)打补丁:5146667,这种方法要将数据库关闭,操作比较比较麻烦。
上面的三种方法中,使用了第2种,但是仍然是报同样的错误,问题没有解决!
由于是生产库,第1、3种方法没有试过。
最后还是从本地的存储扩大了LUN,使得数据库备份目录有足够的空间使用。

论坛徽章:
33
ChinaUnix元老
日期:2015-02-02 08:55:39CU十四周年纪念徽章
日期:2019-08-20 08:30:3720周年集字徽章-周	
日期:2020-10-28 14:13:3020周年集字徽章-20	
日期:2020-10-28 14:04:3019周年集字徽章-CU
日期:2019-09-08 23:26:2519周年集字徽章-19
日期:2019-08-27 13:31:262016科比退役纪念章
日期:2022-04-24 14:33:24
2 [报告]
发表于 2011-12-18 10:23 |只看该作者
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP