Tejas, This is how the api command looks like to create primary and secondary storage.
command=createStoragePool&zoneid=581bc2b6-0295-40e0-90ed-2717e239c2b6&podId=896cff2e-d51e-454b-97ed-cab078bf3be2&clusterid=3785c58a-d891-4482-9e6f-72f2060b80d3&name=ps&scope=cluster&url=cifs%3A%2F%2F10.102.192.150%2Fsmb-share%2Frajesh%2Fprimary%3Fuser%3DAdministrator%26domain%3DBLR&response=json&sessionkey=1L5raRYhxHCAgXHJ1WGvLjs7Zws%3D&_=1391666896777 command=addImageStore&response=json&sessionkey=1L5raRYhxHCAgXHJ1WGvLjs7Zws%3D&name=sec&provider=SMB&zoneid=581bc2b6-0295-40e0-90ed-2717e239c2b6&url=cifs%3A%2F%2F10.102.192.150%2Fsmb-share%2Frajesh%2Fsecondary%3Fuser%3DAdministrator%26domain%3DBLR&_=1391666908684 in the wizard specify the path as "/smb-share/rajesh/primary" Similar for secondary. Provide credentials and domain name in the wizard. Make sure you were able to access the share from the hyperv hosts before adding them to CS. Thanks Rajesh Battala From: Tejas Gadaria [mailto:refond.g...@gmail.com] Sent: Thursday, February 6, 2014 11:03 AM To: users@cloudstack.apache.org Cc: Rajesh Battala; d...@cloudstack.apache.org Subject: Re: Not able to add primary Storage Cloudstack 4.3 Hi, I am not able to attach primary storage in Cloudstack as cifs. So what I am doing wrong OR what are the issues with primary storage.? Regards Tejas On Wed, Feb 5, 2014 at 4:35 PM, Tejas Gadaria <refond.g...@gmail.com<mailto:refond.g...@gmail.com>> wrote: Hi Paul, forgot to mention, hyper-v agent is running. Regards, Tejas On Wed, Feb 5, 2014 at 4:33 PM, Tejas Gadaria <refond.g...@gmail.com<mailto:refond.g...@gmail.com>> wrote: Hi Paul, yesterday when I was trying to add secondary storage with /hcloud/secondary , In logs I was not able to see much activity, but storage got attached. I have uploaded screenshot in previous mail. I have reattached the secondary storage, and it logs are Trying to add a new data store at cifs://10.129.151.55/hcloud/secondary?user=administrator&domain=nwx.com<http://10.129.151.55/hcloud/secondary?user=administrator&domain=nwx.com> to data center 3 2014-02-05 15:36:07,825 DEBUG [c.c.u.UriUtils] (catalina-exec-20:ctx-a19af0fa ctx-fb83ed9b) foundUser istrue 2014-02-05 15:36:07,825 DEBUG [c.c.u.UriUtils] (catalina-exec-20:ctx-a19af0fa ctx-fb83ed9b) foundPswd istrue I have not enable the zone yet. In attached screenshot of secondary storage in previous mail protocol:cifs provider : NFS I suspect, it because I have taken chunk of NFS datastore, mounted and share it via Windows fie server (Standalone) please find logs in attached file. Regards, Tejas On Tue, Feb 4, 2014 at 5:52 PM, Paul Angus <paul.an...@shapeblue.com<mailto:paul.an...@shapeblue.com>> wrote: Hey Tejas, cifs%3A%2F%2F10.129.151.155hcloud%2Fsecondary%3Fuser%3Dadministrator%26domain%3Dnwx.com Theres a "/" ("%2F") missing between 10.129.151.155 and hcloud - my recollection is that primary and secondary storage UIs are not consistent, add the secondary path as /hcloud/secondary re primary - is the agent service running? it doesn't seem to (always) automatically start even when it's set to automatic in services. Regards, Paul Angus Cloud Architect S: +44 20 3603 0540<tel:%2B44%2020%203603%200540> | M: +447711418784<tel:%2B447711418784> | T: @CloudyAngus paul.an...@shapeblue.com<mailto:paul.an...@shapeblue.com> From: Tejas Gadaria [mailto:refond.g...@gmail.com<mailto:refond.g...@gmail.com>] Sent: 04 February 2014 12:15 To: users@cloudstack.apache.org<mailto:users@cloudstack.apache.org> Cc: rajesh.batt...@citrix.com<mailto:rajesh.batt...@citrix.com>; d...@cloudstack.apache.org<mailto:d...@cloudstack.apache.org> Subject: Re: Not able to add primary Storage Cloudstack 4.3 Hi Paul, I tried with "hcloud/primary" and primary storage shows Unsupported command issued. secondary storage shows Failed to add data store: cifs URI missing host and/or path. Make sure it's of the format cifs://hostname/path?user=<username>&password=<password> After that I was trying to add secondary storage with /hcloud/secondary, I didn't show much activity in log. In Cloudstack console, secondary storage got added, but protocol is CIFS and provider is NFS. Please find attached logs. and screenshot from attached secondary storage. Regards, Tejas On Tue, Feb 4, 2014 at 12:29 PM, Paul Angus <paul.an...@shapeblue.com<mailto:paul.an...@shapeblue.com><mailto:paul.an...@shapeblue.com<mailto:paul.an...@shapeblue.com>>> wrote: Tejas, You have hcloud\primary, it should be hcloud/primary Regards Paul Angus Cloud Architect S: +44 20 3603 0540<tel:%2B44%2020%203603%200540><tel:%2B44%2020%203603%200540> | M: +447711418784<tel:%2B447711418784><tel:%2B447711418784> | T: CloudyAngus paul.an...@shapeblue.com<mailto:paul.an...@shapeblue.com><mailto:paul.an...@shapeblue.com<mailto:paul.an...@shapeblue.com>><mailto:paul.an...@shapeblue.com<mailto:paul.an...@shapeblue.com><mailto:paul.an...@shapeblue.com<mailto:paul.an...@shapeblue.com>>> From: Tejas Gadaria [mailto:refond.g...@gmail.com<mailto:refond.g...@gmail.com><mailto:refond.g...@gmail.com<mailto:refond.g...@gmail.com>>] Sent: 04 February 2014 05:16 To: users@cloudstack.apache.org<mailto:users@cloudstack.apache.org><mailto:users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>> Cc: rajesh.batt...@citrix.com<mailto:rajesh.batt...@citrix.com><mailto:rajesh.batt...@citrix.com<mailto:rajesh.batt...@citrix.com>>; d...@cloudstack.apache.org<mailto:d...@cloudstack.apache.org><mailto:d...@cloudstack.apache.org<mailto:d...@cloudstack.apache.org>> Subject: Re: Not able to add primary Storage Cloudstack 4.3 Hi, I have tried to add Primary Storage as suggested above, I am getting similar error. Failed to add data store: cifs://10.129.151.155/hcloud\primary?user=administrator&password=abc_123&domain=nwx.com<http://10.129.151.155/hcloud%5Cprimary?user=administrator&password=abc_123&domain=nwx.com><http://10.129.151.155/hcloud/primary?user=administrator&password=abc_123&domain=nwx.com><http://10.129.151.155/hcloud%5Cprimary?user=administrator&password=abc_123@123&domain=nwx.com> is not a valid uri Regards, Tejas On Sun, Feb 2, 2014 at 9:58 AM, Tejas Gadaria <refond.g...@gmail.com<mailto:refond.g...@gmail.com><mailto:refond.g...@gmail.com<mailto:refond.g...@gmail.com>><mailto:refond.g...@gmail.com<mailto:refond.g...@gmail.com><mailto:refond.g...@gmail.com<mailto:refond.g...@gmail.com>>>> wrote: Hi Paul, Thanks for your replay. I was entering the path exactly what you predicted. ("\\server\share\directory <file:///\\server\share\directory%20> <file:///\\server\share\directory%20%3cfile:\server\share\directory%2520%3e%20> <file:///\\server\share\directory%20%3cfile:\server\share\directory%2520%3e%20%3cfile:\server\share\directory%2520%253cfile:\server\share\directory%252520%253e%2520%3e%20> ") I will try to add primary storage with 'share/folder' and the 'server' without the \\ path . Regards, Tejas On Sat, Feb 1, 2014 at 5:34 PM, Paul Angus <paul.an...@shapeblue.com<mailto:paul.an...@shapeblue.com><mailto:paul.an...@shapeblue.com<mailto:paul.an...@shapeblue.com>><mailto:paul.an...@shapeblue.com<mailto:paul.an...@shapeblue.com><mailto:paul.an...@shapeblue.com<mailto:paul.an...@shapeblue.com>>>> wrote: Tejas, I guess that your entering the path as an smb path \\server\share\directory<file:///\\server\share\directory<file:///\\server\share\directory%3cfile:\server\share\directory<file:///\\server\share\directory%3cfile:\server\share\directory%3cfile:\server\share\directory%253cfile:\server\share\directory>>> For primary storage try 'share/folder' and the 'server' without the \\ There were issues with shared primary storage, so I've included one of the devs working on the feature. The same is true for secondary storage (although the UI may need \share\directory in the path). Regards Paul Angus Cloud Architect S: +44 20 3603 0540<tel:%2B44%2020%203603%200540><tel:%2B44%2020%203603%200540><tel:%2B44%2020%203603%200540> | M: +447711418784<tel:%2B447711418784><tel:%2B447711418784> | T: CloudyAngus paul.an...@shapeblue.com<mailto:paul.an...@shapeblue.com><mailto:paul.an...@shapeblue.com<mailto:paul.an...@shapeblue.com>><mailto:paul.an...@shapeblue.com<mailto:paul.an...@shapeblue.com><mailto:paul.an...@shapeblue.com<mailto:paul.an...@shapeblue.com>>> -----Original Message----- From: Sean Hamilton [mailto:s...@seanhamilton.co.uk<mailto:s...@seanhamilton.co.uk><mailto:s...@seanhamilton.co.uk<mailto:s...@seanhamilton.co.uk>><mailto:s...@seanhamilton.co.uk<mailto:s...@seanhamilton.co.uk><mailto:s...@seanhamilton.co.uk<mailto:s...@seanhamilton.co.uk>>>] Sent: 01 February 2014 11:55 To: users@cloudstack.apache.org<mailto:users@cloudstack.apache.org><mailto:users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>><mailto:users@cloudstack.apache.org<mailto:users@cloudstack.apache.org><mailto:users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>>> Cc: users@cloudstack.apache.org<mailto:users@cloudstack.apache.org><mailto:users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>><mailto:users@cloudstack.apache.org<mailto:users@cloudstack.apache.org><mailto:users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>>> Subject: Re: Not able to add primary Storage Cloudstack 4.3 Hi Tejas, What hypervisor are you using? I can't remember if CIFS is a valid protocol for hypervisors other than Hyper-V. NFS is used for other hypervisors. Cheers, Sean > On 1 Feb 2014, at 09:26, Tejas Gadaria > <refond.g...@gmail.com<mailto:refond.g...@gmail.com><mailto:refond.g...@gmail.com<mailto:refond.g...@gmail.com>><mailto:refond.g...@gmail.com<mailto:refond.g...@gmail.com><mailto:refond.g...@gmail.com<mailto:refond.g...@gmail.com>>>> > wrote: > > Hi, > > While adding primary Storage I am getting > > > "cifs://10.129.151.155/\\hcloud\primary\?user=administrator&password=abc_123&domain=nwx.com<http://10.129.151.155/%5C%5Chcloud%5Cprimary%5C?user=administrator&password=abc_123&domain=nwx.com><http://10.129.151.155/hcloud/primary/?user=administrator&password=abc_123&domain=nwx.com><http://10.129.151.155/%5C%5Chcloud%5Cprimary%5C?user=administrator&password=abc_123&domain=nwx.com> > is not a valid uri" > > Similar error I am facing while adding secondary storage also. > > Please find attachment for logs, > > > Regards, > Tejas > <primary storage.txt> > <secondary storage.txt> Need Enterprise Grade Support for Apache CloudStack? Our CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/> offers the best 24/7 SLA for CloudStack Environments. Apache CloudStack Bootcamp training courses **NEW!** CloudStack 4.2.1 training<http://shapeblue.com/cloudstack-training/> 18th-19th February 2014, Brazil. Classroom<http://shapeblue.com/cloudstack-training/> 17th-23rd March 2014, Region A. Instructor led, On-line<http://shapeblue.com/cloudstack-training/> 24th-28th March 2014, Region B. Instructor led, On-line<http://shapeblue.com/cloudstack-training/> 16th-20th June 2014, Region A. Instructor led, On-line<http://shapeblue.com/cloudstack-training/> 23rd-27th June 2014, Region B. Instructor led, On-line<http://shapeblue.com/cloudstack-training/> This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark. This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark. This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.