Solaris Volume Manager Administration Guide

ProcedureHow to Create a RAID 0 (Stripe) Volume

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

  2. To create the stripe, 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
      -i interlace-value
      • 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.

      • -i interlace-value specifies the interlace width to use for the stripe.

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

Example 9–1 Creating a Stripe of Three Slices

# metainit d20 1 3 c0t1d0s2 c0t2d0s2 c0t3d0s2
d20: Concat/Stripe is setup

The stripe, d20, consists of a single stripe (the number 1) that is made of three slices (the number 3). Because no interlace value is specified, the stripe uses the default of 16 Kbytes. The system confirms that the volume has been set up.

Example 9–2 Creating a RAID 0 (Stripe) Volume of Two Slices With a 32–Kbyte Interlace Value

# metainit d10 1 2 c0t1d0s2 c0t2d0s2 -i 32k
d10: Concat/Stripe is setup

The stripe, d10, consists of a single stripe (the number 1) that is made of two slices (the number 2). The -i option sets the interlace value to 32 Kbytes. (The interlace value cannot be less than 8 Kbytes, nor greater than 100 Mbytes.) The system verifies that the volume has been set up.

See Also

To prepare the newly created stripe for a file system, see Chapter 16, Creating UFS, TMPFS, and LOFS File Systems (Tasks), in System Administration Guide: Devices and File Systems. An application, such as a database, that uses the raw device must have its own way of accessing the raw device.