doc: Update lvcreate.md (#584)

lvcreate 缺少 -n 参数
This commit is contained in:
QinShower 2024-06-17 01:42:31 +08:00 committed by GitHub
parent 65957290c2
commit 1a4d7120f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ lvcreate(选项)(参数)
### 选项
```shell
-n: 指定逻辑卷的名称
-L指定逻辑卷的大小单位为“kKmMgGtT”字节
-l指定逻辑卷的大小LE数
```
@ -29,7 +30,7 @@ lvcreate(选项)(参数)
使用lvcreate命令在卷组"vg1000"上创建一个200MB的逻辑卷。在命令行中输入下面的命令
```shell
[root@localhost ~]# lvcreate -L 200M vg1000 #创建大小为200M的逻辑卷
[root@localhost ~]# lvcreate -L 200M -n lvol0 vg1000 #创建大小为200M的逻辑卷
```
输出信息如下: