Sun Microsystems
Products & Services
 
Support & Training
 
 

Previous Previous     Contents     Index     Next Next

ProcedureTo Change the Size of a Disk Partition on a Master-Eligible Node

  1. Perform Step 1 through Step 5 of To Display the Configuration of a Disk Partition.

  2. Specify the physical partition you want to modify.

    Type the entry from the Part column that corresponds to this partition:

    partition> Part-entry

    Information about the partition that you have chosen is displayed in the console window. For example, partition 3 produces this output:

    Part      Tag    Flag     Cylinders         Size            Blocks
      3 unassigned    wm    2178 -  3629        2.00GB    (1452/0/0)   4194828

  3. When the format tool prompts you to change some of the parameters of the partition configuration, press Return to accept the existing configuration.

    Enter partition id tag[unassigned]: 
    Enter partition permission flags[wm]: 
    Enter new starting cyl[2178]: 

  4. Change the size of the partition:

    Enter partition size[4194828b, 1452c, 2048.26mb, 2.00gb]: new-partition-size

  5. Write the new partition layout to the disk:

    partition> label

  6. Confirm that you want to change the partition size:

    Ready to label disk, continue? y

  7. Verify that your modifications have been implemented:

    partition> print

  8. Quit the format utility:

    FORMAT MENU:
            disk       - select a disk
            type       - select (define) a disk type
            partition  - select (define) a partition table
            current    - describe the current disk
            format     - format and analyze the disk
            repair     - repair a defective sector
            label      - write label to the disk
            analyze    - surface analysis
            defect     - defect list management
            backup     - search for backup labels
            verify     - read and display labels
            save       - save new disk/partition definitions
            inquiry    - show vendor, product and revision
            volname    - set 8-character volume name
            !<cmd>     - execute <cmd>, then return
            quit

    format> quit

    You return to the console prompt, #.

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

This section describes how to increase the size of a mirrored data partition on a physical disk.

ProcedureTo Increase the Size of a Mirrored Data Partition on a Physical 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. Identify the name of the data partition that you want to modify.

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

  5. Change the size of the data partition.

    For information, see To Change the Size of a Disk Partition on a Master-Eligible Node.

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

  7. Restore the data on the partition using the ufsrestore command.

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

  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. Repeat Step 2 through Step 9 for the second master-eligible node.

  11. Reboot the original master node:

    # init 6

  12. Reboot the original vice-master node:

    # init 6

  13. Log in to the master node as superuser.

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

    # nhcrfsadm -f all

    Do not perform a switchover before the resynchronization is complete.

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

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

  16. Restart the diskless and dataless nodes.

    For information, see To Restart a Node.

  17. Verify that the nodes have the correct configuration:

    # nhadm check

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

Previous Previous     Contents     Index     Next Next