Contenues dansTrouver plus de documentationRessources d'assistance comprises | Télécharger cet ouvrage au format PDF (1051 Ko)
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.
Creating RAID 0 (Stripe) VolumesDo 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
Example—Creating a Stripe of Three Slices
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
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 HereTo 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) VolumesHow to Create a RAID 0 (Concatenation) Volume
Example—Creating a Concatenation of One Slice
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
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 HereTo prepare the newly created concatenation for a file system, see “Creating File Systems (Tasks)” in System Administration Guide: Basic Administration. Expanding Storage SpaceTo 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
Example—Expanding a File System By Creating a Concatenation
This example shows the creation of a concatenation called d25 out of two slices, /dev/dsk/c0t1d0s2 (which contains a file system mounted on /docs) and /dev/dsk/c0t2d0s2. The file system must first be unmounted. The first slice in the metainit command must be the slice that contains the file system. If not, you will corrupt your data. Next, the entry for the file system in the /etc/vfstab file is changed (or entered for the first time) to reference the concatenation. For example, the following line:
should be changed to:
Finally, the file system is remounted. Where to Go From HereFor a UFS file system, run the growfs command on the concatenation. See How to Grow a File System. An application, such as a database, that uses the raw concatenation must have its own way of recognizing the concatenation, or of growing the added space. How to Expand an Existing RAID 0 VolumeA concatenated stripe enables you to expand an existing stripe. For example, if a stripe has run out of space, you can make it into a concatenated stripe, and expand it without having to back up and restore data. This procedure assumes that you are adding an additional stripe to an existing stripe.
Example—Creating a Concatenated Stripe By Attaching a Single Slice
This example illustrates how to attach a slice to an existing stripe, d2. The system confirms that the slice is attached. Example—Creating a Concatenated Stripe By Adding Several Slices
This example takes an existing three-way stripe, d25, and concatenates another three-way stripe. Because no interlace value is given for the attached slices, they inherit the interlace value configured for d25. The system verifies that the volume has been set up. Where To Go From HereFor a UFS, run the growfs command on the volume. See How to Grow a File System. An application, such as a database, that uses the raw volume must have its own way of recognizing the volume, or of growing the added space. To prepare a newly created concatenated stripe for a file system, see “Creating File Systems (Tasks)” in System Administration Guide: Basic Administration. Removing a VolumeHow to Remove a Volume
Example—Removing a Concatenation
This example illustrated clearing the concatenation d8 that also contains a mounted file system. The file system must be unmounted before the volume can be cleared. The system displays a confirmation message that the concatenation is cleared. If there is an entry in the /etc/vfstab file for this volume, delete that entry. You do not want to confuse the system by asking it to mount a file system on a nonexistent volume. |
|||||||||||||||||||||||||||||||