This post is also available in:
Série: Oracle RAC 12.2 — Instalação Completa no VMware Workstation
📌 Sobre esta série: Este guia cobre Oracle RAC 12c, que está fora de suporte. O objetivo é documentar aprendizado e revisar conceitos — não recomendar a versão para produção. Entenda o contexto completo na introdução da série →
📋 Esta série — Oracle RAC 12.2 no VMware Workstation:
⚙️ Pré-requisito: VMware Workstation instalado no host Linux e os ISOs do Openfiler 2.99 e Oracle Linux 7.6 disponíveis localmente.
Configurar Redes no VMware
Abra o Virtual Network Editor:
VMware Workstation → Edit → Virtual Network Editor → Change SettingsVMnet0 — Rede Pública (Bridged)
- Tipo: Bridged
- Bridged to: selecione a NIC física do host na rede
192.168.15.x - Nenhuma alteração necessária se já estiver configurado
VMnet1 — Interconnect RAC (Host-only)
- Tipo: Host-only
- DHCP: Desabilitado ← obrigatório
- Subnet:
10.10.10.0 / 255.255.255.0
VMnet2 — Rede iSCSI (Host-only)
- Clique “Add Network…” → VMnet2 → OK
- Tipo: Host-only
- Desmarque “Use local DHCP service” ← obrigatório
- Subnet IP:
192.168.20.0 - Subnet mask:
255.255.255.0 - Apply → OK
⚠️ O DHCP desabilitado no interconnect e na rede iSCSI é obrigatório. Se habilitado, o Clusterware pode falhar ao tentar usar essas redes.
Resultado final:
| VMnet | Tipo | DHCP | Subnet | Uso |
|---|---|---|---|---|
| vmnet0 | Bridged | — | 192.168.15.0/24 | Rede pública |
| vmnet1 | Host-only | Desabilitado | 10.10.10.0/24 | Interconnect |
| vmnet2 | Host-only | Desabilitado | 192.168.20.0/24 | iSCSI Storage |
Criar e Instalar a VM Openfiler
Criar a VM
File → New Virtual Machine → Custom (advanced) → Next
→ Hardware compatibility: selecione a versão do seu VMware Workstation → Next
→ I will install the operating system later → Next
→ Guest OS: Linux | Other Linux 3.x kernel 64-bit → Next
→ Name: openfiler
→ Location: /vms01/oracle/openfiler/
→ Processors: 1 × 1 core
→ Memory: 1024 MB
→ Network: Custom → /dev/vmnet2 (iSCSI)
→ I/O Controller: LSI Logic
→ Disk: SCSI | 20 GB | Single file
→ FinishAdicionar Discos de Storage
Com a VM criada e desligada, adicione os 4 discos via Settings → Add → Hard Disk.
Para cada disco: SCSI → Create a new virtual disk → não marcar “Allocate all disk space now” → Store as single file
| Disco | Tamanho | Controladora | Uso |
|---|---|---|---|
| openfiler-mgmt.vmdk | 10 GB | SCSI 0:1 | Gerência interna do Openfiler |
| openfiler-ocr.vmdk | 35 GB | SCSI 0:2 | OCR + Voting |
| openfiler-data.vmdk | 130 GB | SCSI 0:3 | GIMR + DATA |
| openfiler-fra.vmdk | 45 GB | SCSI 0:4 | FRA |
💡 Os discos podem ser thin (sem pré-alocação) porque o Openfiler gerencia o espaço via LVM e apresenta LUNs iSCSI com tamanho fixo para o Oracle. O ASM enxerga o LUN — não o VMDK por baixo.
⚠️ O disco MGMT é obrigatório. O Openfiler reserva o primeiro disco adicional para gerência interna. Sem ele, os discos de storage ficam com tamanho incorreto.
Resultado no Settings:
Hard Disk (SCSI 0:0) → 20 GB (SO)
Hard Disk (SCSI 0:1) → 10 GB (MGMT)
Hard Disk (SCSI 0:2) → 35 GB (OCR)
Hard Disk (SCSI 0:3) → 130 GB (DATA)
Hard Disk (SCSI 0:4) → 45 GB (FRA)Adicionar NIC de Gerência
Settings → Add → Network Adapter → Custom → /dev/vmnet0Resultado das NICs:
Network Adapter → vmnet2 (eth0 — iSCSI 192.168.20.10)
Network Adapter 2 → vmnet0 (eth1 — gerência 192.168.15.175)Instalar o Openfiler
Monte o ISO openfileresa-2.99.1-x86_64-disc1.iso e ligue a VM.
| Tela | Configuração |
|---|---|
| Keyboard | U.S. English já vem selecionado — ajuste se necessário |
| Disk partitioning | Selecionar “Remove all partitions on selected drives” → desmarcar sdb e sdc → deixar apenas sda (20 GB) → Boot from: sda |
| Network — eth0 | Clicar Edit → Active on Boot → Manual configuration → IP: 192.168.20.10 / Netmask: 255.255.255.0 → desmarcar Enable IPv6 support → OK |
| Network — eth1 | Clicar Edit → Active on Boot → Manual configuration → IP: 192.168.15.175 / Netmask: 255.255.255.0 → desmarcar Enable IPv6 support → OK |
| Hostname | Selecionar manually → openfiler.oracle.local (Gateway e DNS: deixar em branco) |
| Aviso “Gateway not specified” | Clique Continue — rede iSCSI não precisa de gateway |
| Aviso “Primary DNS not specified” | Clique Continue |
| Timezone | Selecione sua cidade/região no mapa. Marque System clock uses UTC |
| Root password | Senha forte |
Clique Next no resumo para iniciar a instalação. Aguarde concluir e reinicie.
Acessar a Interface Web
O Openfiler usa SSL antigo (TLS 1.0). No Firefox, acesse about:config e configure:
security.tls.version.min→1security.tls.version.enable-deprecated→true
https://192.168.15.175:446
Login: openfiler / passwordTroque a senha em System → Password.
Conectar via SSH
O Openfiler usa algoritmos SSH antigos. Adicione ao ~/.ssh/config no host Linux:
Host openfiler
HostName 192.168.15.175
User root
HostKeyAlgorithms +ssh-rsa,ssh-dss
PubkeyAcceptedKeyTypes +ssh-rsa,ssh-dssDepois conecte com ssh openfiler.
Configurar Storage no Openfiler
Criar Partições nos Discos
Menu: Volumes → Block Devices
A tela deve mostrar os discos:
/dev/sda → 20 GB (SO — não mexa)
/dev/sdb → 10 GB (MGMT)
/dev/sdc → 35 GB (OCR/VOTE)
/dev/sdd → 130 GB (DATA)
/dev/sde → 45 GB (FRA)Para cada disco (/dev/sdb, /dev/sdc, /dev/sdd, /dev/sde):
- Clique no nome do disco
- Role até “Create a partition”
- Mode: Primary | Partition type: Physical volume | Cylinders: padrão
- Clique Create
Criar Volume Groups
Menu: Volumes → Volume Groups
| Volume Group | Partição |
|---|---|
vg-mgmt | /dev/sdb1 |
vg-ocr | /dev/sdc1 |
vg-data | /dev/sdd1 |
vg-fra | /dev/sde1 |
Para cada um: informe o nome, marque a partição e clique “Add volume group”.
Criar Logical Volumes (LUNs)
Menu: Volumes → Add Volume
Selecione o VG no dropdown, clique Change, informe o nome, tamanho e selecione o tipo block (iSCSI,FC,etc):
| Volume | VG | Tamanho (MB) |
|---|---|---|
lv-mgmt | vg-mgmt | 8192 |
lv-ocr-vote1 | vg-ocr | 10000 |
lv-ocr-vote2 | vg-ocr | 10000 |
lv-ocr-vote3 | vg-ocr | 10000 |
lv-gimr | vg-data | 40960 |
lv-data1 | vg-data | 61440 |
lv-fra1 | vg-fra | 40960 |
Liberar Acesso à Rede iSCSI
Menu: System → Network Access Configuration
- Name:
rac-iscsi-net - Network/Host:
192.168.20.0 - Netmask:
255.255.255.0 - Type:
Share - Clique Update
Habilitar Serviço iSCSI
Menu: Services → Manage Services → iSCSI Target → Enable → Start
Criar iSCSI Target via SSH
💡 Por que via SSH? A interface web do Openfiler 2.99 permite criar o target normalmente, mas tem um bug que impede a gravação no
/etc/ietd.conf— o arquivo fica vazio mesmo após a criação pela UI, sem nenhuma mensagem de erro. A solução é criar o target diretamente via SSH.
ssh openfiler
ls -la /dev/vg-ocr/
ls -la /dev/vg-data/
ls -la /dev/vg-fra/
cat > /etc/ietd.conf << 'EOF'
##### WARNING!!! - This configuration file generated by Openfiler. DO NOT MANUALLY EDIT. #####
Target iqn.2006-01.com.openfiler:rac-storage
Lun 0 Path=/dev/vg-ocr/lv-ocr-vote1,Type=blockio
Lun 1 Path=/dev/vg-ocr/lv-ocr-vote2,Type=blockio
Lun 2 Path=/dev/vg-ocr/lv-ocr-vote3,Type=blockio
Lun 3 Path=/dev/vg-data/lv-gimr,Type=blockio
Lun 4 Path=/dev/vg-data/lv-data1,Type=blockio
Lun 5 Path=/dev/vg-fra/lv-fra1,Type=blockio
EOF
service iscsi-target restart
service iscsi-target status
netstat -tlnp | grep 3260⚠️ Proteger o arquivo contra sobrescrita: O Openfiler 2.99 pode sobrescrever o
ietd.confao reiniciar. Torne o arquivo imutável:
chattr +i /etc/ietd.conf
lsattr /etc/ietd.confErros Conhecidos
NIC sem link físico após ligar o Openfiler (LOWER_UP ausente)
Sintoma: O Openfiler inicia mas ip addr show eth0 não mostra o flag LOWER_UP. O ping da rede iSCSI falha com Destination Host Unreachable.
Causa: O VMware Workstation moderno usa por padrão o driver e1000 para NICs de VMs Linux antigas. O Openfiler 2.99 (kernel 2.6.x) tem incompatibilidade com esse driver em versões recentes do hypervisor — a interface sobe no SO mas o link físico (L2) não é estabelecido.
Solução: Com o Openfiler desligado, troque o driver de e1000 para e1000e no arquivo .vmx:
sed -i 's/ethernet0.virtualDev = "e1000"/ethernet0.virtualDev = "e1000e"/' \
/vms01/openfiler/openfiler.vmx
sed -i 's/ethernet1.virtualDev = "e1000"/ethernet1.virtualDev = "e1000e"/' \
/vms01/openfiler/openfiler.vmx
grep "virtualDev" /vms01/openfiler/openfiler.vmxLigue o Openfiler e valide:
ip addr show eth0
ping -c 3 192.168.20.1Próxima Parte
No Post 2 vamos configurar o Oracle Linux nos dois nós, instalar os pré-requisitos e conectar o storage iSCSI.
