Solaris Volume Manager Administration Guide

Example—Saving a Command File (Shell Script) from the metassist Command


# metassist create -s myset -f -r 2 -S 10mb -c > \
 /tmp/metassist-shell-script.sh
 

This example shows how to use the metassist command to create a two-way mirror, 10Mb in size, with a hot spare to provide additional fault tolerance (the -f option specifies fault tolerance). The final argument (-c) specifies that the volume should not actually be created, but rather that a shell script that could be used to create the specified configuration should be sent to standard output. The end of the command redirects standard output to create the /tmp/metassist-shell-script.sh shell script that can later be used to create the specified volume.