Linux command
virsh-pool-build 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Build storage pool
virsh pool-build [pool]
Build with overwrite
virsh pool-build [pool] --overwrite
说明
virsh pool-build initializes a previously-defined libvirt storage pool. The exact action depends on the pool type: for directory-based pools it creates the directory; for disk, LVM, or logical pools it formats the underlying device; for NFS pools it may set up the mount point. After building, the pool can be started with virsh pool-start. For some pool types (e.g. dir with an existing directory) the build step is a no-op or unnecessary, but is harmless. The --overwrite option allows reinitialization that destroys existing data on the target, so use it with care.
参数
- --overwrite
- Overwrite existing data.
- --no-overwrite
- Fail if data exists.
FAQ
What is the virsh-pool-build command used for?
virsh pool-build initializes a previously-defined libvirt storage pool. The exact action depends on the pool type: for directory-based pools it creates the directory; for disk, LVM, or logical pools it formats the underlying device; for NFS pools it may set up the mount point. After building, the pool can be started with virsh pool-start. For some pool types (e.g. dir with an existing directory) the build step is a no-op or unnecessary, but is harmless. The --overwrite option allows reinitialization that destroys existing data on the target, so use it with care.
How do I run a basic virsh-pool-build example?
Run `virsh pool-build [pool]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --overwrite do in virsh-pool-build?
Overwrite existing data.