AIX migratepv 命令

migratepv Command

Last Updated: 2023-03-24

Purpose

Moves allocated physical partitions from one physical volume to one or more other physical volumes.

Syntax

migratepv [  -i ] [  -l LogicalVolume ] SourcePhysicalVolume DestinationPhysicalVolume...

Description

The migratepv command moves allocated physical partitions and the data they contain from the SourcePhysicalVolume to one or more other physical volumes. To limit the transfer to specific physical volumes, use the names of one or more physical volumes in the DestinationPhysicalVolume parameter; otherwise, all the physical volumes in the volume group are available for the transfer. All physical volumes must be within the same volume group. The specified source physical volume cannot be included in the list of DestinationPhysicalVolume parameters.Note:

  1. To use this command, you must either have root user authority or be a member of the system group.
  2. The migratepv command is not allowed on a snapshot volume group or a volume group that has a snapshot volume group.
  3. Running this command on a physical volume that has an active, firmware-assisted, dump logical volume temporarily changes the location of the dump device to /dev/sysdumpnull. After you have successfully migrated the logical volume, this command calls the following command to set the firmware-assisted, dump logical volume to the original logical volume.
    sysdumpdev -P

The allocation of the new physical partitions follows the policies defined for the logical volumes that contain the physical partitions being moved.

When you migrate a physical volume, the boot logical volume must remain intact. Two contiguous physical partitions and the new boot image must be built on the new boot logical volume.

If you specify a logical volume that contains the boot image, the migratepv -l command attempts to find enough contiguous partitions on one of the target physical volumes. If the migration is successful, the migratepv command prints a message that recommends the user run the bosboot command to indicate a change in the boot device. The attempted migration fails if the migratepv -l command is unable to find enough contiguous space to satisfy the request.

Note: All Logical Volume Manager migrate functions work by creating a mirror of the logical volumes involved, then resynchronizing the logical volumes. The original logical volume is then removed. If the migratepv command is used to move a logical volume containing the primary dump device, the system will not have an accessible primary dump device during the execution of the command. Therefore, a dump taken during this execution may fail. To avoid this, reassign the primary dump device using the sysdumpdev command or ensure there is a secondary dump device defined before using migratepv.

You can use the System Management Interface Tool (SMIT) smit migratepv fast path to run this command.

Flags

Item

Description

-iReads the DestinationPhysicalVolume parameter from standard input.
-l LogicalVolumeMoves only the physical partitions allocated to the specified logical volume and located on the specified source physical volume.

Examples

  1. To move physical partitions from hdisk1 to hdisk6 and hdisk7, enter:
    migratepv hdisk1 hdisk6 hdisk7
    Physical partitions are moved from one physical volume to two others within the same volume group.
  2. To move physical partitions in logical volume lv02 from hdisk1 to hdisk6, enter:

    migratepv -l lv02 hdisk1 hdisk6

    Only those physical partitions contained in lv02 are moved from one physical volume to another.

Files

Item

Description

/usr/sbinDirectory where the migratepv command resides.
/tmpDirectory where the temporary files are stored while the command is running.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值