Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lvcreate 缺少 -n 参数 #584

Merged
merged 1 commit into from
Jun 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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