Skip to content
Home » Oracle » How to Build 12c RAC (1/6) - Building a NAS for Shared Storage of RAC

How to Build 12c RAC (1/6) - Building a NAS for Shared Storage of RAC

How to Build 12c RAC (0/6) - An Overview

For 18c, you may refer to: How to Build 18c RAC - 1 of 4 - Preparing Two Database Servers.

This major step describes how to build shared storage for RAC, in fact, it's for ASM to configure a disk group. This shared storage would go through NAS + iSCSI channel for servicing two RAC nodes.

Assuming that you have installed FreeNAS 9.3 before we open iSCSI service for iSCSI clients which are two nodes of RAC server.

In this major step, we are going to have the following minor steps.

  1. Check the basic information about this NAS
  2. Create volume group and volumes for iSCSI
  3. Set up iSCSI Service
Let's start the steps.

A. Check the basic information about this NAS

  • OS: FreeNAS 9.3
  • Hostname: primary-nas.example.com (192.168.15.101)
  • Number of Disks for iSCSI: 4 disks.
  • Space per disk: 20GB.
  • Disk Redundancy: RAIDZ2 (≈ RAID 10).
  • Number of ZVOL (Extents) for iSCSI service: 2.
  • Number of Targets for iSCSI service: 2.
  • Space per Target: 16GB.

B. Create volume group and volumes for iSCSI

See the IP address (http://192.168.15.101 in this case) of FreeNAS WebGUI indicated on the menu screen.

FreeNAS Entry Menu
FreeNAS Entry Menu

Open your browser to login to FreeNAS WebGUI (i.e. http://192.168.15.101 in this case.)

FreeNAS Web Login Page
FreeNAS Web Login Page

Click Storage > Volume Manager

FreeNAS Volume Manager
FreeNAS Volume Manager

Create a volume group by dragging a 4x1 disk array with RaidZ2

FreeNAS Create RaidZ2 Volume
FreeNAS Create RaidZ2 Volume

Click Create ZVOL icon for iSCSI extents.

FreeNAS Create ZVOL
FreeNAS Create ZVOL

Please notice that the unit of ZVOL must be in GiB, not GB

FreeNAS Create ZVOL - Dialog
FreeNAS Create ZVOL - Dialog

OK, we have created two ZVOL for iSCSI extents.

FreeNAS Create ZVOL - List
FreeNAS Create ZVOL - List

C. Set up iSCSI Service

Start iSCSI service:
  1. Click Services.
  2. Switch iSCSI service ON.
  3. Click the tool icon on the right side to enter iSCSI setup.
FreeNAS - Enable iSCSI Service
FreeNAS - Enable iSCSI Service

Create a portal for iSCSI clients to access.

FreeNAS - Add iSCSI Portal
FreeNAS - Add iSCSI Portal

Create an initiator for authenticated iSCSI clients.

FreeNAS - Add iSCSI Initiator
FreeNAS - Add iSCSI Initiator

Create two targets asm-t1 and asm-t2.

FreeNAS - Add iSCSI Target
FreeNAS - Add iSCSI Target

Create two extents asm-e1 and asm-e2 by using previously created ZVOL: asm-vg1-1 and asm-vg1-2.

FreeNAS - Add iSCSI Extent
FreeNAS - Add iSCSI Extent

Map two pairs of target and extent.

FreeNAS - Associate iSCSI Target
FreeNAS - Associate iSCSI Target

Here is a concept worth mentioning about: The types of disk array in FreeNAS are categorized as these:

  1. Stripe = RAID 0 (zero redundancy)
  2. Mirror = RAID 1 (one redundancy)
  3. RAIDZ ≈ RAID 5
  4. RAIDZ2 ≈ RAID 10 (or RAID 1+0)

So far, the shared storage for ASM is ready.

How to Build 12c RAC (2/6) - Building Two Servers for RAC

Leave a Reply

Your email address will not be published. Required fields are marked *