netapp NFS

cccgw發表於2008-07-01

rman備份到netapp nfs後,開啟SIS刪除重複資料塊以節省空間。

[@more@]

1、修改exports,兩種方式

1將原來的內容rdfile /etc/exports讀出來然後複製用wrfile /etc/exports ,/vol/vol1 -sec=sys,rw=192.168.168.*:192.168.168*,root=192.168.168.*:192.168.168.*,nosuid

也可以用192.168.168.0/24將一個網段寫進去。

2)用exportfs命令

exportfs –i0 rw=192.168.168.*:192.168.168*,root=192.168.168.*:192.168.168.*,nosuid /vol/vol1

exportfs –w /etc/exports (將正在執行的exprot寫入exports)

2、重啟NFS server

Exportfs –a

Exportfs -r

Nfs off nfs on

3、在10gR2RMAN備份到NFS上時,會出現這個錯

Backup of 10g NFS database fails with RMAN error "ORA-27054: NFS file system where the file is created or resides is not mounted with correct options"

Follow the directions in Oracle Metalink Note 387700.1:

Execute the following SQL statement and restart the target database in SQL*Plus as the sys user:

SQL> ALTER SYSTEM SET EVENT='10298 trace name context forever, level 32' SCOPE=spfile;

SQL> SHUTDOWN IMMEDIATE

SQL> STARTUP

BUG:

To support:
Please note - it is possible to disable the NFS checks in
10.2 by setting event 10298 at level 32.
eg: Add this to the init.ora
#disallow MOUNT POINT checks
event="10298 trace name context forever, level 32"
This will disable the NFS mount checks allowing you to use
any mounts options but then the onus is on yourself to ensure
that the mount options used for each disk are correct
for the use that they are to be put to.

開始測試:

nohup /home/oracle/worksh/rmanbak_old.sh DB > /tmp/rmanback.log 2>&1 &

檢視備份後的大小

fas3050> df -h vol1

Filesystem total used avail capacity Mounted on

/vol/vol1/ 1600GB 518GB 1081GB 32% /vol/vol1/

/vol/vol1/.snapshot 400GB 30MB 399GB 0% /vol/vol1/.snapsho

開啟重複刪除功能

fas3050> sis on /vol/vol1

SIS for "/vol/vol1" is enabled.

Already existing data could be processed by running "sis start -s /vol/vol1".

fas3050> sis start -s /vol/vol1

The file system will be scanned to process existing data in /vol/vol1.

This operation may initialize related existing metafiles.

Are you sure you want to proceed with scan (y/n)? y

Mon Jun 30 17:56:13 CST [wafl.scan.start:info]: Starting SIS volume scan on volume vol1.

The SIS operation for "/vol/vol1" is started.

fas3050> sis status

Path State Status Progress

/vol/vol1 Enabled Active 117 GB Scanned

fas3050> sis status

Path State Status Progress

/vol/vol1 Enabled Idle Idle for 00:05:02

完成後檢視節省的空間大小

fas3050> df -sh vol1

Filesystem used saved %saved

/vol/vol1/ 436GB 86GB 17%

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/668365/viewspace-1006451/,如需轉載,請註明出處,否則將追究法律責任。

相關文章