搜索

4.3.6. 从​​​​​​​卷​​​​​​​组​​​​​​​中​​​​​​​删​​​​​​​除​​​​​​​物​​​​​​​理​​​​​​​卷​​​​​​​

download PDF
To remove unused physical volumes from a volume group, use the vgreduce command. The vgreduce command shrinks a volume group's capacity by removing one or more empty physical volumes. This frees those physical volumes to be used in different volume groups or to be removed from the system.
在​​​​​​​您​​​​​​​从​​​​​​​卷​​​​​​​组​​​​​​​中​​​​​​​删​​​​​​​除​​​​​​​物​​​​​​​理​​​​​​​卷​​​​​​​之​​​​​​​前​​​​​​​,您​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​ pvdisplay 命​​​​​​​令​​​​​​​确​​​​​​​定​​​​​​​物​​​​​​​理​​​​​​​卷​​​​​​​没​​​​​​​有​​​​​​​被​​​​​​​任​​​​​​​何​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​使​​​​​​​用​​​​​​​。​​​​​​​
# pvdisplay /dev/hda1

-- Physical volume ---
PV Name               /dev/hda1
VG Name               myvg
PV Size               1.95 GB / NOT usable 4 MB [LVM: 122 KB]
PV#                   1
PV Status             available
Allocatable           yes (but full)
Cur LV                1
PE Size (KByte)       4096
Total PE              499
Free PE               0
Allocated PE          499
PV UUID               Sd44tK-9IRw-SrMC-MOkn-76iP-iftz-OVSen7
如​​​​​​​果​​​​​​​物​​​​​​​理​​​​​​​卷​​​​​​​仍​​​​​​​然​​​​​​​在​​​​​​​使​​​​​​​用​​​​​​​,您​​​​​​​可​​​​​​​能​​​​​​​必​​​​​​​须​​​​​​​使​​​​​​​用​​​​​​​ pvmove 命​​​​​​​令​​​​​​​将​​​​​​​数​​​​​​​据​​​​​​​迁​​​​​​​移​​​​​​​到​​​​​​​另​​​​​​​一​​​​​​​个​​​​​​​物​​​​​​​理​​​​​​​卷​​​​​​​。​​​​​​​然​​​​​​​后​​​​​​​使​​​​​​​用​​​​​​​ vgreduce 命​​​​​​​令​​​​​​​删​​​​​​​除​​​​​​​该​​​​​​​物​​​​​​​理​​​​​​​卷​​​​​​​:
以​​​​​​​下​​​​​​​命​​​​​​​令​​​​​​​可​​​​​​​从​​​​​​​卷​​​​​​​组​​​​​​​ my_volume_group 中​​​​​​​删​​​​​​​除​​​​​​​物​​​​​​​理​​​​​​​卷​​​​​​​ /dev/hda1。​​​​​​​
# vgreduce my_volume_group /dev/hda1
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.