이 콘텐츠는 선택한 언어로 제공되지 않습니다.

5.3. GFS Configuration


GFS file systems are certified for use with specific versions of Oracle RAC. For Oracle customers, see the Oracle Support Document 329530.1 for all currently certified combinations.
Clustered GFS requires that the Distributed Lock Manager (DLM) and the Clustered LVM services be configured and started. The DLM, if present will be started by CMAN. The RPM group should have installed all relevant components.
CLVMD only requires 1 change to the /etc/lvm/lvm.conf file; you must set locking_type to 3:
# Type of locking to use. Defaults to local file-based locking (1).
# Turn locking off by setting to 0 (dangerous: risks metadata corruption
# if LVM2 commands get run concurrently).
# Type 2 uses the external shared library locking_library.
# Type 3 uses built-in clustered locking.
locking_type = 3
Copy to Clipboard Toggle word wrap

Note

The GFS service will not start up if the fenced service has not started.

Note

Host-based mirroring (or more importantly host-based RAID) is not recommended for use with RAC (especially mission critical databases). RAC requires a storage array and any storage array worthy of running an Oracle RAC cluster will have superior RAID and RAIDSET management capabilities. Concatenating volumes does not involve RAID management, so that is less bug prone than using multiple layers of RAID.

Warning

GFS volumes can be grown if the file system requires more capacity. The gfs_grow command is used to expand the file system, once the LUN has been expanded. By keeping the filesystem mapping to single LUNs, it reduces an errors (or bugs) that might arise during gfs_grow operations. There is no performance difference between using the DDM inode, or subsequent CLVMD created logical volumes, built on these inodes. However, it must be stressed that you should perform a backup of your data before attempting this command as there is a potential to render you data unusable.

5.3.1. GFS File System Creation

For RAC, the file system must be created with arguments that are specific to the locking mechanism (always DLM), and the name of the cluster (HA585, in our case).
$ sudo gfs_mkfs -r 512 -j 4 -p lock_dlm -t rac585:gg /dev/mapper/ohome

$ sudo gfs_mkfs-j 4 -p lock_dlm -t rac585:gg /dev/mapper/db
Copy to Clipboard Toggle word wrap
Oracle manages data files with transaction redo logs, and with Oracle configuration in AIO/DIO mode, the writes always go to disk. The default journal is usually sufficient. The increased size of resource groups for GFS file systems is recommended for ORACLE_HOME, where the $OH/diag directory can contain thousands of trace files, spanning tens of GBs.

Note

Oracle Clusterware HOME is not supported on GFS clustered volumes at this time. For most installations, this will not be an imposition. There are several advantages (including, async rolling upgrades) to placing ORA_CRS_HOME on the node’s local file system, and most customers follow this practice.

5.3.2. /etc/fstab Entries

/dev/mapper/ohome   /mnt/ohome      gfs     _netdev 0 0
/dev/mapper/db      /mnt/db         gfs     _netdev 0 0
Copy to Clipboard Toggle word wrap
The _netdev mount option is also useful as it ensures the file systems are unmounted before cluster services shut down.

5.3.3. Context Dependent Pathnames (CDPN)

When ORACLE_HOME ($OH) is located on a GFS clustered volume, certain directories need to appear the same to each node (including names of files, such as listener.ora), but have node-specific contents.
To enable CDPN for $OH/network/admin, perform the following steps.
  1. Change to the OH/network directory:
    $ cd $OH/network
    Copy to Clipboard Toggle word wrap
  2. Create directories that correspond to the hostnames:
    $ mkdir rac7
    $ mkdir rac8
    Copy to Clipboard Toggle word wrap
  3. Create the admin directory in each directory:
    $ mkdir rac7/admin
    $ mkdir rac8/admin
    Copy to Clipboard Toggle word wrap
  4. Create the CPDN link (from each host).
    ON RAC7, in $OH/network:
    $ ln –s @hostname admin
    Copy to Clipboard Toggle word wrap
    On RAC8, in $OH/network:
    $ ln –s @hostname admin
    Copy to Clipboard Toggle word wrap
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2026 Red Hat
맨 위로 이동