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.
- To list the volume group associated with the disk you want
to remove, type:
smit lspvYour 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..90The name of the volume group is listed in the VOLUME GROUP field. In this example, the volume group is
- To verify that the disk is in a separate non-rootvg volume
smit lsvgThen 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: noIn 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.
- To unmount any file systems on the logical volumes on the
- To deactivate the volume group, type:
- To export the volume group, type:
- To remove the disk, type:
- Look at the LED display for the disk you want to remove. Ensure the yellow LED is off (not lit).
- 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.