Removing a disk with data

Use this procedure to remove a disk that contains data without turning the system off.

The disk you are removing must be in a separate non-rootvg volume group. Use this procedure when you want to move a disk to another system.

  1. To list the volume group associated with the disk you want to remove, type:
    smit lspv
    Your output looks similar to the following:
    PHYSICAL VOLUME:    hdisk2                   VOLUME GROUP:     imagesvg         
    PV IDENTIFIER:      00083772caa7896e VG IDENTIFIER     0004234500004c00000000e9b5cac262                                                                         
    PV STATE:           active                                                      
    STALE PARTITIONS:   0                        ALLOCATABLE:      yes              
    PP SIZE:            16 megabyte(s)           LOGICAL VOLUMES:  5                
    TOTAL PPs:          542 (8672 megabytes)     VG DESCRIPTORS:   2                
    FREE PPs:           19 (304 megabytes)       HOT SPARE:        no               
    USED PPs:           523 (8368 megabytes)                                        
    FREE DISTRIBUTION:  00..00..00..00..19                                          
    USED DISTRIBUTION:  109..108..108..108..90                                      
    The name of the volume group is listed in the VOLUME GROUP field. In this example, the volume group is imagesvg.
  2. To verify that the disk is in a separate non-rootvg volume group, type:
    smit lsvg
    Then select the volume group associated with your disk (in this example, imagesvg). Your output looks similar to the following:
    VOLUME GROUP:   imagesvg                 VG IDENTIFIER:  0004234500004c00000000e9b5cac262                                                                       
    VG STATE:       active                   PP SIZE:        16 megabyte(s)         
    VG PERMISSION:  read/write               TOTAL PPs:      542 (8672 megabytes)   
    MAX LVs:        256                      FREE PPs:       19 (304 megabytes)     
    LVs:            5                        USED PPs:       523 (8368 megabytes)   
    OPEN LVs:       4                        QUORUM:         2                      
    TOTAL PVs:      1                        VG DESCRIPTORS: 2                      
    STALE PVs:      0                        STALE PPs:      0                      
    ACTIVE PVs:     1                        AUTO ON:        yes                    
    MAX PPs per PV: 1016                     MAX PVs:        32                     
    LTG size:       128 kilobyte(s)          AUTO SYNC:      no                     
    HOT SPARE:      no                                                              
    In this example, the TOTAL PVs field indicates there is only one physical volume associated with imagesvg. Because all data in this volume group is contained on hdisk2, hdisk2 can be removed using this procedure.
  3. To unmount any file systems on the logical volumes on the disk, type:
    smit umountfs
  4. To deactivate the volume group, type:
    smit varyoffvg
  5. To export the volume group, type:
    smit exportvg
  6. To remove the disk, type:
    smit rmvdsk
  7. Look at the LED display for the disk you want to remove. Ensure the yellow LED is off (not lit).
  8. Physically remove the disk. For more information about the removal procedure, see the service guide for your machine.

At this point, the disk is physically and logically removed from your system. If you are permanently removing this disk, this procedure is completed.