Solaris Volume Manager Administration Guide

Example—Saving a Volume Configuration File from the metassist Command


# metassist create -s myset -f -r 2 -S 10mb -d > /tmp/metassist-volume-config.xml
 

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 (-d) specifies that the volume should not actually be created, but rather that a volume configuration file that could eventually 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-volume-config.xml shell script that can later be used to create the specified volume.