You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
923 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

lvresize
===
调整逻辑卷空间大小
## 补充说明
**lvresize命令** 用于调整LVM逻辑卷的空间大小可以增大空间和缩小空间。使用lvresize命令调整逻辑卷空间大小和缩小空间时需要谨慎因为它有可能导致数据丢失。
### 语法
```
lvresize(选项)(参数)
```
### 选项
```
-L指定逻辑卷的大小单位为“kKmMgGtT”字节
-l指定逻辑卷的大小LE数
```
### 参数
逻辑卷:指定要删除的逻辑卷。
### 实例
使用lvresize命令调整最大的逻辑卷大小。在命令行中输入下面的命令
```
[root@localhost ~]# lvresize -L +200M /dev/vg1000/lvol0 #将逻辑卷空间增加200M
```
输出信息如下:
```
Extending logical volume lvol0 to 280.00 MB
Logical volume lvol0 successfully resized
```
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->