← 返回命令列表

Linux command

vgextend 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Add

sudo vgextend vg1 /dev/sda1

Example

sudo vgextend vg1 /dev/sda1 /dev/sdb1

说明

vgextend adds one or more physical volumes to an existing volume group. This increases the total space available for creating or extending logical volumes within the group.

参数

-f, --force
Force extension without confirmation
-y, --yes
Answer yes to all prompts
-A, --autobackup _y|n_
Automatically backup metadata after changes
--restoremissing
Restore physical volumes that were removed

FAQ

What is the vgextend command used for?

vgextend adds one or more physical volumes to an existing volume group. This increases the total space available for creating or extending logical volumes within the group.

How do I run a basic vgextend example?

Run `sudo vgextend vg1 /dev/sda1` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f, --force do in vgextend?

Force extension without confirmation