Sun Cluster Data Service for Oracle Application Server Guide for Solaris OS

ProcedureExample: Configure zones z1 and z2 for Oracle Application Server

  1. On local storage create a directory for the non-global zones root path.


    Vigor5# mkdir /zones
    
  2. Create a temporary file for the whole root zones, for example /tmp/z1 and /tmp/z2, and include the following entries:


    Vigor5# cat > /tmp/z1 <<-EOF
    create -b
    set zonepath=/zones/z1
    EOF
    Vigor5# cat > /tmp/z2 <<-EOF
    create -b
    set zonepath=/zones/z2
    EOF
    
  3. Configure the non-global zones, using the files you created.


    Vigor5# zonecfg -z z1 -f /tmp/z1
    Vigor5# zonecfg -z z2 -f /tmp/z2
    
  4. Install the zones.

    Open two windows and issue the following command in each window.


    Vigor5# zoneadm -z z1 install
    Vigor5# zoneadm -z z2 install
    
  5. Boot the zones.


    Vigor5# zoneadm -z z1 boot
    Vigor5# zoneadm -z z2 boot
    
  6. Log in to the zones and complete the zone system identification.


    Vigor5# zlogin -C z1
    Vigor5# zlogin -C z2
    
  7. Close the terminal window and disconnect from the zone consoles.

    After you have completed the zone system identification, disconnect from the window your previously opened.


    Vigo5# ~.
    
  8. Import the ZFS pool into zone z1.

    Perform this step in the global zone only.


    Vigor5# zpool export -f HAZpool4
    Vigor5# zpool import -R /zones/z1/root HAZpool4
    
  9. Add the Oracle Application Server logical hostname to /etc/hosts in the zones.


    Vigor5# zlogin z1
    # cat >> /etc/hosts <<-EOF
    192.168.1.153	oas10g.uk.sun.com oas10g
    EOF
    # exit
    Vigor5# zlogin z2
    # cat >> /etc/hosts <<-EOF
    192.168.1.153	oas10g.uk.sun.com oas10g
    EOF
    # exit
    
  10. Create the Oracle Application Server userid in the zones.

    Perform this step from the global zone .


    Vigor5# zlogin z1
    # mkdir -p /ZFSoracle/oraInfra
    # groupadd -g 3000 dba
    # useradd -u 4000 -g 3000 -d /ZFSoracle/oraInfra -s /usr/bin/ksh oracle
    # exit
    Vigor5# zlogin z2
    # groupadd -g 3000 dba
    # useradd -u 4000 -g 3000 -d /ZFSoracle/oraInfra -s /usr/bin/ksh oracle
    # exit
    
  11. Setup file permissions in the ZFS pool.

    Perform this step in zone z1 only.


    Vigor5# zlogin z1
    # chown -R oracle:dba /ZFSoracle
    # exit
    
  12. Plumb the Oracle Application Server logical hostname in zone z1.

    Perform this step in the global zone.


    Vigor5# ifconfig e1000g0 addif oas10g up zone z1