![]() |
![]() |
| |||||||
|
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.
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.
|
# metattach d2 c1t2d0s2 d2: components are attached |
This example illustrates how to attach a slice to an existing stripe, d2. The system confirms that the slice is attached.
# metattach d25 c1t2d0s2 c1t2d1s2 c1t2d3s2 d25: components are attached |
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.
For 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.
How to Remove a VolumeMake sure you have a current backup of all data and that you have root privilege.
Make sure you no longer need the volume.
If you delete a stripe or concatenation and reuse the slices that were part of the deleted volume, all data on the volume is gone from the system.
Unmount the file system, if needed.
# umount /filesystem |
To remove a volume, use one of the following methods:
From the Enhanced Storage tool within the Solaris Management Console, open the Volumes node. Choose Edit->Delete, then follow the instructions. For more information, see the online help.
Use the following format of the metaclear command to delete the volume:
metaclear {volume-name}See the following example and the metaclear(1M) man page for more information.
# umount d8 # metaclear d8 d8: Concat/Stripe is cleared (Edit the /etc/vfstab file) |
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.
Previous Contents Index Next ![]() |