Re: Multiple ROOT disk for one Instances in CS 4.2.1

2015-01-23 Thread Keerthiraja SJ
Below are the query ran for the instances which have many root disk.

mysql> select * from volumes where instance_id='1381';
+--++---+-+--+-+---+---+--+-+-+--++++-+-+---+--+-++-+-+--+-+-+---++--+---+++++--+--+
| id   | account_id | domain_id | pool_id | last_pool_id | instance_id |
device_id | name  | uuid | size
| folder  | path | pod_id |
data_center_id | iscsi_name | host_ip | volume_type | pool_type |
disk_offering_id | template_id | first_snapshot_backup_uuid | recreatable |
created | attached | updated | removed | state
| chain_info | update_count | disk_type | vm_snapshot_chain_size | iso_id |
display_volume | format | min_iops | max_iops |
+--++---+-+--+-+---+---+--+-+-+--++++-+-+---+--+-++-+-+--+-+-+---++--+---+++++--+--+
| 1572 |  2 | 1 | 249 | NULL |1381
| 0 | ROOT-1381 | 9ee67199-7af8-4a47-8886-016cfff26b5c |
21474836480 | NULL|
06a3b4c9-6cfe-45c8-8640-7f562b11e2cb |   NULL |  5 | NULL
| NULL| ROOT| NULL  |  125 | 347 |
NULL   |   0 | 2015-01-08 14:19:27 | NULL |
2015-01-08 20:39:59 | NULL| Ready | NULL   |4 |
NULL  |   NULL |   NULL |  0 | VHD|
NULL | NULL |
| 1575 |  2 | 1 | 259 |  249 |1381
| 0 | ROOT-1381 | dbeb4cf4-0673-48be-b474-ebc5a73d08c7 |
21474836480 | /vol/cldswp_orprimary03 |
06a3b4c9-6cfe-45c8-8640-7f562b11e2cb |  5 |  5 | NULL
| NULL| ROOT| NULL  |  125 | 347 |
NULL   |   0 | 2015-01-08 20:25:29 | NULL |
2015-01-08 20:39:59 | NULL| Expunging | NULL   |6 |
NULL  |   NULL |   NULL |  0 | VHD|
NULL | NULL |
+--++---+-+--+-+---+---+--+-+-+--++++-+-+---+--+-++-+-+--+-+-+---++--+---+++++--+--+
2 rows in set (0.00 sec)




On Fri, Jan 23, 2015 at 5:00 PM, Prashant Kumar Mishra <
prashantkumar.mis...@citrix.com> wrote:

> Can you check state of these Disks in DB( volumes table for give
> instance_id).
>
> On 1/23/15, 4:46 PM, "Daan Hoogland"  wrote:
>
> >Keerthi,
> >
> >This doesn't ring a bell directly but to investigate further;
> >
> >Did you check in the database whether these are pointing to the same
> >image? This seems like a data corruption, to me.
> >
> >When you say stop/start the vm, do you mean from cloudstack/xenserver
> >or within the vm?
> >
> >On Fri, Jan 23, 2015 at 5:47 AM, Keerthiraja SJ 
> >wrote:
> >> Anyone can help on this.
> >>
> >> Thanks,
> >> Keerthi
> >>
> >> On Thu, Jan 22, 2015 at 11:46 AM, Keerthiraja SJ 
> >> wrote:
> >>
> >>> Hi
> >>>
> >>> For one of my Instances I could see many multiple of RootDisk.
> >>>
> >>> Because of this when xenserver reboots or if I stop and start the
> >>> instances my VM is not responding.
> >>>
> >>> How can I fix this issue.
> >>>
> >>> I could see this issue almost out 173 VM's 5 are like this.
> >>>
> >>> *Below are the one pasted from the Storage CS GUI*
> >>>
> >>> ROOT-868ROOTXenServer
> >>>  ROOT-868ROOTXenServeror004-test.net ROOT-868ROOTXenServer
> >>>  ROOT-868ROOTXenServer
> >>>  ROOT-868ROOTXenServer
> >>>  ROOT-868ROOTXenServer
> >>>  ROOT-868ROOTXenServeror004-test.net
> >>> ROOT-868ROOTXenServer
> >>>  ROOT-868ROOTXenServer
> >>>  ROOT-868ROOTXenServer
> >>>  ROOT-868ROOTXenServer
> >>> Thanks,
> >>> Kee

RE: No VMID/VolumeID in Volume Usage Data

2015-01-23 Thread Somesh Naidu
Volume Id: 242

The volume ID seems to be present in the API output - you could do "select * 
from volumes where id=242" to get the details about that volume.

Regards,
Somesh

-Original Message-
From: mvs babu [mailto:mvsbabu0...@outlook.com] 
Sent: Friday, January 23, 2015 2:32 AM
To: cloudusersusers
Subject: No VMID/VolumeID in Volume Usage Data

Hi Team,


When I pull usage data of a VM (Type 2) it showing virtualmachineid. Using this 
ID we can map each usage record to their corresponding VM.


But in Volume usage (Type 6), here is no VM ID/ Volume ID. How can I map a 
usage record to their Volume?


Please find below usage data for VM and Volume.





For a VM



mycloudmonkey> list usagerecords startdate=2015-01-20 enddate=2015-01-21 type=2


name = Web1
account = srini
accountid = 02b2c2f6-48cc-466d-a76c-8d5db6a6308a
description = Web1 allocated (ServiceOffering: 2) (Template: 205)
domainid = d7c0337c-1495-11e4-ba8d-000c29a411ce
enddate = 2015-01-20'T'23:59:59+00:00
offeringid = bde08194-34cb-4f74-aa47-df340987a3d0
rawusage = 24
startdate = 2015-01-20'T'00:00:00+00:00
templateid = a6435deb-fbdd-4a85-9bf2-223402610bd2
type = XenServer
usage = 24 Hrs
usageid = 2648a03c-204f-4a97-b41c-28ccd9810b81
usagetype = 2
virtualmachineid = 2648a03c-204f-4a97-b41c-28ccd9810b81
zoneid = 5de2c509-d6ca-4bfb-ac18-6506810bf6f9







For a Volume




mycloudmonkey> list usagerecords startdate=2015-01-20 enddate=2015-01-21 type=6



account = Demo
accountid = 5a1d718b-9da0-4808-9aa6-f66278fd1f5a
description = Volume Id: 242 usage time (DiskOffering: 2)
domainid = 92e5bbab-7955-4d0a-99a7-582baeabbc15
enddate = 2015-01-20'T'23:59:59+00:00
offeringid = bde08194-34cb-4f74-aa47-df340987a3d0
rawusage = 24
size = 21474836480
startdate = 2015-01-20'T'00:00:00+00:00
usage = 24 Hrs
usageid = b6289b0c-d70a-459f-b1ff-c16f0986fcaa
usagetype = 6
zoneid = 5de2c509-d6ca-4bfb-ac18-6506810bf6f9




Thank you,

Suneel.



Sent from Windows Mail


Re: Hostname and IP address of VMs created from template.

2015-01-23 Thread Dan Dong
Hi, All,
  Thanks for all the info, by recreating the template following the
document, now the newly created VMs have their IP addresses set
automatically, but the hostname still keeps the hostname of  the VM from
which template is created. For CentOS, the hostname is set in the file
/etc/sysconfig/network, apparently new VMs created did not set HOSTNAME
entry from either "name" or "displayname" of the input parameter( I set
hostname to localhost as stated in the document before creating the
template).

Cheers,
Dan


2015-01-23 6:45 GMT-06:00 Geoff Higginbottom <
geoff.higginbot...@shapeblue.com>:

> Hi Bhavin,
>
> Firstly the VMs Hostname is always taken from the 'name' setting and not
> the 'display name' this is why the name setting cannot have spaces (as
> Hostnames are not allowed to have spaces) but the display name can.
>
> Regarding
> https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Admin_Guide/append-displayname-vms.html
> - This setting changes how the MVs are listed on vCenter, and does not
> influence the VMs Hostname
>
> Regards
>
> Geoff Higginbottom
>
> D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
>
> geoff.higginbot...@shapeblue.com
>
> -Original Message-
> From: chinu shah [mailto:chinu2...@gmail.com]
> Sent: 23 January 2015 02:50
> To: users@cloudstack.apache.org
> Cc: vijayendra.bhamidip...@citrix.com; suresh.ramamur...@nuagenetworks.net
> Subject: Re: Hostname and IP address of VMs created from template.
>
> Thank you Geoff for the response, could you give insights how will it set
> automatically on guest VMs. According to the Documentation ("
>
> https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Admin_Guide/append-displayname-vms.html
> "),
> when we create a VM with Display name we still do not see the hostname set
> as display name. We are using centos "CentOS 5.3(64-bit) no GUI (vSphere)"
> provided by cloudstack. Hypervisor type is VMWare. Does the default
> template miss any scritps to set the hostname as display name. We have set
> the hostname to localhost and manually stopped and rebooted but still the
> hostname was not set to display name.
>
> Regards,
> Bhavin Shah
> Nuage Networks
> Find out more about ShapeBlue and our range of CloudStack related services
>
> IaaS Cloud Design & Build<
> http://shapeblue.com/iaas-cloud-design-and-build//>
> CSForge – rapid IaaS deployment framework
> CloudStack Consulting
> CloudStack Software Engineering<
> http://shapeblue.com/cloudstack-software-engineering/>
> CloudStack Infrastructure Support<
> http://shapeblue.com/cloudstack-infrastructure-support/>
> CloudStack Bootcamp Training Courses<
> 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 SA Pty Ltd is
> a company registered by The Republic of South Africa and is traded under
> license from Shape Blue Ltd. ShapeBlue is a registered trademark.
>


Re: How to reduce the size of the cloud_usage database

2015-01-23 Thread Rohit Yadav

> On 23-Jan-2015, at 8:40 pm, Abhinandan Prateek 
>  wrote:
>
> Will this also take care of usage server not regenerating usage data on 
> restart before a certain cut-off date ?

Since this is an API, its usage is at the discretion of the admin. This has 
nothing to do with server not generating usage data. For more information 
checkout Somesh’s email on the thread.

This is by default only enabled for the admin only.

Regards,
Rohit Yadav
Software Architect, ShapeBlue
M. +91 88 262 30892 | rohit.ya...@shapeblue.com
Blog: bhaisaab.org | Twitter: @_bhaisaab



Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build
CSForge – rapid IaaS deployment framework
CloudStack Consulting
CloudStack Software 
Engineering
CloudStack Infrastructure 
Support
CloudStack Bootcamp Training Courses

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 SA Pty Ltd is a company 
registered by The Republic of South Africa and is traded under license from 
Shape Blue Ltd. ShapeBlue is a registered trademark.


Re: How to reduce the size of the cloud_usage database

2015-01-23 Thread Abhinandan Prateek
Will this also take care of usage server not regenerating usage data on restart 
before a certain cut-off date ?

> On 23-Jan-2015, at 7:43 pm, Rohit Yadav  wrote:
>
> Hi,
>
> Instead of a automatic thread that would clean up cloud_usage database, I’ve 
> implemented a new API (removeRawUsageRecords) that will be available with 
> 4.6.0 and above. It takes an interval parameter which is an integer greater 
> than 0, and this API when called removes all records from 
> cloud_usage.cloud_usage table that are older than ‘interval’ number of days. 
> It fails in a window of 15mins when using the usage job exec time (also 
> considering the timezone) when the API is called.
>
> For details you may follow it here: 
> https://issues.apache.org/jira/browse/CLOUDSTACK-8151
>
> Regards,
> Rohit Yadav
> Software Architect, ShapeBlue
> M. +91 88 262 30892 | rohit.ya...@shapeblue.com
> Blog: bhaisaab.org | Twitter: @_bhaisaab
>
> Find out more about ShapeBlue and our range of CloudStack related services
>
> IaaS Cloud Design & Build
> CSForge – rapid IaaS deployment framework
> CloudStack Consulting
> CloudStack Software 
> Engineering
> CloudStack Infrastructure 
> Support
> CloudStack Bootcamp Training 
> Courses
>
> 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 SA Pty Ltd is a company 
> registered by The Republic of South Africa and is traded under license from 
> Shape Blue Ltd. ShapeBlue is a registered trademark.

Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build
CSForge – rapid IaaS deployment framework
CloudStack Consulting
CloudStack Software 
Engineering
CloudStack Infrastructure 
Support
CloudStack Bootcamp Training Courses

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 SA Pty Ltd is a company 
registered by The Republic of South Africa and is traded under license from 
Shape Blue Ltd. ShapeBlue is a registered trademark.


Re: How to reduce the size of the cloud_usage database

2015-01-23 Thread Rohit Yadav
Hi,

Instead of a automatic thread that would clean up cloud_usage database, I’ve 
implemented a new API (removeRawUsageRecords) that will be available with 4.6.0 
and above. It takes an interval parameter which is an integer greater than 0, 
and this API when called removes all records from cloud_usage.cloud_usage table 
that are older than ‘interval’ number of days. It fails in a window of 15mins 
when using the usage job exec time (also considering the timezone) when the API 
is called.

For details you may follow it here: 
https://issues.apache.org/jira/browse/CLOUDSTACK-8151

Regards,
Rohit Yadav
Software Architect, ShapeBlue
M. +91 88 262 30892 | rohit.ya...@shapeblue.com
Blog: bhaisaab.org | Twitter: @_bhaisaab

Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build
CSForge – rapid IaaS deployment framework
CloudStack Consulting
CloudStack Software 
Engineering
CloudStack Infrastructure 
Support
CloudStack Bootcamp Training Courses

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 SA Pty Ltd is a company 
registered by The Republic of South Africa and is traded under license from 
Shape Blue Ltd. ShapeBlue is a registered trademark.


unable to get VM console in broswer

2015-01-23 Thread Sonali Jadhav
Hi,

I have installed wildcard certificate for management servers as well as Console 
proxy VM. Management Certificate works without any problem. But if I try to 
take console of VM,  it shows blank screen, I can see that certificate is 
loaded but I have to disable "Protection" then it shows console,

[cid:image001.png@01D0373E.4BF2D590]


What can be the issue?

Yours sincerely,

Sonali Jadhav | System Administrator
Nordiska Servercentralen
Skype ID: sonali.jadhav.sj
E-mail: son...@servercentralen.se
Nordiska Servercentralen AB
Snövitsvägen 5
S-167 62 Bromma | Sweden
www.servercentralen.se
Incredible Servercentral Pvt. Ltd.
202, Siddhivinayak Aurum, Near Hyatt Regency
Behind Eden Garden, Viman Nagar, 411 014 | Pune, India
www.servercentral.in



RE: Hostname and IP address of VMs created from template.

2015-01-23 Thread Geoff Higginbottom
Hi Bhavin,

Firstly the VMs Hostname is always taken from the 'name' setting and not the 
'display name' this is why the name setting cannot have spaces (as Hostnames 
are not allowed to have spaces) but the display name can.

Regarding 
https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Admin_Guide/append-displayname-vms.html
 - This setting changes how the MVs are listed on vCenter, and does not 
influence the VMs Hostname

Regards

Geoff Higginbottom

D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581

geoff.higginbot...@shapeblue.com

-Original Message-
From: chinu shah [mailto:chinu2...@gmail.com]
Sent: 23 January 2015 02:50
To: users@cloudstack.apache.org
Cc: vijayendra.bhamidip...@citrix.com; suresh.ramamur...@nuagenetworks.net
Subject: Re: Hostname and IP address of VMs created from template.

Thank you Geoff for the response, could you give insights how will it set 
automatically on guest VMs. According to the Documentation ("
https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Admin_Guide/append-displayname-vms.html";),
when we create a VM with Display name we still do not see the hostname set as 
display name. We are using centos "CentOS 5.3(64-bit) no GUI (vSphere)" 
provided by cloudstack. Hypervisor type is VMWare. Does the default template 
miss any scritps to set the hostname as display name. We have set the hostname 
to localhost and manually stopped and rebooted but still the hostname was not 
set to display name.

Regards,
Bhavin Shah
Nuage Networks
Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build
CSForge – rapid IaaS deployment framework
CloudStack Consulting
CloudStack Software 
Engineering
CloudStack Infrastructure 
Support
CloudStack Bootcamp Training Courses

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 SA Pty Ltd is a company 
registered by The Republic of South Africa and is traded under license from 
Shape Blue Ltd. ShapeBlue is a registered trademark.


Re: Clearing template cache on primary storage

2015-01-23 Thread Prashant Kumar Mishra
>>I want the template to be pulled down to primary storage each time a
>>deployment starts.


I think this can be done using  full clone vm deployment .
In case of full clone template should get copied every time  ,there is a
global setting ³vmware.create.full.clone² which controls this attribute .
Sadly it is only for vmware.
  Xen server do  support this type of deployment
http://support.citrix.com/proddocs/topic/xencenter-61/xs-xc-vms-copy.html
, but not sure how to control it form CS.

Thanks
prashant


On 1/23/15, 11:35 AM, "Sanjeev Neelarapu" 
wrote:

>Hi Kyle,
>
>CS generally copies the template from secondary to primary if it does not
>find an entry in the template_spool_ref table for that template. So if
>you want CS to copy the template to primary every time you deploy a new
>vm , you can have a script to deploy vms parallelly and to remove the db
>entry before deploying each vm.
>
>Thanks,
>Sanjeev 
>CloudPlatform Engineering
>Citrix Systems, Inc.
>
>-Original Message-
>From: Kyle Flavin [mailto:kyle.fla...@citrix.com]
>Sent: Friday, January 23, 2015 6:18 AM
>To: users@cloudstack.apache.org
>Subject: RE: Clearing template cache on primary storage
>
>Thanks Somesh.
>
>-Original Message-
>From: Somesh Naidu [mailto:somesh.na...@citrix.com]
>Sent: Thursday, January 22, 2015 4:28 PM
>To: users@cloudstack.apache.org
>Subject: RE: Clearing template cache on primary storage
>
>Should be under /usr/share/cloudstack-common/scripts/storage/secondary/
>
>You can double check Install Guide under section Prepare System VM
>Tempate.
>
>Somesh
>CloudPlatform Escalations
>Citrix Systems, Inc.
>
>
>-Original Message-
>From: Kyle Flavin [mailto:kyle.fla...@citrix.com]
>Sent: Thursday, January 22, 2015 7:00 PM
>To: users@cloudstack.apache.org
>Subject: RE: Clearing template cache on primary storage
>
>Thanks Somesh.  Do you know offhand where I could find that script?  That
>sounds like a good place to start.
>
>-Original Message-
>From: Somesh Naidu [mailto:somesh.na...@citrix.com]
>Sent: Thursday, January 22, 2015 3:14 PM
>To: users@cloudstack.apache.org
>Subject: RE: Clearing template cache on primary storage
>
>> Is it possible to have multiple templates that are just pointers to the
>>existing bits of the source template on secondary storage?
>Not entirely impossible. I mean its' not going to be pointers, but if you
>were looking to save time it takes to upload 20 copies, you could
>manually setup the templates. This requires manual copy and DB updates.
>You can get a hint of what's required by looking at the script used to
>prepare the secondary storage for system templates.
>
>> However, this looks like it's just going to download the same VHD to
>>secondary storage multiple times, creating multiple copies of the
>>template on disk.
>I thought that's what you were looking for.
>
>Copy template is definitely not what you are looking for, because, it is
>copy from on secondary to another, doesn't involve primary storage.
>
>Somesh
>CloudPlatform Escalations
>Citrix Systems, Inc.
>
>-Original Message-
>From: Kyle Flavin [mailto:kyle.fla...@citrix.com]
>Sent: Thursday, January 22, 2015 6:06 PM
>To: users@cloudstack.apache.org
>Subject: RE: Clearing template cache on primary storage
>
>Hi Somesh, 
>Is it possible to have multiple templates that are just pointers to the
>existing bits of the source template on secondary storage?
>
>I've tried the following two approaches.
>
>First, with Cloudmonkey, I tried to register a new template using
>something like the following:
>cloudmonkey register template displaytext="Windows Test Template 1"
>format=VHD hypervisor=XenServer name="WindowsTestTemplate1"
>ostypeid= url=http:// zoneid=
>
>However, this looks like it's just going to download the same VHD to
>secondary storage multiple times, creating multiple copies of the
>template on disk.
>
>Second, I tried making a copy of the template:
>cloudmonkey copy template id= destzoneid=
>
>However, this looks like it will only copy the template between two
>different zones.  It doesn't seem to allow me to copy the template to the
>same zone, and give it a new name.
>
>I don't believe either solution gives me what I'm looking for, because I
>want is to test the time it's taking the template to get from secondary
>storage to primary when I do my deployment.  Both of the possible
>solution above seem to include the additional step of copying the full
>VHD to secondary storage.  If I could somehow register a new template,
>and tell it to use the same bits on disk as the source template (no
>additional copying of anything to secondary storage), I think that'd give
>me what I want.  But I'm not sure if that's possible.  Am I looking at
>this wrong?
>
>-Original Message-
>From: Somesh Naidu [mailto:somesh.na...@citrix.com]
>Sent: Thursday, January 22, 2015 6:51 AM
>To: users@cloudstack.apache.org
>Subject: RE: Clearing template cache on primary storage
>
>I do not believe there is any 

Re: Multiple ROOT disk for one Instances in CS 4.2.1

2015-01-23 Thread Prashant Kumar Mishra
Can you check state of these Disks in DB( volumes table for give
instance_id).

On 1/23/15, 4:46 PM, "Daan Hoogland"  wrote:

>Keerthi,
>
>This doesn't ring a bell directly but to investigate further;
>
>Did you check in the database whether these are pointing to the same
>image? This seems like a data corruption, to me.
>
>When you say stop/start the vm, do you mean from cloudstack/xenserver
>or within the vm?
>
>On Fri, Jan 23, 2015 at 5:47 AM, Keerthiraja SJ 
>wrote:
>> Anyone can help on this.
>>
>> Thanks,
>> Keerthi
>>
>> On Thu, Jan 22, 2015 at 11:46 AM, Keerthiraja SJ 
>> wrote:
>>
>>> Hi
>>>
>>> For one of my Instances I could see many multiple of RootDisk.
>>>
>>> Because of this when xenserver reboots or if I stop and start the
>>> instances my VM is not responding.
>>>
>>> How can I fix this issue.
>>>
>>> I could see this issue almost out 173 VM's 5 are like this.
>>>
>>> *Below are the one pasted from the Storage CS GUI*
>>>
>>> ROOT-868ROOTXenServer
>>>  ROOT-868ROOTXenServeror004-test.net ROOT-868ROOTXenServer
>>>  ROOT-868ROOTXenServer
>>>  ROOT-868ROOTXenServer
>>>  ROOT-868ROOTXenServer
>>>  ROOT-868ROOTXenServeror004-test.net
>>> ROOT-868ROOTXenServer
>>>  ROOT-868ROOTXenServer
>>>  ROOT-868ROOTXenServer
>>>  ROOT-868ROOTXenServer
>>> Thanks,
>>> Keerthi
>>>
>>>
>
>
>
>-- 
>Daan



Re: Multiple ROOT disk for one Instances in CS 4.2.1

2015-01-23 Thread Daan Hoogland
Keerthi,

This doesn't ring a bell directly but to investigate further;

Did you check in the database whether these are pointing to the same
image? This seems like a data corruption, to me.

When you say stop/start the vm, do you mean from cloudstack/xenserver
or within the vm?

On Fri, Jan 23, 2015 at 5:47 AM, Keerthiraja SJ  wrote:
> Anyone can help on this.
>
> Thanks,
> Keerthi
>
> On Thu, Jan 22, 2015 at 11:46 AM, Keerthiraja SJ 
> wrote:
>
>> Hi
>>
>> For one of my Instances I could see many multiple of RootDisk.
>>
>> Because of this when xenserver reboots or if I stop and start the
>> instances my VM is not responding.
>>
>> How can I fix this issue.
>>
>> I could see this issue almost out 173 VM's 5 are like this.
>>
>> *Below are the one pasted from the Storage CS GUI*
>>
>> ROOT-868ROOTXenServer
>>  ROOT-868ROOTXenServeror004-test.net ROOT-868ROOTXenServer
>>  ROOT-868ROOTXenServer
>>  ROOT-868ROOTXenServer
>>  ROOT-868ROOTXenServer
>>  ROOT-868ROOTXenServeror004-test.net
>> ROOT-868ROOTXenServer
>>  ROOT-868ROOTXenServer
>>  ROOT-868ROOTXenServer
>>  ROOT-868ROOTXenServer
>> Thanks,
>> Keerthi
>>
>>



-- 
Daan