Skip to content

Commit

Permalink
doc: Update lvcreate.md (#584)
Browse files Browse the repository at this point in the history
lvcreate 缺少 -n 参数
  • Loading branch information
fishandsheep authored Jun 16, 2024
1 parent 6595729 commit 1a4d712
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion command/lvcreate.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ lvcreate(选项)(参数)
### 选项

```shell
-n: 指定逻辑卷的名称
-L:指定逻辑卷的大小,单位为“kKmMgGtT”字节;
-l:指定逻辑卷的大小(LE数)。
```
Expand All @@ -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的逻辑卷
```

输出信息如下:
Expand Down

0 comments on commit 1a4d712

Please sign in to comment.