Creating Quick I/O files in Solaris local zone

Quick I/O files cannot be created in the Solaris local zones. This is because the VxFS command qiomkfile cannot run in the Solaris local zone.

You must use the following workaround procedure to create Quick I/O files in Solaris local zone. You must perform the following commands as root unless otherwise stated.

To create Quick I/O files in Solaris local zone

  1. Install VRTSodm on the Solaris global zone.

    You have to perform this step once on your system. You do not have to repeat it for each local zone.

  2. Install Storage Foundation for Oracle license on the Solaris global zone.

    You need to perform this step once on your system. You do not need to repeat it for each local zone.

  3. Export the license from the Solaris global zone to each Solaris local zone where you plan to use Quick I/O.

    To do so, enter the following sequence of commands:

    zonecfg -z <zone_name>

    For example, if the Solaris local zone name is zone2, then:

    # zonecfg -z zone2
      zonecfg:zone2> add fs
      zonecfg:zone2:fs> set dir=/etc/vx/licenses/lic
      zonecfg:zone2:fs> set special=/etc/vx/licenses/lic
      zonecfg:zone2:fs> set type=lofs
      zonecfg:zone2:fs> end
      zonecfg:zone2> verify
      zonecfg:zone2> commit
      zonecfg:zone2> exit
    
    
  4. In each local zone, mount the odm device to /dev/odm.

    To do so, use the following command in the Solaris global zone:

    # mkdir /zones/<zone_name>/dev/odm
        

    Then use the following command in the Solaris local zone:

    # mount -F odm /dev/odm /dev/odm
    

    For example, if the Solaris local zone name is zone2, you must use the following commands:

    # mkdir /zones/zone2/dev/odm
    # mount -F odm /dev/odm /dev/odm
  5. As Oracle user, create a Quick I/O file in a Solaris local zone utilizing /opt/VRTS/bin/odmmkfile. Rename the file to a Quick I/O file.

    To do so, enter the following sequence of commands:

    # su - <oracle_dba>
    # cd <target_dir>
    # /opt/VRTS/bin/odmmkfile -s <size> filename
    # mv filename .filename
    # ln -s .filename::cdev:vxfs: filename
    # chown <Oracle_dba> .filename