Creating WPAR root on shared storage using NFS

Use the following procedure to create a WPAR root on shared storage using NFS.

To create WPAR root on shared storage using NFS

  1. Create a file system on NFS storage for the WPAR root. The file system that is to contain the WPAR root may be in the same file system as the file system containing the shared data.

  2. Type the following mkwpar command to create the WPAR:

    mkwpar -n wpar -h host -N ip_info -r -M r_fs -M v_fs -M h_fs -M t_fs -d wroot

    Use the following information to replace the appropriate variables:

    Attribute

    Description

    wpar

    The name of the WPAR.

    host

    The name of the system where the WPAR is created.

    ip_info

    Replace this variable with the information to set the virtual IP address of the system to be the IP address of the WPAR. This value also defines the device name for the NIC associated with the IP address.

    If you do not specify the value of the interface or netmask, the global partition's values are used.

    Use the following format to replace ip_info:

    interface=interface netmask=netmask address=IPaddress

    For example: interface='en0' address='172.16.0.0' netmask='255.255.255.0'

    r_fs

    Replace this variable with the information to specify the NFS volume to use for the root private file system for the WPAR. For example:

    directory=/ vfs=nfs host=host123 dev=/root01

    v_fs

    Replace this variable with the information to specify the NFS volume to use for the /var private file system for the WPAR. For example:

    directory=/ var vfs=nfs host=host123 dev=/var01

    h_fs

    Replace this variable with the information to specify the NFS volume to use for the /home private file system for the WPAR. For example:

    directory=/home vfs=nfs host=host123 dev=/home01

    t_fs

    Replace this variable with the information to specify the NFS volume to use for the root private file system for the WPAR. For example:

    directory=/tmp vfs=nfs host=host123 dev=/tmp01

    wroot

    Replace this variable with the location of the WPAR root directory, for example, /wpars.

  3. Use the lswpar command to display information about the WPAR's properties and their values.

  4. On the system where you created the WPAR, run the command:

    mkwpar -w -o config_file_name -e wparname_just_created

  5. On all the other systems copy the configuration file, run the command:

    mkwpar -p -f config_file_name -n wparname_just_created

  6. List the WPAR.

  7. Start the WPAR.

  8. On one system, mount the shared file system containing the application data.

  9. Make sure the WPAR created from the first system is in the D state on all other systems in the service group's System List.