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

| Previous Contents Index Next
2. Chapter 8 # Modifying and Adding Disk Partitions This chapter describes how to examine or modify the configuration of a disk partition on the master-eligible nodes. Master-eligible nodes can have more than one disk. The disk partitions discussed in this chapter pertain to the disk that contains the cluster configuration. For more information about disk partitioning, see "Volume Management" in the Netra High Availability Suite Foundation Services 2.1 6/03 Overview. The disk on a dataless node is not used to store cluster data and is not discussed in this chapter. For information about the initial disk configuration of a dataless node, see the Netra High Availability Suite Foundation Services 2.1 6/03 Custom Installation Guide. This chapter contains the following sections: Using the `format` Utility to Display and Modify the Configuration of a Disk Partition Increasing the Size of a Mirrored Data Partition on a Physical Disk Increasing the Size of a Mirrored Data Partition on a Virtual Disk Adding a Mirrored Data Partition to a Virtual Disk ## Using the `format` Utility to Display and Modify the Configuration of a Disk Partition This section describes how to use the `format` utility to display and modify the configuration of a disk partition. For additional information, see the `format`(1M) man page. Before you change the configuration of a disk partition, you must stop all the nodes in the cluster. If you change the size of a data partition on one master-eligible node, you must change the size of the corresponding bitmap partition on that disk. You must also change the size of the corresponding data partition and bitmap partition on the other master-eligible node. ### To Display the Configuration of a Disk Partition Use this procedure to identify the name of each partition on a disk and to determine whether a disk partition is big enough. Log in to a master-eligible node as superuser. Run the format utility:
       # format
   Output similar to this is displayed in the console window:
       Searching for disks...done

       AVAILABLE DISK SELECTIONS:
              0. c0t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
                 /pci@1f,0/pci@1,1/scsi@2/sd@0,0
       Specify disk (enter its number):
3. Choose the disk you want to examine:
       Specify disk (enter its number): 0
   Output similar to this is displayed in the console window:
       selecting c0t0d0
       [disk formatted]
       Warning: Current Disk has mounted partitions.

       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
4. Choose the partition option:
       format> partition
   Output similar to this is displayed in the console window:
       PARTITION MENU:
               0      - change `0' partition
               1      - change `1' partition
               2      - change `2' partition
               3      - change `3' partition
               4      - change `4' partition
               5      - change `5' partition
               6      - change `6' partition
               7      - change `7' partition
               select - select a predefined table
               modify - modify a predefined partition table
               name   - name the current table
               print  - display the current table
               label  - write partition map and label to the disk
               !<cmd> - execute <cmd>, then return
               quit
5. Display the configuration of the current disk partitions:
       partition> print
   Output similar to this is displayed in the console window:
       Current partition table (original):
       Total disk cylinders available: 24620 + 2 (reserved cylinders)

       Part      Tag    Flag     Cylinders         Size            Blocks
         0       root    wm       0 -  1451        2.00GB    (1452/0/0)   4194828
         1       swap    wu    1452 -  2177        1.00GB    (726/0/0)    2097414
         2     backup    wm       0 - 24619       33.92GB    (24620/0/0) 71127180
         3 unassigned    wm    2178 -  3629        2.00GB    (1452/0/0)   4194828
         4 unassigned    wm    3630 -  3771      200.31MB    (142/0/0)     410238
         5 unassigned    wm    3772 -  3772        1.41MB    (1/0/0)         2889
         6 unassigned    wm    3773 -  3773        1.41MB    (1/0/0)         2889
         7 unassigned    wm       0                0         (0/0/0)            0
6. Quit if you do not want to modify the size of a partition:
       partition> quit
   This output is displayed in the console window:
       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, `#`.
Previous Contents Index Next

Copyright 1994-2004 Sun Microsystems