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 lvs command of linux to report information about logical volumes

2025-04-03 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 lvs command to report information about logic volumes. I hope you will learn a lot after reading this article. Let's discuss it together.

The purpose of the lvs command is to report information about logical volumes.

A logical volume is built on top of a volume group, which is a piece of space "cut" from the volume group. It is a logical device used by the end user.

Logical volumes compared to physical volumes: multiple physical volumes can be merged into a single logical volume, so that the capacity of a partition can break the limit of the physical hard disk. Logical volumes can be flexibly expanded and reduced. When we are not sure about the capacity required by an application in the future, we can allocate less space first, so as the business develops, we can expand the capacity on demand and avoid the waste of resources caused by one-time allocation of too much disk space. In addition, the logical volume supports the snapshot function, and the restore point can be set before the key operation of the system to avoid data damage caused by operation errors.

Syntax format: lvs [parameter] [volume group name]

Common parameters:

Reference example

Report information about logical volumes:

[root@linuxcool ~] # lvs

Output all information about internal logical volumes:

[root@linuxcool] # lvs-- all fedoraLV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convertroot fedora-wi-ao---- 15.00gswap fedora-wi-ao

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: 204

*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