Linux command
vgcreate 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Example
sudo vgcreate volume_group /dev/sda1
Example
sudo vgcreate volume_group /dev/sda1 /dev/sdb1
说明
vgcreate creates a new volume group by combining one or more physical volumes. Volume groups are the storage pools from which logical volumes are allocated, providing flexible storage management.
参数
- -s, --physicalextentsize _size_
- Physical extent size for the volume group
- -p, --maxphysicalvolumes _count_
- Maximum number of physical volumes
- -l, --maxlogicalvolumes _count_
- Maximum number of logical volumes
- -A, --autobackup _y|n_
- Automatically backup metadata
- --clustered _y|n_
- Create a clustered volume group
FAQ
What is the vgcreate command used for?
vgcreate creates a new volume group by combining one or more physical volumes. Volume groups are the storage pools from which logical volumes are allocated, providing flexible storage management.
How do I run a basic vgcreate example?
Run `sudo vgcreate volume_group /dev/sda1` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -s, --physicalextentsize _size_ do in vgcreate?
Physical extent size for the volume group