Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
  Previous   Contents   Next 
   
 
Chapter 8

RAID 0 (Stripe and Concatenation) Volumes (Tasks)

This chapter contains information about tasks related to RAID 0 volumes. For information about related concepts, see Chapter 7, RAID 0 (Stripe and Concatenation) Volumes (Overview).

RAID 0 Volumes (Task Map)

The following task map identifies the procedures needed to manage Solaris Volume Manager RAID 0 volumes.

Task

Description

Instructions

Create RAID 0 (stripe) volumes

Use the metainit command to create a new volume. "How to Create a RAID 0 (Stripe) Volume"

Create RAID 0 (concatenation) volumes

Use the metainit command to create a new volume.

"How to Create a RAID 0 (Concatenation) Volume"

Expand storage space

Use the metainit command to expand an existing file system. "How to Expand Space for Existing Data"

Expand an existing volume

Use the metattach command to expand an existing volume.

"How to Expand an Existing RAID 0 Volume"

Remove a RAID 0 volume

Use the metaclear command to delete a volume.

"How to Remove a Volume"

Creating RAID 0 (Stripe) Volumes


Caution - Do not create a stripe from an existing file system or data. Doing so will destroy data. To create a stripe from existing data, you must dump and restore the data to the volume.


How to Create a RAID 0 (Stripe) Volume

  1. Check "Prerequisites for Creating Solaris Volume Manager Elements" 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.

      • -iwidth specifies the interlace width to use for the stripe.

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

Example--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--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.

Where to Go From Here

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

Creating RAID 0 (Concatenation) Volumes

How to Create a RAID 0 (Concatenation) Volume

  1. Check "Prerequisites for Creating Solaris Volume Manager Elements" 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--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.


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


Example--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.

Where to Go From Here

To prepare the newly created concatenation for a file system, see "Creating File Systems (Tasks)" in System Administration Guide: Basic Administration.

Expanding Storage Space

To add space to a file system, create a concatenation. To add space to an existing stripe, create a concatenated stripe.

How to Expand Space for Existing Data

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

  2. Unmount the file system.

    # umount /filesystem
  3. To create a 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.

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

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

  4. Edit the /etc/vfstab file so that the file system references the name of the concatenation.

  5. Remount the file system.

    # mount /filesystem
 
 
 
  Previous   Contents   Next