RAC#2 Network & GNS in Oracle Clusterware
π’ Step 1: Basic Question
π What do we need before installing Clusterware?
✅ Answer: Network setup is very IMPORTANT
π’ Step 2: Minimum Network Requirement
π Each node must have:
✅ At least 2 Network Adapters (NICs)
| Adapter | Purpose |
|---|---|
| 1️⃣ Public Network | Client connections |
| 2️⃣ Private Network (Interconnect) | Node-to-node communication |
πΉ Example (3-node cluster):
Each node has:
eth0→ Publiceth1→ Private
✅ Important Rule: π Interface names must be same on all nodes
π’ Step 3: Why Two Networks?
π Think like this:
- Public = “Outside world” π
- Private = “Internal discussion” π
✅ Separation gives:
- Better performance
- Security
- Stability
π’ Step 4: Important Network Rules
❌ Do NOT:
- Use cross-cables
- Directly connect nodes
✅ Always:
- Use a network switch
π Why?
- Ensures proper communication
- Avoids failures
π’ Step 5: IP Address Configuration
You have 2 options:
πΉ Option 1: Static IP (Common ✅)
- Manually assign IPs
- Used in typical installation
πΉ Option 2: GNS (Grid Naming Service)
- Automatic IP assignment
- Uses DNS + DHCP
π’ Step 6: Protocol Requirements
| Network | Protocol |
|---|---|
| Public | TCP/IP |
| Private | UDP / RDS / TCP (Windows) |
π Private network uses:
- Grid Interprocess Communication (IPC)
π’ Step 7: IPv4 vs IPv6 (Important Rule)
✅ Supported:
- IPv4
- IPv6
❌ Not Allowed:
- Mixing IPv4 & IPv6 during installation
π Example:
- Node1 = IPv4
- Node2 = IPv6 ❌ (Not allowed)
✅ After install:
- You can add IPv6 to IPv4 cluster (or vice versa)
π’ Step 8: Best Practice
π Remember this line:
π “Do NOT mix IP versions during installation.”
π’ Step 9: What is GNS?
π GNS = Grid Naming Service
π Think of it as: π “Automatic DNS inside cluster”
✅ What GNS does:
- Resolves hostnames
- Assigns IP addresses
- Reduces manual configuration
π’ Step 10: GNS Requirements
Before using GNS:
✅ You need:
- DNS configured
- Domain delegation
- DHCP server
πΉ Key Point:
- Only 1 static IP needed → GNS VIP
π’ Step 11: How GNS Works
π Flow:
- Client sends request
- Goes to GNS VIP
- GNS resolves using internal mDNS
- Sends response
✅ Extra Tip: π Disable any third-party mDNS tools
π’ Step 12: GNS Modes
πΉ Automatic Mode
- Uses DHCP
- Auto IP assignment
πΉ Static Mode
- DNS manually configured
- SCAN IPs fixed
π’ Step 13: New Feature — Shared GNS
π Earlier:
- One GNS per cluster
π Now:
- One GNS for multiple clusters ✅
✅ Benefits:
- Centralized naming
- Less admin work
- Better cloud integration
π’ Step 14: Highly Available GNS
π GNS supports HA (High Availability)
Structure:
| Role | Function |
|---|---|
| Primary GNS | Main server |
| Secondary GNS | Backup |
✅ If primary fails:
π Secondary becomes primary
Data Sync Methods:
- Full transfer
- Incremental transfer
π’ Step 15: SCAN (Very Important)
π SCAN = Single Client Access Name
π Think of it as: π “One entry point for the cluster”
✅ Key Features:
- Clients connect using SCAN
- No need to know node details
πΉ SCAN Properties:
- Fully qualified name (hostname + domain)
- Maps to 3 IP addresses
✅ Why 3 IPs?
π For:
- Load balancing
- High availability
π’ Step 16: SCAN Working
π Process:
- Client connects to SCAN
- SCAN listener receives request
- Redirects to least loaded node
✅ Advantage: π No config change when nodes added/removed
π’ Step 17: Quick Visualization
Client → SCAN → Any Node → Database
π’ Step 18: Installation Checklist
Before install:
✅ Same OS on all nodes
✅ Two NICs per node
✅ Proper DNS or GNS setup
✅ Static IPs or DHCP
✅ Switch (not cross-cable)
π§ Easy Memory Summary
π Remember this line:
π “2 networks, 2 IP types, 1 SCAN, optional GNS.”
Comments
Post a Comment