LinuxCommandLibrary

virsh-pool-define-as

Define new libvirt storage pool

TLDR

Define directory pool

$ virsh pool-define-as [name] dir --target [/path/to/pool]
copy
Define LVM pool
$ virsh pool-define-as [name] logical --source-name [vgname] --target [/dev/vgname]
copy
Define NFS pool
$ virsh pool-define-as [name] netfs --source-host [server] --source-path [/export] --target [/mnt]
copy

SYNOPSIS

virsh pool-define-as name type [options]

DESCRIPTION

virsh pool-define-as defines a new storage pool from parameters. Creates pool configuration without starting it. Supports directory, LVM, NFS, iSCSI, and other pool types.

PARAMETERS

dir

Directory pool type.
logical
LVM volume group.
netfs
Network filesystem.
--target path
Mount/target path.
--source-path path
Source path.
--source-host host
Source hostname.
--source-name name
Source name (VG name).

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community