You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Sebastian Igerl <ig...@gmail.com> on 2013/09/30 12:38:12 UTC

Disable copy snapshot to secondary storage in CS 4.2

Hi All,

i'm trying to disable that a snapshots get copied to secondary storage
right after it's creation.
I thought if i set "snapshot.backup.rightafter" to false this should work ?

Any thoughts ?


Thanks

Sebastian

Re: Disable copy snapshot to secondary storage in CS 4.2

Posted by Nitin Mehta <Ni...@citrix.com>.
You guys can vote for this to be fixed in the next maintenance release -
4.2.1.

On 11/10/13 2:35 PM, "Sebastian Igerl" <ig...@gmail.com> wrote:

>Hey,
>
>yes i did : https://issues.apache.org/jira/browse/CLOUDSTACK-4858
>
>Cheers
>
>
>2013/10/9 Indra Pramana <in...@sg.or.id>
>
>> Dear all,
>>
>> I also encounter the same problem. Looks like it's confirmed to be a
>>bug.
>>
>> Has anyone submitted a bug report on this?
>>
>> Looking forward to your reply, thank you.
>>
>> Cheers.
>>
>>
>>
>> On Sun, Oct 6, 2013 at 2:01 AM, Andrei Mikhailovsky <andrei@arhont.com
>> >wrote:
>>
>> > Nope, I've not upgraded to 4.2 yet. Just checking the issues before
>>doing
>> > the upgrade
>> >
>> >
>> >
>> > ----- Original Message -----
>> >
>> > From: "Sebastian Igerl" <ig...@gmail.com>
>> > To: users@cloudstack.apache.org
>> > Sent: Friday, 4 October, 2013 7:05:30 PM
>> > Subject: Re: Disable copy snapshot to secondary storage in CS 4.2
>> >
>> > no, it's still not working, did you have any luck jet?
>> >
>> >
>> > 2013/10/4 Andrei Mikhailovsky <an...@arhont.com>
>> >
>> > > Sebastian,
>> > >
>> > > Did you manage to solve this, or is this option not working
>>properly? I
>> > am
>> > > also on rbd and looking to disable secondary storage copy of the
>> > snapshots.
>> > >
>> > > Thanks
>> > > ----- Original Message -----
>> > >
>> > > From: "Sebastian Igerl" <ig...@gmail.com>
>> > > To: users@cloudstack.apache.org
>> > > Sent: Monday, 30 September, 2013 12:01:21 PM
>> > > Subject: Re: Disable copy snapshot to secondary storage in CS 4.2
>> > >
>> > > Hmm.. but it still does. maybe a bug ?
>> > > snapshot.backup.rightafterbackup snapshot right after snapshot is
>> > > takenfalse
>> > >
>> > >
>> > > Primary storage is Ceph/RDB, Secondary is NFS. I restarted both the
>> > > management server and the nodes.
>> > >
>> > > not really sure if this helps:
>> > >
>> > > management-server.log:2013-09-30 12:48:48,196 DEBUG
>> > > [agent.transport.Request] (Job-Executor-7:job-77 = [
>> > > 379cc53b-1b43-4a6e-b080-3396daa08187 ]) Seq 1-1254424614: Sending {
>> Cmd ,
>> > > MgmtId: 148417590936615, via: 1, Ver: v1, Flags: 100111,
>> > >
>> > >
>> >
>> 
>>[{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apac
>>he.cloudstack.storage.to.SnapshotObjectTO":{"path":"vms/5065da10-4d2d-426
>>a-a794-f02f29ca57ed/18ef0d32-1c56-4d5e-89df-9b5a0f5ef798","volume":{"uuid
>>":"a84300b2-189f-4a55-9232-a048ae94f7fb","volumeType":"ROOT","dataStore":
>>{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3e937dc8-
>>0dfc-3bf4-8910-8a17aa6a3344","id":5,"poolType":"RBD","host":"10.30.40.2",
>>"path":"vms","port":6789}},"name":"ROOT-13","size":8589934592,"path":"506
>>5da10-4d2d-426a-a794-f02f29ca57ed","volumeId":23,"vmName":"i-2-13-VM","ac
>>countId":2,"format":"RAW","id":23,"hypervisorType":"KVM"},"dataStore":{"o
>>rg.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3e937dc8-0df
>>c-3bf4-8910-8a17aa6a3344","id":5,"poolType":"RBD","host":"10.30.40.2","pa
>>th":"vms","port":6789}},"vmName":"i-2-13-VM","name":"5b49e069-41ae-4acf-a
>>042-5d8f43dbe665_ROOT-13_20130930104846","hypervisorType":"KVM","id":12}}
>>,"destTO":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path":"s
>>napshots/2/23","volume":{"uuid":"a84300b2-189f-4a55-9232-a048ae94f7fb","v
>>olumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryD
>>ataStoreTO":{"uuid":"3e937dc8-0dfc-3bf4-8910-8a17aa6a3344","id":5,"poolTy
>>pe":"RBD","host":"10.30.40.2","path":"vms","port":6789}},"name":"ROOT-13"
>>,"size":8589934592,"path":"5065da10-4d2d-426a-a794-f02f29ca57ed","volumeI
>>d":23,"vmName":"i-2-13-VM","accountId":2,"format":"RAW","id":23,"hypervis
>>orType":"KVM"},"dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs:/
>>/
>> > > 10.30.31.14/export/secondary
>> > >
>> >
>> 
>>","_role":"Image"}},"vmName":"i-2-13-VM","name":"5b49e069-41ae-4acf-a042-
>>5d8f43dbe665_ROOT-13_20130930104846","hypervisorType":"KVM","id":12}},"ex
>>ecuteInSequence":true,"wait":21600}}]
>> > > }
>> > >
>> > >
>> > > --Sebastian
>> > >
>> > >
>> > > 2013/9/30 Sanjay Tripathi <sa...@citrix.com>
>> > >
>> > > > That's correct.
>> > > >
>> > > > Setting up the mentioned global config parameter to false will not
>> copy
>> > > > the snapshot to secondary storage, snapshot will be available in
>> > primary
>> > > > storage.
>> > > >
>> > > > --Sanjay
>> > > >
>> > > > > -----Original Message-----
>> > > > > From: Sebastian Igerl [mailto:igerlster@gmail.com]
>> > > > > Sent: Monday, September 30, 2013 4:08 PM
>> > > > > To: users@cloudstack.apache.org
>> > > > > Subject: Disable copy snapshot to secondary storage in CS 4.2
>> > > > >
>> > > > > Hi All,
>> > > > >
>> > > > > i'm trying to disable that a snapshots get copied to secondary
>> > storage
>> > > > right
>> > > > > after it's creation.
>> > > > > I thought if i set "snapshot.backup.rightafter" to false this
>> should
>> > > > work ?
>> > > > >
>> > > > > Any thoughts ?
>> > > > >
>> > > > >
>> > > > > Thanks
>> > > > >
>> > > > > Sebastian
>> > > >
>> > >
>> > >
>> >
>> >
>>


Re: Disable copy snapshot to secondary storage in CS 4.2

Posted by Sebastian Igerl <ig...@gmail.com>.
Hey,

yes i did : https://issues.apache.org/jira/browse/CLOUDSTACK-4858

Cheers


2013/10/9 Indra Pramana <in...@sg.or.id>

> Dear all,
>
> I also encounter the same problem. Looks like it's confirmed to be a bug.
>
> Has anyone submitted a bug report on this?
>
> Looking forward to your reply, thank you.
>
> Cheers.
>
>
>
> On Sun, Oct 6, 2013 at 2:01 AM, Andrei Mikhailovsky <andrei@arhont.com
> >wrote:
>
> > Nope, I've not upgraded to 4.2 yet. Just checking the issues before doing
> > the upgrade
> >
> >
> >
> > ----- Original Message -----
> >
> > From: "Sebastian Igerl" <ig...@gmail.com>
> > To: users@cloudstack.apache.org
> > Sent: Friday, 4 October, 2013 7:05:30 PM
> > Subject: Re: Disable copy snapshot to secondary storage in CS 4.2
> >
> > no, it's still not working, did you have any luck jet?
> >
> >
> > 2013/10/4 Andrei Mikhailovsky <an...@arhont.com>
> >
> > > Sebastian,
> > >
> > > Did you manage to solve this, or is this option not working properly? I
> > am
> > > also on rbd and looking to disable secondary storage copy of the
> > snapshots.
> > >
> > > Thanks
> > > ----- Original Message -----
> > >
> > > From: "Sebastian Igerl" <ig...@gmail.com>
> > > To: users@cloudstack.apache.org
> > > Sent: Monday, 30 September, 2013 12:01:21 PM
> > > Subject: Re: Disable copy snapshot to secondary storage in CS 4.2
> > >
> > > Hmm.. but it still does. maybe a bug ?
> > > snapshot.backup.rightafterbackup snapshot right after snapshot is
> > > takenfalse
> > >
> > >
> > > Primary storage is Ceph/RDB, Secondary is NFS. I restarted both the
> > > management server and the nodes.
> > >
> > > not really sure if this helps:
> > >
> > > management-server.log:2013-09-30 12:48:48,196 DEBUG
> > > [agent.transport.Request] (Job-Executor-7:job-77 = [
> > > 379cc53b-1b43-4a6e-b080-3396daa08187 ]) Seq 1-1254424614: Sending {
> Cmd ,
> > > MgmtId: 148417590936615, via: 1, Ver: v1, Flags: 100111,
> > >
> > >
> >
> [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path":"vms/5065da10-4d2d-426a-a794-f02f29ca57ed/18ef0d32-1c56-4d5e-89df-9b5a0f5ef798","volume":{"uuid":"a84300b2-189f-4a55-9232-a048ae94f7fb","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3e937dc8-0dfc-3bf4-8910-8a17aa6a3344","id":5,"poolType":"RBD","host":"10.30.40.2","path":"vms","port":6789}},"name":"ROOT-13","size":8589934592,"path":"5065da10-4d2d-426a-a794-f02f29ca57ed","volumeId":23,"vmName":"i-2-13-VM","accountId":2,"format":"RAW","id":23,"hypervisorType":"KVM"},"dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3e937dc8-0dfc-3bf4-8910-8a17aa6a3344","id":5,"poolType":"RBD","host":"10.30.40.2","path":"vms","port":6789}},"vmName":"i-2-13-VM","name":"5b49e069-41ae-4acf-a042-5d8f43dbe665_ROOT-13_20130930104846","hypervisorType":"KVM","id":12}},"destTO":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path":"snapshots/2/23","volume":{"uuid":"a84300b2-189f-4a55-9232-a048ae94f7fb","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3e937dc8-0dfc-3bf4-8910-8a17aa6a3344","id":5,"poolType":"RBD","host":"10.30.40.2","path":"vms","port":6789}},"name":"ROOT-13","size":8589934592,"path":"5065da10-4d2d-426a-a794-f02f29ca57ed","volumeId":23,"vmName":"i-2-13-VM","accountId":2,"format":"RAW","id":23,"hypervisorType":"KVM"},"dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://
> > > 10.30.31.14/export/secondary
> > >
> >
> ","_role":"Image"}},"vmName":"i-2-13-VM","name":"5b49e069-41ae-4acf-a042-5d8f43dbe665_ROOT-13_20130930104846","hypervisorType":"KVM","id":12}},"executeInSequence":true,"wait":21600}}]
> > > }
> > >
> > >
> > > --Sebastian
> > >
> > >
> > > 2013/9/30 Sanjay Tripathi <sa...@citrix.com>
> > >
> > > > That's correct.
> > > >
> > > > Setting up the mentioned global config parameter to false will not
> copy
> > > > the snapshot to secondary storage, snapshot will be available in
> > primary
> > > > storage.
> > > >
> > > > --Sanjay
> > > >
> > > > > -----Original Message-----
> > > > > From: Sebastian Igerl [mailto:igerlster@gmail.com]
> > > > > Sent: Monday, September 30, 2013 4:08 PM
> > > > > To: users@cloudstack.apache.org
> > > > > Subject: Disable copy snapshot to secondary storage in CS 4.2
> > > > >
> > > > > Hi All,
> > > > >
> > > > > i'm trying to disable that a snapshots get copied to secondary
> > storage
> > > > right
> > > > > after it's creation.
> > > > > I thought if i set "snapshot.backup.rightafter" to false this
> should
> > > > work ?
> > > > >
> > > > > Any thoughts ?
> > > > >
> > > > >
> > > > > Thanks
> > > > >
> > > > > Sebastian
> > > >
> > >
> > >
> >
> >
>

Re: Disable copy snapshot to secondary storage in CS 4.2

Posted by Indra Pramana <in...@sg.or.id>.
Dear all,

I also encounter the same problem. Looks like it's confirmed to be a bug.

Has anyone submitted a bug report on this?

Looking forward to your reply, thank you.

Cheers.



On Sun, Oct 6, 2013 at 2:01 AM, Andrei Mikhailovsky <an...@arhont.com>wrote:

> Nope, I've not upgraded to 4.2 yet. Just checking the issues before doing
> the upgrade
>
>
>
> ----- Original Message -----
>
> From: "Sebastian Igerl" <ig...@gmail.com>
> To: users@cloudstack.apache.org
> Sent: Friday, 4 October, 2013 7:05:30 PM
> Subject: Re: Disable copy snapshot to secondary storage in CS 4.2
>
> no, it's still not working, did you have any luck jet?
>
>
> 2013/10/4 Andrei Mikhailovsky <an...@arhont.com>
>
> > Sebastian,
> >
> > Did you manage to solve this, or is this option not working properly? I
> am
> > also on rbd and looking to disable secondary storage copy of the
> snapshots.
> >
> > Thanks
> > ----- Original Message -----
> >
> > From: "Sebastian Igerl" <ig...@gmail.com>
> > To: users@cloudstack.apache.org
> > Sent: Monday, 30 September, 2013 12:01:21 PM
> > Subject: Re: Disable copy snapshot to secondary storage in CS 4.2
> >
> > Hmm.. but it still does. maybe a bug ?
> > snapshot.backup.rightafterbackup snapshot right after snapshot is
> > takenfalse
> >
> >
> > Primary storage is Ceph/RDB, Secondary is NFS. I restarted both the
> > management server and the nodes.
> >
> > not really sure if this helps:
> >
> > management-server.log:2013-09-30 12:48:48,196 DEBUG
> > [agent.transport.Request] (Job-Executor-7:job-77 = [
> > 379cc53b-1b43-4a6e-b080-3396daa08187 ]) Seq 1-1254424614: Sending { Cmd ,
> > MgmtId: 148417590936615, via: 1, Ver: v1, Flags: 100111,
> >
> >
> [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path":"vms/5065da10-4d2d-426a-a794-f02f29ca57ed/18ef0d32-1c56-4d5e-89df-9b5a0f5ef798","volume":{"uuid":"a84300b2-189f-4a55-9232-a048ae94f7fb","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3e937dc8-0dfc-3bf4-8910-8a17aa6a3344","id":5,"poolType":"RBD","host":"10.30.40.2","path":"vms","port":6789}},"name":"ROOT-13","size":8589934592,"path":"5065da10-4d2d-426a-a794-f02f29ca57ed","volumeId":23,"vmName":"i-2-13-VM","accountId":2,"format":"RAW","id":23,"hypervisorType":"KVM"},"dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3e937dc8-0dfc-3bf4-8910-8a17aa6a3344","id":5,"poolType":"RBD","host":"10.30.40.2","path":"vms","port":6789}},"vmName":"i-2-13-VM","name":"5b49e069-41ae-4acf-a042-5d8f43dbe665_ROOT-13_20130930104846","hypervisorType":"KVM","id":12}},"destTO":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path":"snapshots/2/23","volume":{"uuid":"a84300b2-189f-4a55-9232-a048ae94f7fb","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3e937dc8-0dfc-3bf4-8910-8a17aa6a3344","id":5,"poolType":"RBD","host":"10.30.40.2","path":"vms","port":6789}},"name":"ROOT-13","size":8589934592,"path":"5065da10-4d2d-426a-a794-f02f29ca57ed","volumeId":23,"vmName":"i-2-13-VM","accountId":2,"format":"RAW","id":23,"hypervisorType":"KVM"},"dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://
> > 10.30.31.14/export/secondary
> >
> ","_role":"Image"}},"vmName":"i-2-13-VM","name":"5b49e069-41ae-4acf-a042-5d8f43dbe665_ROOT-13_20130930104846","hypervisorType":"KVM","id":12}},"executeInSequence":true,"wait":21600}}]
> > }
> >
> >
> > --Sebastian
> >
> >
> > 2013/9/30 Sanjay Tripathi <sa...@citrix.com>
> >
> > > That's correct.
> > >
> > > Setting up the mentioned global config parameter to false will not copy
> > > the snapshot to secondary storage, snapshot will be available in
> primary
> > > storage.
> > >
> > > --Sanjay
> > >
> > > > -----Original Message-----
> > > > From: Sebastian Igerl [mailto:igerlster@gmail.com]
> > > > Sent: Monday, September 30, 2013 4:08 PM
> > > > To: users@cloudstack.apache.org
> > > > Subject: Disable copy snapshot to secondary storage in CS 4.2
> > > >
> > > > Hi All,
> > > >
> > > > i'm trying to disable that a snapshots get copied to secondary
> storage
> > > right
> > > > after it's creation.
> > > > I thought if i set "snapshot.backup.rightafter" to false this should
> > > work ?
> > > >
> > > > Any thoughts ?
> > > >
> > > >
> > > > Thanks
> > > >
> > > > Sebastian
> > >
> >
> >
>
>

Re: Disable copy snapshot to secondary storage in CS 4.2

Posted by Andrei Mikhailovsky <an...@arhont.com>.
Nope, I've not upgraded to 4.2 yet. Just checking the issues before doing the upgrade 



----- Original Message -----

From: "Sebastian Igerl" <ig...@gmail.com> 
To: users@cloudstack.apache.org 
Sent: Friday, 4 October, 2013 7:05:30 PM 
Subject: Re: Disable copy snapshot to secondary storage in CS 4.2 

no, it's still not working, did you have any luck jet? 


2013/10/4 Andrei Mikhailovsky <an...@arhont.com> 

> Sebastian, 
> 
> Did you manage to solve this, or is this option not working properly? I am 
> also on rbd and looking to disable secondary storage copy of the snapshots. 
> 
> Thanks 
> ----- Original Message ----- 
> 
> From: "Sebastian Igerl" <ig...@gmail.com> 
> To: users@cloudstack.apache.org 
> Sent: Monday, 30 September, 2013 12:01:21 PM 
> Subject: Re: Disable copy snapshot to secondary storage in CS 4.2 
> 
> Hmm.. but it still does. maybe a bug ? 
> snapshot.backup.rightafterbackup snapshot right after snapshot is 
> takenfalse 
> 
> 
> Primary storage is Ceph/RDB, Secondary is NFS. I restarted both the 
> management server and the nodes. 
> 
> not really sure if this helps: 
> 
> management-server.log:2013-09-30 12:48:48,196 DEBUG 
> [agent.transport.Request] (Job-Executor-7:job-77 = [ 
> 379cc53b-1b43-4a6e-b080-3396daa08187 ]) Seq 1-1254424614: Sending { Cmd , 
> MgmtId: 148417590936615, via: 1, Ver: v1, Flags: 100111, 
> 
> [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path":"vms/5065da10-4d2d-426a-a794-f02f29ca57ed/18ef0d32-1c56-4d5e-89df-9b5a0f5ef798","volume":{"uuid":"a84300b2-189f-4a55-9232-a048ae94f7fb","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3e937dc8-0dfc-3bf4-8910-8a17aa6a3344","id":5,"poolType":"RBD","host":"10.30.40.2","path":"vms","port":6789}},"name":"ROOT-13","size":8589934592,"path":"5065da10-4d2d-426a-a794-f02f29ca57ed","volumeId":23,"vmName":"i-2-13-VM","accountId":2,"format":"RAW","id":23,"hypervisorType":"KVM"},"dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3e937dc8-0dfc-3bf4-8910-8a17aa6a3344","id":5,"poolType":"RBD","host":"10.30.40.2","path":"vms","port":6789}},"vmName":"i-2-13-VM","name":"5b49e069-41ae-4acf-a042-5d8f43dbe665_ROOT-13_20130930104846","hypervisorType":"KVM","id":12}},"destTO":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path":"snapshots/2/23","volume":{"uuid":"a84300b2-189f-4a55-9232-a048ae94f7fb","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3e937dc8-0dfc-3bf4-8910-8a17aa6a3344","id":5,"poolType":"RBD","host":"10.30.40.2","path":"vms","port":6789}},"name":"ROOT-13","size":8589934592,"path":"5065da10-4d2d-426a-a794-f02f29ca57ed","volumeId":23,"vmName":"i-2-13-VM","accountId":2,"format":"RAW","id":23,"hypervisorType":"KVM"},"dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs:// 
> 10.30.31.14/export/secondary 
> ","_role":"Image"}},"vmName":"i-2-13-VM","name":"5b49e069-41ae-4acf-a042-5d8f43dbe665_ROOT-13_20130930104846","hypervisorType":"KVM","id":12}},"executeInSequence":true,"wait":21600}}] 
> } 
> 
> 
> --Sebastian 
> 
> 
> 2013/9/30 Sanjay Tripathi <sa...@citrix.com> 
> 
> > That's correct. 
> > 
> > Setting up the mentioned global config parameter to false will not copy 
> > the snapshot to secondary storage, snapshot will be available in primary 
> > storage. 
> > 
> > --Sanjay 
> > 
> > > -----Original Message----- 
> > > From: Sebastian Igerl [mailto:igerlster@gmail.com] 
> > > Sent: Monday, September 30, 2013 4:08 PM 
> > > To: users@cloudstack.apache.org 
> > > Subject: Disable copy snapshot to secondary storage in CS 4.2 
> > > 
> > > Hi All, 
> > > 
> > > i'm trying to disable that a snapshots get copied to secondary storage 
> > right 
> > > after it's creation. 
> > > I thought if i set "snapshot.backup.rightafter" to false this should 
> > work ? 
> > > 
> > > Any thoughts ? 
> > > 
> > > 
> > > Thanks 
> > > 
> > > Sebastian 
> > 
> 
> 


Re: Disable copy snapshot to secondary storage in CS 4.2

Posted by Sebastian Igerl <ig...@gmail.com>.
no, it's still not working, did you have any luck jet?


2013/10/4 Andrei Mikhailovsky <an...@arhont.com>

> Sebastian,
>
> Did you manage to solve this, or is this option not working properly? I am
> also on rbd and looking to disable secondary storage copy of the snapshots.
>
> Thanks
> ----- Original Message -----
>
> From: "Sebastian Igerl" <ig...@gmail.com>
> To: users@cloudstack.apache.org
> Sent: Monday, 30 September, 2013 12:01:21 PM
> Subject: Re: Disable copy snapshot to secondary storage in CS 4.2
>
> Hmm.. but it still does. maybe a bug ?
> snapshot.backup.rightafterbackup snapshot right after snapshot is
> takenfalse
>
>
> Primary storage is Ceph/RDB, Secondary is NFS. I restarted both the
> management server and the nodes.
>
> not really sure if this helps:
>
> management-server.log:2013-09-30 12:48:48,196 DEBUG
> [agent.transport.Request] (Job-Executor-7:job-77 = [
> 379cc53b-1b43-4a6e-b080-3396daa08187 ]) Seq 1-1254424614: Sending { Cmd ,
> MgmtId: 148417590936615, via: 1, Ver: v1, Flags: 100111,
>
> [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path":"vms/5065da10-4d2d-426a-a794-f02f29ca57ed/18ef0d32-1c56-4d5e-89df-9b5a0f5ef798","volume":{"uuid":"a84300b2-189f-4a55-9232-a048ae94f7fb","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3e937dc8-0dfc-3bf4-8910-8a17aa6a3344","id":5,"poolType":"RBD","host":"10.30.40.2","path":"vms","port":6789}},"name":"ROOT-13","size":8589934592,"path":"5065da10-4d2d-426a-a794-f02f29ca57ed","volumeId":23,"vmName":"i-2-13-VM","accountId":2,"format":"RAW","id":23,"hypervisorType":"KVM"},"dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3e937dc8-0dfc-3bf4-8910-8a17aa6a3344","id":5,"poolType":"RBD","host":"10.30.40.2","path":"vms","port":6789}},"vmName":"i-2-13-VM","name":"5b49e069-41ae-4acf-a042-5d8f43dbe665_ROOT-13_20130930104846","hypervisorType":"KVM","id":12}},"destTO":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path":"snapshots/2/23","volume":{"uuid":"a84300b2-189f-4a55-9232-a048ae94f7fb","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3e937dc8-0dfc-3bf4-8910-8a17aa6a3344","id":5,"poolType":"RBD","host":"10.30.40.2","path":"vms","port":6789}},"name":"ROOT-13","size":8589934592,"path":"5065da10-4d2d-426a-a794-f02f29ca57ed","volumeId":23,"vmName":"i-2-13-VM","accountId":2,"format":"RAW","id":23,"hypervisorType":"KVM"},"dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://
> 10.30.31.14/export/secondary
> ","_role":"Image"}},"vmName":"i-2-13-VM","name":"5b49e069-41ae-4acf-a042-5d8f43dbe665_ROOT-13_20130930104846","hypervisorType":"KVM","id":12}},"executeInSequence":true,"wait":21600}}]
> }
>
>
> --Sebastian
>
>
> 2013/9/30 Sanjay Tripathi <sa...@citrix.com>
>
> > That's correct.
> >
> > Setting up the mentioned global config parameter to false will not copy
> > the snapshot to secondary storage, snapshot will be available in primary
> > storage.
> >
> > --Sanjay
> >
> > > -----Original Message-----
> > > From: Sebastian Igerl [mailto:igerlster@gmail.com]
> > > Sent: Monday, September 30, 2013 4:08 PM
> > > To: users@cloudstack.apache.org
> > > Subject: Disable copy snapshot to secondary storage in CS 4.2
> > >
> > > Hi All,
> > >
> > > i'm trying to disable that a snapshots get copied to secondary storage
> > right
> > > after it's creation.
> > > I thought if i set "snapshot.backup.rightafter" to false this should
> > work ?
> > >
> > > Any thoughts ?
> > >
> > >
> > > Thanks
> > >
> > > Sebastian
> >
>
>

Re: Disable copy snapshot to secondary storage in CS 4.2

Posted by Andrei Mikhailovsky <an...@arhont.com>.
Sebastian, 

Did you manage to solve this, or is this option not working properly? I am also on rbd and looking to disable secondary storage copy of the snapshots. 

Thanks 
----- Original Message -----

From: "Sebastian Igerl" <ig...@gmail.com> 
To: users@cloudstack.apache.org 
Sent: Monday, 30 September, 2013 12:01:21 PM 
Subject: Re: Disable copy snapshot to secondary storage in CS 4.2 

Hmm.. but it still does. maybe a bug ? 
snapshot.backup.rightafterbackup snapshot right after snapshot is takenfalse 


Primary storage is Ceph/RDB, Secondary is NFS. I restarted both the 
management server and the nodes. 

not really sure if this helps: 

management-server.log:2013-09-30 12:48:48,196 DEBUG 
[agent.transport.Request] (Job-Executor-7:job-77 = [ 
379cc53b-1b43-4a6e-b080-3396daa08187 ]) Seq 1-1254424614: Sending { Cmd , 
MgmtId: 148417590936615, via: 1, Ver: v1, Flags: 100111, 
[{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path":"vms/5065da10-4d2d-426a-a794-f02f29ca57ed/18ef0d32-1c56-4d5e-89df-9b5a0f5ef798","volume":{"uuid":"a84300b2-189f-4a55-9232-a048ae94f7fb","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3e937dc8-0dfc-3bf4-8910-8a17aa6a3344","id":5,"poolType":"RBD","host":"10.30.40.2","path":"vms","port":6789}},"name":"ROOT-13","size":8589934592,"path":"5065da10-4d2d-426a-a794-f02f29ca57ed","volumeId":23,"vmName":"i-2-13-VM","accountId":2,"format":"RAW","id":23,"hypervisorType":"KVM"},"dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3e937dc8-0dfc-3bf4-8910-8a17aa6a3344","id":5,"poolType":"RBD","host":"10.30.40.2","path":"vms","port":6789}},"vmName":"i-2-13-VM","name":"5b49e069-41ae-4acf-a042-5d8f43dbe665_ROOT-13_20130930104846","hypervisorType":"KVM","id":12}},"destTO":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path":"snapshots/2/23","volume":{"uuid":"a84300b2-189f-4a55-9232-a048ae94f7fb","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3e937dc8-0dfc-3bf4-8910-8a17aa6a3344","id":5,"poolType":"RBD","host":"10.30.40.2","path":"vms","port":6789}},"name":"ROOT-13","size":8589934592,"path":"5065da10-4d2d-426a-a794-f02f29ca57ed","volumeId":23,"vmName":"i-2-13-VM","accountId":2,"format":"RAW","id":23,"hypervisorType":"KVM"},"dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs:// 
10.30.31.14/export/secondary","_role":"Image"}},"vmName":"i-2-13-VM","name":"5b49e069-41ae-4acf-a042-5d8f43dbe665_ROOT-13_20130930104846","hypervisorType":"KVM","id":12}},"executeInSequence":true,"wait":21600}}] 
} 


--Sebastian 


2013/9/30 Sanjay Tripathi <sa...@citrix.com> 

> That's correct. 
> 
> Setting up the mentioned global config parameter to false will not copy 
> the snapshot to secondary storage, snapshot will be available in primary 
> storage. 
> 
> --Sanjay 
> 
> > -----Original Message----- 
> > From: Sebastian Igerl [mailto:igerlster@gmail.com] 
> > Sent: Monday, September 30, 2013 4:08 PM 
> > To: users@cloudstack.apache.org 
> > Subject: Disable copy snapshot to secondary storage in CS 4.2 
> > 
> > Hi All, 
> > 
> > i'm trying to disable that a snapshots get copied to secondary storage 
> right 
> > after it's creation. 
> > I thought if i set "snapshot.backup.rightafter" to false this should 
> work ? 
> > 
> > Any thoughts ? 
> > 
> > 
> > Thanks 
> > 
> > Sebastian 
> 


Re: Disable copy snapshot to secondary storage in CS 4.2

Posted by Sebastian Igerl <ig...@gmail.com>.
Hmm..  but it still does. maybe a bug ?
snapshot.backup.rightafterbackup snapshot right after snapshot is takenfalse


Primary storage is Ceph/RDB, Secondary is NFS. I restarted both the
management server and the nodes.

not really sure if this helps:

management-server.log:2013-09-30 12:48:48,196 DEBUG
[agent.transport.Request] (Job-Executor-7:job-77 = [
379cc53b-1b43-4a6e-b080-3396daa08187 ]) Seq 1-1254424614: Sending  { Cmd ,
MgmtId: 148417590936615, via: 1, Ver: v1, Flags: 100111,
[{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path":"vms/5065da10-4d2d-426a-a794-f02f29ca57ed/18ef0d32-1c56-4d5e-89df-9b5a0f5ef798","volume":{"uuid":"a84300b2-189f-4a55-9232-a048ae94f7fb","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3e937dc8-0dfc-3bf4-8910-8a17aa6a3344","id":5,"poolType":"RBD","host":"10.30.40.2","path":"vms","port":6789}},"name":"ROOT-13","size":8589934592,"path":"5065da10-4d2d-426a-a794-f02f29ca57ed","volumeId":23,"vmName":"i-2-13-VM","accountId":2,"format":"RAW","id":23,"hypervisorType":"KVM"},"dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3e937dc8-0dfc-3bf4-8910-8a17aa6a3344","id":5,"poolType":"RBD","host":"10.30.40.2","path":"vms","port":6789}},"vmName":"i-2-13-VM","name":"5b49e069-41ae-4acf-a042-5d8f43dbe665_ROOT-13_20130930104846","hypervisorType":"KVM","id":12}},"destTO":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path":"snapshots/2/23","volume":{"uuid":"a84300b2-189f-4a55-9232-a048ae94f7fb","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"3e937dc8-0dfc-3bf4-8910-8a17aa6a3344","id":5,"poolType":"RBD","host":"10.30.40.2","path":"vms","port":6789}},"name":"ROOT-13","size":8589934592,"path":"5065da10-4d2d-426a-a794-f02f29ca57ed","volumeId":23,"vmName":"i-2-13-VM","accountId":2,"format":"RAW","id":23,"hypervisorType":"KVM"},"dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://
10.30.31.14/export/secondary","_role":"Image"}},"vmName":"i-2-13-VM","name":"5b49e069-41ae-4acf-a042-5d8f43dbe665_ROOT-13_20130930104846","hypervisorType":"KVM","id":12}},"executeInSequence":true,"wait":21600}}]
}


--Sebastian


2013/9/30 Sanjay Tripathi <sa...@citrix.com>

> That's correct.
>
> Setting up the mentioned global config parameter to false will not copy
> the snapshot to secondary storage, snapshot will be available in primary
> storage.
>
> --Sanjay
>
> > -----Original Message-----
> > From: Sebastian Igerl [mailto:igerlster@gmail.com]
> > Sent: Monday, September 30, 2013 4:08 PM
> > To: users@cloudstack.apache.org
> > Subject: Disable copy snapshot to secondary storage in CS 4.2
> >
> > Hi All,
> >
> > i'm trying to disable that a snapshots get copied to secondary storage
> right
> > after it's creation.
> > I thought if i set "snapshot.backup.rightafter" to false this should
> work ?
> >
> > Any thoughts ?
> >
> >
> > Thanks
> >
> > Sebastian
>

RE: Disable copy snapshot to secondary storage in CS 4.2

Posted by Sanjay Tripathi <sa...@citrix.com>.
That's correct.

Setting up the mentioned global config parameter to false will not copy the snapshot to secondary storage, snapshot will be available in primary storage.

--Sanjay

> -----Original Message-----
> From: Sebastian Igerl [mailto:igerlster@gmail.com]
> Sent: Monday, September 30, 2013 4:08 PM
> To: users@cloudstack.apache.org
> Subject: Disable copy snapshot to secondary storage in CS 4.2
> 
> Hi All,
> 
> i'm trying to disable that a snapshots get copied to secondary storage right
> after it's creation.
> I thought if i set "snapshot.backup.rightafter" to false this should work ?
> 
> Any thoughts ?
> 
> 
> Thanks
> 
> Sebastian