You're right Tim,

auto-scan is false.
I've triggered a sr-scan now. Is there any way to notice if it has
completed or not?

Here's other-config and sm-config if relevant:
other-config (MRW): trim_last_triggered: 1430856300.47; auto-scan: false
sm-config (MRO): allocation: thick; use_vhd: true; last-coalesce-error:
1430305998; multipathable: true

-- 
Erik

On Tue, May 5, 2015 at 10:57 PM, Tim Mackey <[email protected]> wrote:

> If the automatic SR scan isn't happening, garbage collection also won't
> happen.  This is something I ran into very recently in another project.  To
> check if the auto-scan is disabled, issue the following command:
>
> xe sr-list uuid=[your uuid] params=all
>
> look at the "other-config" and see if there is an "auto-scan: false"
> entry.  If so, then auto-scan isn't going to run.  To kick it off manually,
> issue the following command:
>
> xe sr-scan uuid=[your uuid]
>
> Depending upon how much stuff is in there, it could take some time (read
> hours).  If there are still things left kicking around after this is all
> done, look in the SMlog for exceptions and see what they have to say.
>
> -tim
>
> On Tue, May 5, 2015 at 4:23 PM, Erik Weber <[email protected]> wrote:
>
> > Cleanup is enabled.
> >
> > No errors in SMlog,
> > this is the output of vhd-util scan: http://pastebin.com/amBdJSSG
> >
> > --
> > Erik
> >
> > On Tue, May 5, 2015 at 10:10 PM, Somesh Naidu <[email protected]>
> > wrote:
> >
> > > No, that is not the expectation unless you have storage cleanup
> disabled
> > > (storage.cleanup.enabled).
> > >
> > > "quite some stale snapshots " - that sounds like leftovers from failed
> CS
> > > snapshot operation and/or failing SR scan on XS due to some corrupt
> VHDs
> > > interrupting XS GC. Can you check for errors in SMlog on XS relating to
> > GC
> > > on the particular SR?
> > >
> > > Somesh
> > > CloudPlatform Escalations
> > > Citrix Systems, Inc.
> > >
> > > -----Original Message-----
> > > From: Erik Weber [mailto:[email protected]]
> > > Sent: Tuesday, May 05, 2015 3:38 PM
> > > To: [email protected]
> > > Subject: Rogue / stale snapshots with XenServer
> > >
> > > I seem to have quite some stale snapshots on my primary storage, of
> both
> > > deleted vms, volumes and snapshots from ACS.
> > > I'm using FC with PreSetup on XenServer 6.5, with latest RC of ACS
> 4.5.1
> > >
> > > Is it expected to do manual cleanup on the SR?
> > >
> > > --
> > >
> > > Erik
> > >
> >
>

Reply via email to