歡迎您光臨本站 註冊首頁

AIX掛載Linux下的NFS

←手機掃碼閱讀     火星人 @ 2014-03-03 , reply:0

AIX掛載Linux下的NFS

AIX掛載Linux下的NFS


題記:本次是由於資料庫備份文件太大了,於是想將備份文件存放在雲存儲中,這裡是將雲存儲以NFS方式掛載到系統中。GD_HYWG_cManager2_A:/> mount 192.168.121.24:/mnt/ws1_fs/db_backup  /backup
mount: 1831-008 giving up on:
192.168.121.24:/mnt/ws1_fs/db_backup
vmount: Operation not permitted.

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

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

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

GD_HYWG_cManager2_A:/tt01> cat /etc/passwd | grep oracle
oracle:!:123:1002::/oracle:/usr/bin/ksh
GD_HYWG_cManager2_A:/tt01> id oracle
uid=123(oracle) gid=1002(dba) groups=1(staff),1003(hagsuser),1001(oinstall)然後在nfs server上創建一oracle用戶后,問題解決。



在AIX上掛載了雲存儲(以NFS方式掛載),目的是用於資料庫的RMAN備份,但是在做rman備份測試時,出現如下錯誤:
測試腳本: run {
   allocate channel t1 type disk;
    backup
     skip inaccessible
     format '/backup/bill_db/arclogback_%s_%p_%t_%d'
    (archivelog all
     );
   release CHANNEL t1 ;
}報錯:
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時指定一些參數:
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,使得資料庫備份目錄有足夠的空間使用。
《解決方案》

學習鳥

[火星人 ] AIX掛載Linux下的NFS已經有1325次圍觀

http://coctec.com/docs/service/show-post-1474.html