← 返回命令列表

Linux command

vgremove 命令

安全

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

常用示例

Remove

sudo vgremove [volume_group]

Forcefully remove

sudo vgremove -f [volume_group]

Remove

sudo vgremove -d -d [volume_group]

Remove

sudo vgremove --select '[vg_name=~old_*]'

说明

vgremove removes one or more LVM volume groups. Before a volume group can be removed, all logical volumes within it must first be removed using lvremove. The command updates the LVM metadata to mark the volume group as removed. The underlying physical volumes remain but are no longer associated with any volume group.

参数

-f, --force
Force removal without confirmation
-d, --debug
Enable debug output (repeat for more detail, up to 6 times)
-S, --select _string_
Select objects for processing based on specified criteria
-t, --test
Test mode, don't actually make changes
-v, --verbose
Verbose output
-y, --yes
Answer yes to all prompts

FAQ

What is the vgremove command used for?

vgremove removes one or more LVM volume groups. Before a volume group can be removed, all logical volumes within it must first be removed using lvremove. The command updates the LVM metadata to mark the volume group as removed. The underlying physical volumes remain but are no longer associated with any volume group.

How do I run a basic vgremove example?

Run `sudo vgremove [volume_group]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

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

Force removal without confirmation