You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by "Leeno Jose.P.A" <le...@gmail.com> on 2013/08/26 15:29:54 UTC

Deleted VM's disk not removed from primary storage

Hi Users,

I use CS 4.1 and XS 6.1 with NFS as primary storage. I am facing an issue
with storage cleanup. Issue is that, deleted VMs disks are not removed from
primary storage even after garbage collector is executed.

Any hints please?


Thanks in advance
Leeno Jose .P.A

Re: Deleted VM's disk not removed from primary storage

Posted by "Leeno Jose.P.A" <le...@gmail.com>.
Following are from /var/log/SMlog,


[25531] 2013-08-27 10:45:36.758471        pread SUCCESS
[25531] 2013-08-27 10:45:36.759520      vdi_delete {'sr_uuid':
'3e19cca0-08f2-a27b-6e07-5db234ed903c', 'subtask_of':
'DummyRef:|8a19c1d2-5fea-1803-9fbf-a38914513659|VDI.destroy', 'vdi_ref':
'OpaqueRef:9a136f2d-7241-a723-ab07-cfe19e9d4401', 'vdi_on_boot': 'persist',
'args': [], 'vdi_location': 'd1e9afbe-2775-4b23-b32b-37052eeed6bf',
'host_ref': 'OpaqueRef:1791eb6e-7921-5e10-0bee-836f4bb6ec97',
'session_ref': 'OpaqueRef:d10a9dc4-1c0c-58f2-3930-9a0de5394e67',
'device_config': {'SRmaster': 'true', 'serverpath': '/cstagzb-pds01',
'server': '192.168.10.252'}, 'command': 'vdi_delete', 'vdi_allow_caching':
'false', 'sr_ref': 'OpaqueRef:c03b9f9f-4e50-8a1e-b121-2184793ced9b',
'local_cache_sr': '73cdb52e-b431-710d-707d-a18680813cac', 'vdi_uuid':
'd1e9afbe-2775-4b23-b32b-37052eeed6bf'}
[25531] 2013-08-27 10:45:36.759679      ['/usr/bin/vhd-util', 'set',
'--debug', '-n',
'/var/run/sr-mount/3e19cca0-08f2-a27b-6e07-5db234ed903c/d1e9afbe-2775-4b23-b32b-37052eeed6bf.vhd',
'-f', 'hidden', '-v', '1']
[25531] 2013-08-27 10:45:36.787333        pread SUCCESS


But
/var/run/sr-mount/3e19cca0-08f2-a27b-6e07-5db234ed903c/d1e9afbe-2775-4b23-b32b-37052eeed6bf.vhd
not deleted yet.

[root@cstagZA-XCA-HV02 log]# ls -l
/var/run/sr-mount/3e19cca0-08f2-a27b-6e07-5db234ed903c/d1e9afbe-2775-4b23-b32b-37052eeed6bf.vhd
-rw-r--r-- 1 root root 1277600256 Aug 27 10:44
/var/run/sr-mount/3e19cca0-08f2-a27b-6e07-5db234ed903c/d1e9afbe-2775-4b23-b32b-37052eeed6bf.vhd


Thanks
Leeno


On Mon, Aug 26, 2013 at 9:46 PM, Leeno Jose.P.A <le...@gmail.com> wrote:

>
> Both expunge.delay and expunge.interval are set to 300 and VM are
> disappeared from UI after 300 sec but disk files are not deleted from
> primary storage.
>
> Thanks
> Leeno
>
>
> On Mon, Aug 26, 2013 at 7:24 PM, Travis Graham <t...@tgraham.us> wrote:
>
>> Hey Leeno,
>>
>> In your Global Settings, what do you have expunge.delay and
>> expunge.interval set to? You can set each to 600, the minimum of 10 minutes
>> to run the expunge job and remove VMs that have been deleted at least 10
>> minutes ago.
>>
>> Travis
>>
>> On Aug 26, 2013, at 9:29 AM, Leeno Jose.P.A <le...@gmail.com> wrote:
>>
>> > Hi Users,
>> >
>> > I use CS 4.1 and XS 6.1 with NFS as primary storage. I am facing an
>> issue
>> > with storage cleanup. Issue is that, deleted VMs disks are not removed
>> from
>> > primary storage even after garbage collector is executed.
>> >
>> > Any hints please?
>> >
>> >
>> > Thanks in advance
>> > Leeno Jose .P.A
>>
>>
>
>
> --
> Leeno Jose .P.A
>



-- 
Leeno Jose .P.A

Re: Deleted VM's disk not removed from primary storage

Posted by "Leeno Jose.P.A" <le...@gmail.com>.
Both expunge.delay and expunge.interval are set to 300 and VM are
disappeared from UI after 300 sec but disk files are not deleted from
primary storage.

Thanks
Leeno


On Mon, Aug 26, 2013 at 7:24 PM, Travis Graham <t...@tgraham.us> wrote:

> Hey Leeno,
>
> In your Global Settings, what do you have expunge.delay and
> expunge.interval set to? You can set each to 600, the minimum of 10 minutes
> to run the expunge job and remove VMs that have been deleted at least 10
> minutes ago.
>
> Travis
>
> On Aug 26, 2013, at 9:29 AM, Leeno Jose.P.A <le...@gmail.com> wrote:
>
> > Hi Users,
> >
> > I use CS 4.1 and XS 6.1 with NFS as primary storage. I am facing an issue
> > with storage cleanup. Issue is that, deleted VMs disks are not removed
> from
> > primary storage even after garbage collector is executed.
> >
> > Any hints please?
> >
> >
> > Thanks in advance
> > Leeno Jose .P.A
>
>


-- 
Leeno Jose .P.A

Re: Deleted VM's disk not removed from primary storage

Posted by Travis Graham <t...@tgraham.us>.
Hey Leeno,

In your Global Settings, what do you have expunge.delay and expunge.interval set to? You can set each to 600, the minimum of 10 minutes to run the expunge job and remove VMs that have been deleted at least 10 minutes ago.

Travis

On Aug 26, 2013, at 9:29 AM, Leeno Jose.P.A <le...@gmail.com> wrote:

> Hi Users,
> 
> I use CS 4.1 and XS 6.1 with NFS as primary storage. I am facing an issue
> with storage cleanup. Issue is that, deleted VMs disks are not removed from
> primary storage even after garbage collector is executed.
> 
> Any hints please?
> 
> 
> Thanks in advance
> Leeno Jose .P.A