Hello, I seem to have accidentally created a pool called "--type", but it doesn't appear in 'virsh pool-list'. See below. [root at vh01 /]# virsh pool-define-as --name --type dir --target /data/storage/ Pool --type defined [root at vh01 /]# virsh pool-list Name State Autostart ------------------------------ isos active yes jblake active yes [root at vh01 /]# virsh pool-destroy '--type' error: command 'pool-destroy' doesn't support option --type I can't also create a new "default" type because the directory exists for this defined '--type' [root at 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 at vh01 /]# virsh pool-delete "--type" error: command 'pool-delete' doesn't support option --type Any help would be greatly appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20230929/e42362f6/attachment.htm>
I think I fixed it. Sorry. I went into Cockpit and saw it there. ------ Original Message ------>From "Joshua Blake" <maddogmcree2 at gmail.com>To libvirt-users at redhat.com Date 29/09/2023 10:40:26 Subject Issue accidentally creating a '--type' defined pool>Hello, > >I seem to have accidentally created a pool called "--type", but it >doesn't appear in 'virsh pool-list'. See below. > >[root at vh01 /]# virsh pool-define-as --name --type dir --target >/data/storage/ >Pool --type defined > >[root at vh01 /]# virsh pool-list > Name State Autostart >------------------------------ > isos active yes > jblake active yes > >[root at vh01 /]# virsh pool-destroy '--type' >error: command 'pool-destroy' doesn't support option --type > >I can't also create a new "default" type because the directory exists >for this defined '--type' > >[root at 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 at vh01 /]# virsh pool-delete "--type" >error: command 'pool-delete' doesn't support option --type > >Any help would be greatly appreciated.-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20230929/d2c73219/attachment.htm>
Daniel P. Berrangé
2023-Oct-02 08:22 UTC
Issue accidentally creating a '--type' defined pool
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 at vh01 /]# virsh pool-define-as --name --type dir --target > /data/storage/ > Pool --type defined > > [root at vh01 /]# virsh pool-list > Name State Autostart > ------------------------------ > isos active yes > jblake active yesYou need virsh pool-list --alll to also seen inactive pools> [root at vh01 /]# virsh pool-destroy '--type' > error: command 'pool-destroy' doesn't support option --typeYou 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 at 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 at vh01 /]# virsh pool-delete "--type" > error: command 'pool-delete' doesn't support option --type > > Any help would be greatly appreciated.With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Michal Prívozník
2023-Oct-04 14:38 UTC
Issue accidentally creating a '--type' defined pool
On 9/29/23 11:40, 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 at vh01 /]# virsh pool-define-as --name --type dir --target > /data/storage/ > Pool --type defined > > [root at vh01 /]# virsh pool-list > ?Name???? State??? Autostart > ------------------------------ > ?isos???? active?? yes > ?jblake?? active?? yes > > [root at vh01 /]# virsh pool-destroy '--type' > error: command 'pool-destroy' doesn't support option --typeYou may want to use: virsh pool-destroy --pool --type Michal
Possibly Parallel Threads
- Issue accidentally creating a '--type' defined pool
- SR-IOV pool with static MAC address and vlan
- SR-IOV pool with static MAC address and vlan
- [LLVMdev] Just got bitten by accidentally using the wrong gcc
- [LLVMdev] Just got bitten by accidentally using the wrong gcc