Solaris Volume Manager Administration Guide

ProcedureTo Create a Command File with the metassist Command

Steps
  1. Make sure that you have the necessary prerequisites for using top down volume creation (the metassist command).

  2. Identify available storage on which to create the volume.

  3. Use the following form of the metassist command to create a stripe and specify that the volume should not actually be created, but that a command sequence (shell script) to create the volumes should be sent to standard output:


    metassist create -s diskset-name-S size -c
    
    • create is the subcommand to create volumes.

    • -s diskset-name specifies the name of the disk set to use for the volumes.

    • -S size specifies the size of the volume to create in KB, MB, GB, or TB, for kilobytes, megabytes, gigabytes, and terabytes, respectively.

    • -c specifies that the volume should not actually be created. Instead, a shell script that can be used to create the specified configuration will be sent to standard output.

    See the following examples and the metassist(1M) man page for more information.

    Note that the shell script required by the -c argument will be sent to standard output, while the rest of the output from the metassist command goes to standard error, so you can redirect the output streams as you choose.