Using a VxFS file system within a single system WPAR

The following procedure describes how to set up a WPAR with VxFS for non-root partition.

To set up WPAR with VxFS for non-root partition

  1. Create a vxfs filesystem in the global environment:
    # /opt/VRTS/bin/mkfs -V vxfs /dev/vx/rdsk/testvg/vol1
  2. Create a WPAR. For example, use the following command.
    # mkwpar -n wpar1

    For other options while creating WPARs, refer to the IBM Redbook for WPAR.

  3. List the WPAR.
    # lswpar 		
    Name             State Type Hostname         Directory             							
    --------------------------------------------------------------------
    wpar1 D     S    wpar1 /wpars/wpar1
  4. The above output shows that WPAR does not have the devices. To get the vxfs file system in WPAR, create the file system in the global environment. Then mount it to the WPAR directories which are located at /wpar/wparname/
    # mkdir /wpars/wpar1/vxfs_dir
    # mount -V vxfs /dev/vx/dsk/testdg/vol1 \
    /wpars/wpar1/vxfs_dir
  5. Start the WPAR:
    # startwpar -Dv wpar1 2>/startwpar_tl2
  6. Log in to the WPAR.
    # clogin hostname

    For example, to log in to the WPAR wpar1:

    # clogin wpar1
  7. The following output shows the VxFS mount point in the WPAR.
    # mount
    node 		mounted mounted over vfs 	  date 		      options
    ------	------- ------------ ----   ------------ -------------
           Global 	/ 		         jfs2   Jun 23 03:15 rw,log=INLINE
    	     	Global	 /home 	      jfs2   Jun 23 03:15 rw,log=INLINE
           Global 	/opt 		      namefs Jun 23 03:15 ro
           Global 	/proc 	      namefs Jun 23 03:15 rw
    		     Global	 /tmp 		      jfs2 		Jun 23 03:15 rw,log=INLINE
           Global 	/usr 		      namefs	Jun 23 03:15 ro
           Global 	/var 		      jfs2 		Jun 23 03:15 rw,log=INLINE
           Global 	/vxfs_dir 	  vxfs 		Jun 23 03:14 rw,delaylog,
                            suid,ioerror=mwdisable,qio,largefiles
  8. To stop the WPAR, use the following command:
    # stopwpar -Dv wpar1 2>/wpar1_tl2