sun.com | docs.sun.com | How To Buy | My Sun | Worldwide Sites |  |

| Previous Contents Index Next
2. ### To Change the Size of a Disk Partition on a Master-Eligible Node Perform Step 1 through Step 5 of To Display the Configuration of a Disk Partition. 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
2. 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. ### To Increase the Size of a Mirrored Data Partition on a Physical Disk Stop the cluster. For information, see To Shut Down a Cluster. Log in to a master-eligible node in single-user mode, as superuser:
       ok> boot -s
8. Back up the partition by using a tool such as `ufsdump`. For information, see the `ufsdump`(1M) man page. Identify the name of the data partition that you want to modify. For information, see To Display the Configuration of a Disk Partition. Change the size of the data partition. For information, see To Change the Size of a Disk Partition on a Master-Eligible Node. Verify that the bitmap partition is the correct size. 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. 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. Restore the data on the partition using the `ufsrestore` command. For information, see the `ufsrestore`(1M) man page. 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
11. Repeat Step 2 through Step 9 for the second master-eligible node. Reboot the original master node:
        # init 6
12. Reboot the original vice-master node:
        # init 6
14. Log in to the master node as superuser. Resynchronize the vice-master node with the master node:
        # nhcrfsadm -f all
15. Do not perform a switchover before the resynchronization is complete. Verify that the vice-master node is synchronized with the master node:
        # /usr/opt/SUNWesm/sbin/scmadm -S -M
17. Restart the diskless and dataless nodes. For information, see To Restart a Node. Verify that the nodes have the correct configuration:
        # nhadm check
For information, see the `nhadm`(1M) man page.
Previous Contents Index Next

Copyright 1994-2004 Sun Microsystems