[Users] CLI: can't attach storagedomain

Omer Frenkel ofrenkel at redhat.com
Thu Mar 22 11:42:56 UTC 2012



----- Original Message -----
> From: "David Li" <david_li at sbcglobal.net>
> To: "Omer Frenkel" <ofrenkel at redhat.com>
> Cc: users at ovirt.org
> Sent: Wednesday, March 21, 2012 6:39:23 PM
> Subject: Re: [Users] CLI: can't attach storagedomain
> 
> yeah, I am a little confused by the CLI syntax. maybe that's the
> problem. so i
> tried to create a new data domain like the followings:
> 
> [oVirt shell (connected)]# create storagedomain --name
> "fc16-lid-engine_data-domain" --host-id
> "bcb946e8-72b9-11e1-8c2b-000c29bf47ca"
> --type "data" --storage-type "nfs" --storage-address "10.10.2.187"
> --storage-path "/home/lid2/workspace/ovirt/storagedomain/data-domain"
> unknown error:
> status: 400
> reason: Bad Request
> detail: [Cannot connect server to Storage.  ]
> 
> No luck here either.
> 

can you paste the relevant lines from engine.log?
my guess is problem with the permissions on this directory (should be for vdsm:kvm), but not sure.

> 
> 
> 
> 
> ----- Original Message ----
> From: Omer Frenkel <ofrenkel at redhat.com>
> To: David Li <david_li at sbcglobal.net>
> Cc: users at ovirt.org
> Sent: Wed, March 21, 2012 8:22:59 AM
> Subject: Re: [Users] CLI: can't attach storagedomain
> 
> 
> 
> ----- Original Message -----
> > From: "David Li" <david_li at sbcglobal.net>
> > To: "Omer Frenkel" <ofrenkel at redhat.com>
> > Cc: users at ovirt.org
> > Sent: Wednesday, March 21, 2012 5:10:26 PM
> > Subject: Re: [Users] CLI: can't attach storagedomain
> > 
> > Omer,
> > 
> > Here is my storagedomain and datacenter info.
> > 
> > [oVirt shell (connected)]# list datacenters --show-all
> > 
> > id                              :
> > ac2690e4-72b2-11e1-882d-000c29bf47ca
> > name                            : Default
> > description                     : The default Data Center
> > status-state                    : uninitialized
> 
> the DC is in 'uninitialized' status, means no domains are attached to
> it.
> you first need to attach a Data storage domain, only then you can
> attach
> non-data domains (ISO, export)
> 
> > storage_type                    : nfs
> > supported_versions-version-major: 3
> > supported_versions-version-minor: 0
> > version-major                   : 3
> > version-minor                   : 0
> > 
> > 
> > [oVirt shell (connected)]# list storagedomains
> > datacenter  kwargs      show-all
> > [oVirt shell (connected)]# list storagedomains --show-all
> > 
> > id             : 27dfd13e-aec4-4708-b0e3-a7f4143a118b
> > name           : fc16-lid-engine_iso-domain
> > available      : 0
> > committed      : 0
> > master         : False
> > status-state   : unattached
> > storage-address: fc16-lid-engine.srv.cloudshield.com
> > storage-path   :
> > /home/lid2/workspace/ovirt/storagedomain/iso-domain
> > storage-type   : nfs
> > storage_format : v1
> > type           : iso
> > used           : 0
> > 
> > 
> > 
> > 
> > 
> > 
> > ----- Original Message ----
> > From: Omer Frenkel <ofrenkel at redhat.com>
> > To: David Li <david_li at sbcglobal.net>
> > Cc: users at ovirt.org
> > Sent: Wed, March 21, 2012 7:44:28 AM
> > Subject: Re: [Users] CLI: can't attach storagedomain
> > 
> > 
> > 
> > ----- Original Message -----
> > > From: "David Li" <david_li at sbcglobal.net>
> > > To: users at ovirt.org
> > > Sent: Wednesday, March 21, 2012 4:14:11 PM
> > > Subject: [Users] CLI: can't attach storagedomain
> > > 
> > > Hi,
> > > I have an iso domain created during engine setup. But I can't
> > > attach
> > > it to the
> > > datacenter in cli.
> > > 
> > > oVirt shell (connected)]# create storagedomain --name
> > > "fc16-lid-engine_iso-domain" --datacenter-identifier
> > > "ac2690e4-72b2-11e1-882d-000c29bf47ca"
> > > unknown error:
> > > status: 400
> > > reason: Bad Request
> > > detail: [Cannot attach Storage Domain.]
> > > 
> > > 
> > > Any ideas?
> > 
> > what is the status of the DC you are trying to attach this domain?
> > first domain attached to a DC should be data domain, to function as
> > master
> > storage domain.
> > 
> > > _______________________________________________
> > > Users mailing list
> > > Users at ovirt.org
> > > http://lists.ovirt.org/mailman/listinfo/users
> > > 
> > 
> > 
> 
> 



More information about the Users mailing list