您好,登錄后才能下訂單哦!
本篇內容主要講解“RAC創建ACFS用來部署OGG的過程”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強。下面就讓小編來帶大家學習“RAC創建ACFS用來部署OGG的過程”吧!
環境描述:
雙節點RAC
數據庫:版本12.2.0.1
操作系統:linux 6.9
一、利用圖形化
準備好掛載點
cd /
mkdir ogg
chown oracle:oinstall ogg
chmod 775 /ogg
圖形化
asmca
我這里是有問題,不知道什么原因,做個記錄。后面手動掛載。
PRCA-1138 : failed to start one or more file system resources:
Error
mounting file system '/dev/asm/ogg-177' on '/ogg':
/sbin/mount.acfs.bin: error while loading shared libraries:
libhasgen12.so: failed to map segment from shared object: Permission
denied
Error mounting file system '/dev/asm/ogg-177' on '/ogg':
/sbin/mount.acfs.bin: error while loading shared libraries:
libhasgen12.so: failed to map segment from shared object: Permission
denied
CRS-2674: Start of 'ora.data1.ogg.acfs' on 'hnrst-ssbybcsdb2-bm001' failed
CRS-2674: Start of 'ora.data1.ogg.acfs' on 'hnrst-ssbybcsdb2-bm002' failed
每個節點都要手動掛載成功
/sbin/mount.acfs -o all
最后查看狀態,成功
crsctl stat res -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.ASMNET1LSNR_ASM.lsnr
ONLINE ONLINE csdb2-bm001 STABLE
ONLINE ONLINE csdb2-bm002 STABLE
ora.DATA1.OGG.advm
ONLINE ONLINE csdb2-bm001 STABLE
ONLINE ONLINE csdb2-bm002 STABLE
ora.DATA1.dg
ONLINE ONLINE csdb2-bm001 STABLE
ONLINE ONLINE csdb2-bm002 STABLE
ora.LISTENER.lsnr
ONLINE ONLINE csdb2-bm001 STABLE
ONLINE ONLINE csdb2-bm002 STABLE
ora.MGMT.dg
ONLINE ONLINE csdb2-bm001 STABLE
ONLINE ONLINE csdb2-bm002 STABLE
ora.OCR.dg
ONLINE ONLINE csdb2-bm001 STABLE
ONLINE ONLINE csdb2-bm002 STABLE
ora.chad
ONLINE ONLINE csdb2-bm001 STABLE
OFFLINE OFFLINE csdb2-bm002 STABLE
ora.data1.ogg.acfs
ONLINE ONLINE csdb2-bm001 mounted on /ogg,STAB
LE
ONLINE ONLINE csdb2-bm002 mounted on /ogg,STAB
LE
ora.net1.network
ONLINE ONLINE csdb2-bm001 STABLE
ONLINE ONLINE csdb2-bm002 STABLE
ora.ons
ONLINE ONLINE csdb2-bm001 STABLE
ONLINE ONLINE csdb2-bm002 STABLE
ora.proxy_advm
ONLINE ONLINE csdb2-bm001 STABLE
ONLINE ONLINE csdb2-bm002 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE csdb2-bm002 STABLE
ora.MGMTLSNR
1 ONLINE ONLINE csdb2-bm002 169.254.34.243 192.1
68.83.123,STABLE
ora.asm
1 ONLINE ONLINE csdb2-bm001 Started,STABLE
2 ONLINE ONLINE csdb2-bm002 Started,STABLE
3 OFFLINE OFFLINE STABLE
ora.cvu
1 ONLINE ONLINE csdb2-bm002 STABLE
ora.csdb2-bm001.vip
1 ONLINE ONLINE csdb2-bm001 STABLE
ora.csdb2-bm002.vip
1 ONLINE ONLINE csdb2-bm002 STABLE
ora.mgmtdb
1 ONLINE ONLINE csdb2-bm002 Open,STABLE
ora.qosmserver
1 ONLINE ONLINE csdb2-bm002 STABLE
ora.scan1.vip
1 ONLINE ONLINE csdb2-bm002 STABLE
ora.sibcwdc1.db
1 ONLINE ONLINE csdb2-bm001 Open,HOME=/home/u01/
app/oracle/product/1
2.2.0/db1,STABLE
2 ONLINE ONLINE csdb2-bm002 Open,HOME=/home/u01/
app/oracle/product/1
2.2.0/db1,STABLE
--------------------------------------------------------------------------------
二、命令行
su - root
df -h
date
su - grid
--查看現有的asm空間分配情況
asmcmd -p lsdg
--從DATA1磁盤分配500G大小創建邏輯卷ogg
asmca -silent -createvolume -volumeName ogg -volumeDiskGroup DATA1 -volumesizeGB 500
--查看創建的信息(/dev/asm/vologg-3)
ll /dev/asm/*
su - root --所有的節點都要執行創建目錄并改對應的屬組
cd /
mkdir ogg
chown oracle:oinstall ogg
chmod 775 /ogg
--另外的節點也要執行
su - root
cd /
mkdir ogg
chown oracle:oinstall ogg
chmod 775 /ogg
--掛載目錄
su - grid
asmca -silent -createACFS -acfsvolumeDevice /dev/asm/ogg-3 -acfsMountPoint /ogg -acfsUserName oracle -acfsGroupName oinstall
--執行腳本
su - root
cd /home/u01/app/grid/cfgtoollogs/asmca/scripts
./acfs_script.sh
也是上面得報錯:
每個節點都要手動掛載成功
/sbin/mount.acfs -o all
--最后查看是否成功
df -h
到此,相信大家對“RAC創建ACFS用來部署OGG的過程”有了更深的了解,不妨來實際操作一番吧!這里是億速云網站,更多相關內容可以進入相關頻道進行查詢,關注我們,繼續學習!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。