This content is submitted by a BigAdmin user. It has not been reviewed for technical accuracy by Sun Microsystems, though it may have been lightly edited to improve readability. If you find an error or would like to comment on the article, please contact the submitter or use the comment field at the bottom of the article.
Community submissions may not follow Sun trademark guidelines. For information on Sun trademarks, please see http://www.sun.com/suntrademarks/.
Adding Disk Space to an Existing Diskset (With Solaris 9 OS)
Karan Grover, January 2008
The following procedure provides steps for adding a LUN to an existing diskset in a cluster environment
and then growing the logical volume.
This procedure was done using the Solaris 9 Operating System with a generic patch revision level of 117171-02 and Sun Cluster 3.1 software.
Caution: If you plan to use this procedure in a live cluster database environment, before you perform the procedure,
make a complete backup of the file system in which you will implement the change.
1. Capture the output of the format command before adding the LUN.
2. Make the LUN visible to the server by running devfsadm -v on all cluster nodes.
3. Capture the output of the format command after adding the LUN.
4. Compare and format outputs to identify the new LUN.
5. On all the cluster nodes, run the scgdevs command to make the LUN visible to the global configuration for
the cluster.
6. Run the following command to get the LUN name with the metadevice name of the new LUN:
#scdidadm -L |grep LUN
7. Run the format command, select label, and label the new LUN
using the information you obtained in the previous step.
8. Run the following command to add the disk to the current device set and make the change visible on all nodes:
#metaset -s <setname> -a <diskname> -h <hostnames>
9. On all nodes, run the metaset command to confirm that the new disk has been added.
10. Run the following command to attach the LUN to the block device:
#metattach -s <setname> <disk number on which the file
system is mounted> <slice that has the free space>
11. Run the following command to grow the logical file system without destroying its contents:
#growfs -M /<fsname> /rdisk <name>
Important Note: Stop all database or application writes to the affected file system before issuing the growfs command. The growfs command issues a momentary lockfs while it is expanding the file system. Database or application writes will be blocked during that brief time. Any DB or app that is especially busy may stop working if it is sensitive to such a stoppage.
Note: In the /etc/vfstab file, you can find the name of the
raw disk device that is associated with the logical disk partition you are growing.
The information and links on this page have been provided by a BigAdmin user. The submitter is solely responsible for such information and links. Sun is not responsible for the availability of external sites or resources, and does not endorse and is not responsible or liable for any content, advertising, products, or other materials on or available from such sites or resources. Sun will not be responsible or liable, directly or indirectly, for any actual or alleged damage or loss caused by or in connection with use of or reliance on the information posted here, or goods or services available on or through any external site or resource.
Comments (latest comments first)
Discuss and comment on this resource in the BigAdmin Wiki
Unless otherwise licensed, code in all technical manuals herein (including articles, FAQs, samples) is provided under this License.