Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use the linux pvresize command to resize physical volumes in a volume group

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you the use of linux's pvresize command to adjust the size of a physical volume in a volume group, I believe that most people do not know much about it, so share this article for you to learn. I hope you will learn a lot after reading this article. Let's learn the methods together.

The pvresize command resizes the physical volumes in a volume group. The pvresize command resizes physical volumes that may already be in the volume group and assigns active logical volumes to them.

"for devices that have physical volumes, you must use the pvresize command to increase or decrease the size of the physical volumes correspondingly after expanding or before reducing their capacity." If the physical volume has been assigned a physical area that exceeds the new size boundary specified by the command, the pvresize command refuses to shrink the physical volume. If there is enough disk space, you can use the pvresize command to reassign the physical area to another volume group to resolve this problem.

If you run the pvresize command with no parameters, the physical volume is resized to the size reported by the operating system for the underlying partition.

Syntax format: pvresize [parameters] [physical volumes]

Common parameters:

Reference example

Resize the physical volume / dev/sda5 to disk:

[root@linuxcool ~] # pvresize / dev/sda5

Resize the physical volume / dev/sda5 to 40GB:

[root@linuxcool] # pvresize-- setphysicalvolumesize 40G / dev/sda5

Run the adjustment in test mode:

[root@linuxcool ~] # pvresize-t / dev/sda2 above are all the contents of resizing physical volumes in a volume group using linux's pvresize command. Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report