replphyvol command
Purpose
Replaces a physical volume in a volume group with another physical volume.
Syntax
replphyvol [-force ] {SourcePhysicalVolume | SourcePhysicalVolumeID} {DestinationPhysicalVolume | DestinationPhysicalVolumeID}
replphyvol [-recover dir_name ] [ DestinationPhysicalVolumeName ]
Description
The replphyvol command
replaces allocated physical partitions and the data they contain from
the SourcePhysicalVolume to DestinationPhysicalVolume.
The specified source physical volume cannot be the same as DestinationPhysicalVolume.
Note:
- The DestinationPhysicalVolume size must be at least the size of the SourcePhysicalVolume.
- The replphyvol command cannot replace a SourcePhysicalVolume with stale logical volume unless this logical volume has a non-stale mirror.
- The replphyvol command is not allowed on a snapshot volume group or a volume group that has a snapshot volume group. The allocation of the new physical partitions follows the policies defined for the logical volumes that contain the physical partitions being replaced.
- The DestinationPhysicalVolume cannot be a physical volume that is assigned to a shared memory pool (to be used as a paging space device by a shared memory partition).
The allocation of the new physical partitions follows the policies defined for the logical volumes that contain the physical partitions being replaced.
Flags
Flag name | Description |
---|---|
DestinationPhysicalVolume | Specifies the destination physical volume name. |
DestinationPhysicalVolumeID | Specifies the destination physical volume ID. |
-force | Runs the command without prompting the user to continue. |
-recover dir_name | Recovers replphyvol if it is interrupted by ctrl -c, a system crash, or a loss of quorum. When you use the -recover flag, you must specify the directory name given during the initial run of the replphyvol command. This flag is also used to change the destination physical volume name. |
SourcePhysicalVolume | Specifies the source physical volume name. |
SourcePhysicalVolumeID | Specifies the source physical volume ID. |
Exit Status
Examples
To
create a boot list of logical devices to be used in the next normal
boot, type the following command:
replphyvol -force hdisk0 hdisk4