Re: Issue accidentally creating a '--type' defined pool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Fri, Sep 29, 2023 at 09:40:26AM +0000, Joshua Blake wrote:
> Hello,
> I seem to have accidentally created a pool called "--type", but it doesn't
> appear in 'virsh pool-list'. See below.
> [root@vh01 /]# virsh pool-define-as --name --type dir --target
> /data/storage/
> Pool --type defined
> [root@vh01 /]# virsh pool-list
>  Name     State    Autostart
> ------------------------------
>  isos     active   yes
>  jblake   active   yes

You need

  virsh pool-list  --alll

to also seen inactive pools

> [root@vh01 /]# virsh pool-destroy '--type'
> error: command 'pool-destroy' doesn't support option --type

You would need

   virsh pool-destroy -- --type

the bare '--' tells it to stop looking for option flags even if following
strings start in --

> I can't also create a new "default" type because the directory exists for
> this defined '--type'
> [root@vh01 /]# virsh pool-define-as --name default --type dir --target
> /data/storage/
> error: Failed to define pool default
> error: operation failed: Storage source conflict with pool: '--type'
> [root@vh01 /]# virsh pool-delete "--type"
> error: command 'pool-delete' doesn't support option --type
> Any help would be greatly appreciated.

With regards,
|:      -o- :|
|:         -o-   :|
|:    -o- :|

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux