Solaris Volume Manager Administration Guide

ProcedureHow to Create a RAID 0 (Concatenation) Volume


Caution – Caution –

Do not create volumes larger than 1TB if you expect to run the Solaris software with a 32–bit kernel or if you expect to use a version of the Solaris OS prior to Solaris 9 4/03. See Overview of Large Volume Support in Solaris Volume Manager for more information about large volume support in Solaris Volume Manager.


Steps
  1. Check Prerequisites for Creating Solaris Volume Manager Components and Background Information for Creating RAID 0 Volumes.

  2. To create the concatenation use one of the following methods:

    • From the Enhanced Storage tool within the Solaris Management Console, open the Volumes node. Choose Action->Create Volume, then follow the instructions in the wizard. For more information, see the online help.

    • Use the following form of the metainit command:


      metainit volume-name number-of-stripes components-per-stripe component-names
      
      • volume-name is the name of the volume to create.

      • number-of-stripes specifies the number of stripes to create.

      • components-per-stripe specifies the number of components each stripe should have.

      • component-names specifies the names of the components that will be used.

      For more information, see the following examples and the metainit(1M) man page.


Example 9–3 Creating a Concatenation of One Slice


# metainit d25 1 1 c0t1d0s2
d25: Concat/Stripe is setup

This example shows the creation of a concatenation, d25, that consists of one stripe (the first number 1) made of a single slice (the second number 1 in front of the slice). The system verifies that the volume has been set up.

This example shows a concatenation that can safely encapsulate existing data.



Example 9–4 Creating a Concatenation of Four Slices


# metainit d40 4 1 c0t1d0s2 1 c0t2d0s2 1 c0t2d0s3 1 c0t2d1s3
d40: Concat/Stripe is setup

This example creates a concatenation called d40 that consists of four “stripes” (the number 4), each made of a single slice (the number 1 in front of each slice). The system verifies that the volume has been set up.


See Also

To prepare the newly created concatenation for a file system, see Chapter 16, Creating UFS, TMPFS, and LOFS File Systems (Tasks), in System Administration Guide: Devices and File Systems.