Sun Microsystems
Products & Services
 
Support & Training
 
 

Previous Previous     Contents     Index     Next Next

Increasing the Size of a Mirrored Data Partition on a Virtual Disk

This section describes how to increase the size of a mirrored data partition created by the Solaris Volume Manager. This mirrored partition is called a soft partition. Perform this procedure to facilitate backup or to increase the partition size available to services or applications.

ProcedureTo Increase the Size of a Mirrored Data Partition on a Virtual Disk

  1. Stop the cluster.

    For information, see To Shut Down a Cluster.

  2. Log in to a master-eligible node in single-user mode, as superuser:

    ok> boot -s

  3. Back up the partition by using a tool such as ufsdump.

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

  4. Mount the file system.

    For example, mount dsk/d20 on home2, as follows:

    # mount /dev/md/dsk/d20 /home2

  5. Add space to the virtual disk.

    For example, add 10 Gbytes to the d20 device:

    # metattach d20 10g

    For further information about virtual disks, see the Solaris Volume Manager Administration Guide.

  6. Grow the file system to its new size:

    # growfs -M /home2 /dev/md/rdsk/d20

  7. Verify that the bitmap partition is the correct size.

    1. Identify the name of the local bitmap partition associated with the chosen data partition.

      For information, see To Display the Configuration of a Disk Partition.

    2. Confirm that the bitmap partition is at least the following size:

      1 Kbyte + 4 Kbytes per Gbyte of data in the associated data partition

      If the bitmap partition is not big enough, increase the size of this partition as described in To Change the Size of a Disk Partition on a Master-Eligible Node.

  8. Reset the replication configuration:

    # /usr/opt/SUNWscm/sbin/dscfg -i

  9. Re-create an empty replicated configuration file by typing Y at this prompt:

    # (Type Y for YES) Y

    # /usr/opt/SUNWscm/sbin/dscfg -i -p /etc/opt/SUNWesm/pconfig

  10. Restore the backup of the disk using the ufsrestore command.

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

  11. Repeat Step 2 through Step 10 for the second master-eligible node.

  12. Reboot the master node:

    # init 6

  13. Reboot the vice-master node:

    # init 6

  14. Log in to the master node as superuser.

  15. Resynchronize the vice-master node with the master node:

    # nhcrfsadm -f all

    Do not perform a switchover before the resynchronization is complete.

  16. Verify that the vice-master node is synchronized with the master node.

    # /usr/opt/SUNWesm/sbin/scmadm -S -M

  17. Restart the diskless nodes or dataless nodes.

    For information, see To Restart a Node.

  18. Confirm that the nodes have the correct configuration.

    # nhadm check

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

Adding a Mirrored Data Partition to a Virtual Disk

This section describes how to add a mirrored data partition to your disk configuration. To configure a virtual disk on the master-eligible nodes, you must include Solaris Volume Manager or the Solstice DiskSuite™ in the initial cluster configuration. For information about configuring Solaris Volume Manager, see the Netra High Availability Suite Foundation Services 2.1 6/03 Custom Installation Guide.

ProcedureTo Add a Mirrored Data Partition to a Virtual Disk

  1. Stop the cluster.

    For information, see To Shut Down a Cluster.

  2. Log in to a master-eligible node in single-user mode, as superuser:

    ok> boot -s

  3. Create two virtual disk partitions: one data partition and one bitmap partition.

    For information, see the following documents:

    • For Solaris 8, "Creating DiskSuite Objects" in the Solstice DiskSuite 4.2 User's Guide

    • For Solaris 9, "Creating Soft Partitions" in the Solaris Volume Manager Administration Guide

  4. Format the disk to include the configuration information for the two new partitions.

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

  5. Ensure that the partition is replicated, by adding the RNFS.Slice parameter for the new soft partition to the nhfs.conf file.

    RNFS.Slice = slice-description

    For information, see the nhfs.conf(4) man page.

  6. Add the RNFS.Slice parameter for the new partitions to the nhfs.conf file.

    The RNFS.Slice parameter is used to replicate the partition.

  7. Repeat Step 2 through Step 6 for the second master-eligible node.

    The changes you make must be identical on both master-eligible nodes.

  8. Reboot all of the peer nodes.

    For information, see To Restart a Cluster.

  9. Verify that the vice-master node is synchronized with the master node:

    # /usr/opt/SUNWesm/sbin/scmadm -S -M

    If the vice-master node is not synchronized with the master node, resynchronize it:

    # nhcrfsadm -f all

  10. Confirm that the nodes have the correct configuration:

    # nhadm check

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

Previous Previous     Contents     Index     Next Next