Return-Path: X-Original-To: apmail-cloudstack-users-archive@www.apache.org Delivered-To: apmail-cloudstack-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 58B3510AB4 for ; Thu, 4 Jul 2013 17:59:04 +0000 (UTC) Received: (qmail 48890 invoked by uid 500); 4 Jul 2013 17:59:03 -0000 Delivered-To: apmail-cloudstack-users-archive@cloudstack.apache.org Received: (qmail 48498 invoked by uid 500); 4 Jul 2013 17:59:02 -0000 Mailing-List: contact users-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cloudstack.apache.org Delivered-To: mailing list users@cloudstack.apache.org Received: (qmail 48486 invoked by uid 99); 4 Jul 2013 17:59:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jul 2013 17:59:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of leenojos@gmail.com designates 209.85.128.171 as permitted sender) Received: from [209.85.128.171] (HELO mail-ve0-f171.google.com) (209.85.128.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jul 2013 17:58:53 +0000 Received: by mail-ve0-f171.google.com with SMTP id b10so1202524vea.2 for ; Thu, 04 Jul 2013 10:58:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=eIpwJduWtyDXnHb3BDmW+7qcbMy2SQqY6hpj4l4RtvQ=; b=KDqdCIhwWVVeGaHB17FRUC1H6VBz12mkW6PPUVuI2/tlUKk2brkKu3HEsRWr/KJgXC DNCIKxkUuNWtbqa1oBhHKBe6+u95WJK42PT4uWP3xx157fA9yv8mrvij67yq2yvM0soK NQpLX8xdS5Wyxui7bMCAT+XPsqlDQveHwuHxSQx4o3SnlURmFxT0rrLQdH3Zg9v2/6jo ugKJ0H8RfFZjLnAJpJrHLbrzpftVytXdx0E1j9DVekDWWqgZsklOeoUHELdbrQ63i116 YkmMKkEV3DyxiymtQOU87t3vNSNGEyonaZTxDi7bBzGdc3Rf76pGxxqCem0OajGjhXSj CCWg== MIME-Version: 1.0 X-Received: by 10.52.66.49 with SMTP id c17mr3272988vdt.94.1372960712584; Thu, 04 Jul 2013 10:58:32 -0700 (PDT) Received: by 10.58.164.134 with HTTP; Thu, 4 Jul 2013 10:58:32 -0700 (PDT) In-Reply-To: References: Date: Thu, 4 Jul 2013 23:28:32 +0530 Message-ID: Subject: Re: Snapshot not removed From: "Leeno Jose.P.A" To: users@cloudstack.apache.org, aemneina@gmail.com Content-Type: multipart/alternative; boundary=20cf3071d00a907efa04e0b3535e X-Virus-Checked: Checked by ClamAV on apache.org --20cf3071d00a907efa04e0b3535e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Ah.. it worked now, removing snapshots even if CS is throwing above error in log. But it's not removing destroyed vm's snapshots. -- Leeno On Thu, Jul 4, 2013 at 11:01 PM, Leeno Jose.P.A wrote: > Thanks Ahmad. > > I set interval to 300 for testing. But still snapshots are not deleted. I= n > management.log i see, > > 2013-07-04 13:18:09,202 DEBUG [agent.manager.DirectAgentAttache] > (DirectAgent-65:null) Seq 47-153092120: Executing request > 2013-07-04 13:18:09,614 DEBUG [cloud.storage.StorageManagerImpl] > (StorageManager-Scavenger-1:null) Storage pool garbage collector found 0 > templates to clean up in storage pool: cstagzb-pds01 > 2013-07-04 13:18:09,616 DEBUG [cloud.storage.StorageManagerImpl] > (StorageManager-Scavenger-1:null) Secondary storage garbage collector fou= nd > 0 templates to cleanup on secondary storage host: nfs:// > 192.168.12.251/cstagzb-sds01 > 2013-07-04 13:18:09,617 WARN [cloud.storage.StorageManagerImpl] > (StorageManager-Scavenger-1:null) problem cleaning up snapshots in > secondary storage Host[-40-SecondaryStorage] > java.lang.NullPointerException > at > com.cloud.storage.StorageManagerImpl.cleanupSecondaryStorage(StorageManag= erImpl.java:2531) > at > com.cloud.utils.component.ComponentInstantiationPostProcessor$Interceptor= Dispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at > com.cloud.storage.StorageManagerImpl.cleanupStorage(StorageManagerImpl.ja= va:2403) > at > com.cloud.storage.StorageManagerImpl$StorageGarbageCollector.run(StorageM= anagerImpl.java:3757) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at > java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351= ) > at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:17= 8) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce= ss$201(ScheduledThreadPoolExecutor.java:165) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(= ScheduledThreadPoolExecutor.java:267) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java= :1146) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.jav= a:615) > at java.lang.Thread.run(Thread.java:679) > 2013-07-04 13:18:09,622 DEBUG [agent.transport.Request] > (StorageManager-Scavenger-1:null) Seq 50-1192034327: Sending { Cmd , > MgmtId: 130602634328, via: 50, Ver: v1, Flags: 100011, [{"CleanupSnapsh > otBackupCommand":{"secondaryStoragePoolURL":"nfs:// > 192.168.12.251/cstagzb-sds01","dcId":9,"accountId":2,"volumeId":1226,"val= idBackupUUIDs":[],"wait":0}}] > } > 2013-07-04 13:18:09,679 DEBUG [agent.transport.Request] > (AgentManager-Handler-12:null) Seq 50-1192034327: Processing: { Ans: , > MgmtId: 130602634328, via: 50, Ver: v1, Flags: 10, [{"Answer":{"resul > t":true,"wait":0}}] } > > > -- > Leeno > > > On Thu, Jul 4, 2013 at 10:15 PM, Ahmad Emneina wrote= : > >> they wont be removed from the backend until the actual cleanup happens. >> what is set for your storage.cleanup.interval, and storage.cleanup.enabl= ed >> values in the global settings? >> >> >> On Thu, Jul 4, 2013 at 9:30 AM, Leeno Jose.P.A >> wrote: >> >> > Hi All, >> > >> > I ma using Xenserver 6.0.2 with Clodstack 4.1 >> > >> > While deleting snapshots manually, it's getting removed from MS but no= t >> > from nfs secondary storage. >> > >> > I see following logs in SSVM, >> > >> > 2013-07-04 13:09:32,570 DEBUG [cloud.agent.Agent] >> (agentRequest-Handler-3:) >> > Processing command: com.cloud.agent.api.GetStorageStatsCommand >> > 2013-07-04 13:09:32,572 DEBUG >> > [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-3= :) >> > Executing: mount >> > 2013-07-04 13:09:32,575 DEBUG >> > [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-3= :) >> > Execution is successful. >> > 2013-07-04 13:09:37,003 DEBUG [cloud.agent.Agent] >> (agentRequest-Handler-4:) >> > Request:Seq 50-1124270094: { Cmd , MgmtId: 130602634328, via: 50, Ver: >> v1, >> > Flags: 100011, >> > >> > >> [{"DeleteSnapshotBackupCommand":{"all":false,"primaryStoragePoolNameLabe= l":"be695799-ec7e-390b-b600-09ad8f8db048","primaryPool":{"id":210,"uuid":"b= e695799-ec7e-390b-b600-09ad8f8db048","host":"192.168.10.251","path":"/cstag= zb-pds01","port":2049,"type":"NetworkFilesystem"},"snapshotUuid":"127ea7ae-= c7c0-4ee9-938d-80ea23f67e51","secondaryStorageUrl":" >> > nfs://192.168.12.251/cstagzb-sds01 >> > ","dcId":9,"accountId":2,"volumeId":1297,"wait":0}}] >> > } >> > 2013-07-04 13:09:37,003 DEBUG [cloud.agent.Agent] >> (agentRequest-Handler-4:) >> > Processing command: com.cloud.agent.api.DeleteSnapshotBackupCommand >> > 2013-07-04 13:09:37,004 DEBUG >> > [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4= :) >> > Executing: mount >> > 2013-07-04 13:09:37,008 DEBUG >> > [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4= :) >> > Execution is successful. >> > 2013-07-04 13:09:37,011 DEBUG >> > [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4= :) >> > Executing: /bin/bash -c rm -f >> > >> > >> /mnt/SecStorage/71d74169-8641-39ec-aa9a-f2b6045ecdc8:snapshots:2:1297:*1= 27ea7ae-c7c0-4ee9-938d-80ea23f67e51* >> > 2013-07-04 13:09:37,015 DEBUG >> > [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4= :) >> > Execution is successful. >> > 2013-07-04 13:09:37,016 DEBUG [cloud.agent.Agent] >> (agentRequest-Handler-4:) >> > Seq 50-1124270094: { Ans: , MgmtId: 130602634328, via: 50, Ver: v1, >> Flags: >> > 10, [{"Answer":{"result":true,"details":"success","wait":0}}] } >> > 2013-07-04 13:09:52,935 DEBUG [cloud.agent.Agent] (UgentTask-5:) Sendi= ng >> > ping: Seq 50-7: { Cmd , MgmtId: -1, via: 50, Ver: v1, Flags: 11, >> > >> > >> [{"PingStorageCommand":{"changes":{},"hostType":"Storage","hostId":50,"w= ait":0}}] >> > } >> > 2013-07-04 13:09:52,978 DEBUG [cloud.agent.Agent] (Agent-Handler-2:) >> > Received response: Seq 50-7: { Ans: , MgmtId: 130602634328, via: 50, >> Ver: >> > v1, Flags: 100010, >> > >> > >> [{"PingAnswer":{"_command":{"hostType":"Storage","hostId":50,"wait":0},"= result":true,"wait":0}}] >> > } >> > >> > >> > But it's not removing snapshot. The path shown with 'rm' command is >> > >> > >> /mnt/SecStorage/71d74169-8641-39ec-aa9a-f2b6045ecdc8:snapshots:2:1297:*1= 27ea7ae-c7c0-4ee9-938d-80ea23f67e51*. >> > There it is seems directories are separated using ":". Is this correct= ? >> > Shouldn't be "/"? >> > >> > -- >> > Leeno >> > >> > -- >> > Leeno Jose .P.A >> > >> > > > > -- > Leeno Jose .P.A > --=20 Leeno Jose .P.A --20cf3071d00a907efa04e0b3535e--