← 返回命令列表

Linux command

virsh-pool-destroy 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Stop a running storage pool by name

virsh pool-destroy [pool]

说明

virsh pool-destroy stops (deactivates) a running storage pool. Despite the name, it does not delete the pool's data or its persistent configuration. The pool must be active for this command to succeed. After destroying a pool, it can be restarted with pool-start. To remove the configuration, use pool-undefine. To delete the underlying storage data, use pool-delete (the pool must be stopped first).

FAQ

What is the virsh-pool-destroy command used for?

virsh pool-destroy stops (deactivates) a running storage pool. Despite the name, it does not delete the pool's data or its persistent configuration. The pool must be active for this command to succeed. After destroying a pool, it can be restarted with pool-start. To remove the configuration, use pool-undefine. To delete the underlying storage data, use pool-delete (the pool must be stopped first).

How do I run a basic virsh-pool-destroy example?

Run `virsh pool-destroy [pool]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.