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 lvchange command of linux to change logical volume properties

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Do not know how to use linux's lvchange command to change logical volume properties? In fact, it is not difficult to solve this problem. Let the editor take you to learn how to solve it. I hope you will gain a lot after reading this article.

The purpose of the lvchange command is to change the properties of a logical volume.

Logical volume is a device mapper technology, that is, one or more underlying block devices can be organized into a logical device, thus providing functions such as dynamically resizing, adding disks, snapshots and backups without downtime, making disk management more convenient.

The system of logical volumes is divided into three levels: PV at the bottom, VG at the middle level, and LV at the top.

Syntax format: lvchange [parameters] [logical volume path]

Common parameters:

Reference example

Set the status of logical volume / dev/vg1/linuxcool_v1 to unavailable:

[root@linuxcool] # lvchange-a y / dev/vg1/linuxcool_v1

Set the access to the logical volume linuxcool_v1 to read-only:

[root@linuxcool] # lvchange-p r vg1/linuxcool_v1

Set the access to the logical volume linuxcool_v1 to read and write:

[root@linuxcool] # lvchange-p rw vg1/linuxcool_v1 Thank you for reading this article carefully. I hope the editor will share and use linux's lvchange command to change the properties of logical volumes. At the same time, I also hope you will support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

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