搜索

4.4.8. 增​​​​​​​大​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​

download PDF
要​​​​​​​增​​​​​​​大​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​的​​​​​​​大​​​​​​​小​​​​​​​,请​​​​​​​使​​​​​​​用​​​​​​​ lvextend 命​​​​​​​令​​​​​​​。​​​​​​​
在​​​​​​​扩​​​​​​​展​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​后​​​​​​​,您​​​​​​​将​​​​​​​需​​​​​​​要​​​​​​​增​​​​​​​大​​​​​​​相​​​​​​​关​​​​​​​的​​​​​​​文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​以​​​​​​​使​​​​​​​之​​​​​​​与​​​​​​​其​​​​​​​匹​​​​​​​配​​​​​​​。​​​​​​​
当​​​​​​​您​​​​​​​扩​​​​​​​展​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​时​​​​​​​,您​​​​​​​可​​​​​​​以​​​​​​​指​​​​​​​定​​​​​​​您​​​​​​​想​​​​​​​要​​​​​​​增​​​​​​​大​​​​​​​的​​​​​​​量​​​​​​​,或​​​​​​​者​​​​​​​在​​​​​​​您​​​​​​​扩​​​​​​​展​​​​​​​它​​​​​​​之​​​​​​​后​​​​​​​,它​​​​​​​应​​​​​​​该​​​​​​​是​​​​​​​多​​​​​​​大​​​​​​​。​​​​​​​
下​​​​​​​面​​​​​​​的​​​​​​​命​​​​​​​令​​​​​​​将​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​ /dev/myvg/homevol 增​​​​​​​大​​​​​​​到​​​​​​​ 12GB。​​​​​​​
# lvextend -L12G /dev/myvg/homevol 
lvextend -- extending logical volume "/dev/myvg/homevol" to 12 GB
lvextend -- doing automatic backup of volume group "myvg"
lvextend -- logical volume "/dev/myvg/homevol" successfully extended
下​​​​​​​面​​​​​​​的​​​​​​​命​​​​​​​令​​​​​​​为​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​ /dev/myvg/homevol 添​​​​​​​加​​​​​​​了​​​​​​​另​​​​​​​一​​​​​​​个​​​​​​​ GB。​​​​​​​
# lvextend -L+1G /dev/myvg/homevol
lvextend -- extending logical volume "/dev/myvg/homevol" to 13 GB
lvextend -- doing automatic backup of volume group "myvg"
lvextend -- logical volume "/dev/myvg/homevol" successfully extended
和​​​​​​​使​​​​​​​用​​​​​​​ lvcreate 命​​​​​​​令​​​​​​​一​​​​​​​样​​​​​​​,您​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​ lvextend 命​​​​​​​令​​​​​​​的​​​​​​​ -l 参​​​​​​​数​​​​​​​指​​​​​​​定​​​​​​​扩​​​​​​​展​​​​​​​的​​​​​​​数​​​​​​​目​​​​​​​,并​​​​​​​据​​​​​​​此​​​​​​​增​​​​​​​加​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​的​​​​​​​大​​​​​​​小​​​​​​​。​​​​​​​您​​​​​​​还​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​此​​​​​​​参​​​​​​​数​​​​​​​指​​​​​​​定​​​​​​​卷​​​​​​​组​​​​​​​的​​​​​​​比​​​​​​​例​​​​​​​或​​​​​​​者​​​​​​​卷​​​​​​​组​​​​​​​中​​​​​​​剩​​​​​​​余​​​​​​​空​​​​​​​间​​​​​​​的​​​​​​​比​​​​​​​例​​​​​​​。​​​​​​​下​​​​​​​面​​​​​​​的​​​​​​​命​​​​​​​令​​​​​​​扩​​​​​​​展​​​​​​​了​​​​​​​名​​​​​​​为​​​​​​​ testlv 的​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​,并​​​​​​​使​​​​​​​其​​​​​​​使​​​​​​​用​​​​​​​卷​​​​​​​组​​​​​​​ myvg 所​​​​​​​有​​​​​​​未​​​​​​​被​​​​​​​分​​​​​​​配​​​​​​​的​​​​​​​空​​​​​​​间​​​​​​​。​​​​​​​
[root@tng3-1 ~]# lvextend -l +100%FREE /dev/myvg/testlv
  Extending logical volume testlv to 68.59 GB
  Logical volume testlv successfully resized
在​​​​​​​您​​​​​​​扩​​​​​​​展​​​​​​​完​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​后​​​​​​​,有​​​​​​​必​​​​​​​要​​​​​​​增​​​​​​​大​​​​​​​文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​的​​​​​​​大​​​​​​​小​​​​​​​与​​​​​​​之​​​​​​​进​​​​​​​行​​​​​​​匹​​​​​​​配​​​​​​​。​​​​​​​
在​​​​​​​默​​​​​​​认​​​​​​​情​​​​​​​况​​​​​​​下​​​​​​​,大​​​​​​​多​​​​​​​数​​​​​​​重​​​​​​​新​​​​​​​定​​​​​​​义​​​​​​​文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​大​​​​​​​小​​​​​​​的​​​​​​​工​​​​​​​具​​​​​​​都​​​​​​​会​​​​​​​将​​​​​​​文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​的​​​​​​​大​​​​​​​小​​​​​​​增​​​​​​​加​​​​​​​到​​​​​​​基​​​​​​​本​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​的​​​​​​​大​​​​​​​小​​​​​​​,这​​​​​​​样​​​​​​​您​​​​​​​就​​​​​​​不​​​​​​​必​​​​​​​担​​​​​​​心​​​​​​​为​​​​​​​两​​​​​​​个​​​​​​​命​​​​​​​令​​​​​​​指​​​​​​​定​​​​​​​相​​​​​​​同​​​​​​​的​​​​​​​容​​​​​​​量​​​​​​​了​​​​​​​。​​​​​​​
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.