5.6. 在线数据重定位


您可以使用 pvmove 命令在系统还在使用时移动数据。
pvmove 命令将数据分成片段,并生成临时镜像来移动每个片段。有关 pvmove 命令操作的详细内容请参考 pvmove(8) man page。

注意

In order to perform a pvmove operation in a cluster, you should ensure that the cmirror package is installed and the cmirrord service is running.
下面的命令将物理卷 /dev/sdc1 中所有分配了的空间都移动到卷组中其它可用物理卷中:
# pvmove /dev/sdc1
Copy to Clipboard Toggle word wrap
The following command moves just the extents of the logical volume MyLV.
# pvmove -n MyLV /dev/sdc1
Copy to Clipboard Toggle word wrap
Since the pvmove command can take a long time to execute, you may want to run the command in the background to avoid display of progress updates in the foreground. The following command moves all extents allocated to the physical volume /dev/sdc1 over to /dev/sdf1 in the background.
# pvmove -b /dev/sdc1 /dev/sdf1
Copy to Clipboard Toggle word wrap
下面的命令以 5 秒为间隔,以百分比形式报告移动的过程。
# pvmove -i5 /dev/sdd1
Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat