首先來看下,神馬是ACFS,請看Oracle官方給出的定義:
Oracle Automatic Storage Management Cluster File System (Oracle ACFS) is a multi-platform, scalable file system, and storage management technology that extends Oracle Automatic Storage Management (Oracle ASM) functionality to support customer files maintained outside of Oracle Database. Oracle ACFS supports many database and application files, including executables,database trace files, database alert logs, application reports, BFILEs, and configuration files. Other supported files are video, audio, text, images, engineering drawings, and other general-purpose application file data.
大意是ACFS是一個支援多個平台,可擴充的,基於ASM的叢集檔案系統,可以用來儲存資料庫和各種應用的檔案,包括資料庫的trace檔案,alert記錄檔和設定檔等等,也可以用來儲存視頻,音頻,文本,圖片等檔案!
在這之前,叢集檔案系統使用過RedHat的gfs,還有開源的ocfs2,gfs的感覺是配置太繁瑣且複雜,因為是基於RHCS套件,所以很多功能對應單純的叢集檔案系統來說顯得有些冗餘;ocfs2屬於被放棄的孩子,目前已經停止開發了,不過勝在配置簡單;ACFS在11g r2中推出,基於grid infrastructure,配置上也算容易,且在ASM的基礎上進行發展,穩定性應該還是有保證的,下一步打算利用ACFS測試下rac環境下的golden gate複製!下面來介紹下11G RAC環境下ACFS的使用!
一:查看acfs相關的服務是否正常
- [grid@rac1 ~]$ crs_stat -t -v ora.registry.acfs
- Name Type R/RA F/FT Target State Host
- ----------------------------------------------------------------------
- ora....ry.acfs ora....fs.type 0/5 0/ ONLINE ONLINE rac1
-
- [grid@rac1 ~]$ crs_stat -t -v ora.ACFS.dg
- Name Type R/RA F/FT Target State Host
- ----------------------------------------------------------------------
- ora.ACFS.dg ora....up.type 0/5 0/ ONLINE ONLINE rac1
二:使用asmca圖形化工具,在asm磁碟組中建立volume並格式化成ACFS檔案系統
- [root@rac1 ~]# su - grid
- [grid@rac1 ~]$ !exp
- export DISPLAY=192.168.1.105:0
- [grid@rac1 ~]$ asmca