We're Hiring!

Deleting images doesn't free space

General user discussion about using the OMERO platform to its fullest. Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

There are workflow guides for various OMERO functions on our help site - http://help.openmicroscopy.org

You should find answers to any basic questions about using the clients there.

Re: Deleting images doesn't free space

Postby dgarneau » Wed May 25, 2016 7:53 pm

Hi,

it's the user number 803 (should have mention it in the previous post). It would be hard to know when the images were imported. February or March is the closest I can get.

Daniel
dgarneau
 
Posts: 22
Joined: Fri Apr 01, 2016 8:16 pm

Re: Deleting images doesn't free space

Postby jmoore » Wed May 25, 2016 8:02 pm

Hi Daniel,

can you try a query like this:

Code: Select all
$ omero hql -q "select f.id, f.templatePrefix, count(i.id) from Fileset f left outer join f.images i where f.details.creationEvent.time > '2016-02-01' and f.details.owner.id = 803 group by f.id, f.templatePrefix"
#  | Col1  | Col2                            | Col3
----+-------+---------------------------------+------
0  | 20656 | demo_2/2016-05/20/16-37-52.836/ | 3
1  | 19333 | demo_2/2016-05/18/08-05-51.906/ | 1
2  | 19462 | demo_2/2016-05/18/09-11-27.188/ | 1
...


Cheers,
~Josh.
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: Deleting images doesn't free space

Postby dgarneau » Mon May 30, 2016 7:38 pm

Hi,

we tried two queries, both with no results:

Code: Select all
omero@omero3:~$ omero hql -q "select f.id, f.templatePrefix, count(i.id) from Fileset f left outer join f.images i where f.details.creationEvent.time > '2016-02-01' and f.details.owner.id = 803 group by f.id, f.templatePrefix"
Previous session expired for root on localhost:4064
Server: [localhost:4064]
Username: [root]
Password:
#
---
(0 rows)


Code: Select all
omero@omero3:~$ omero hql -q "select f.id, f.templatePrefix, count(i.id) from Fileset f left outer join f.images i where f.details.creationEvent.time > '2015-01-01' and f.details.owner.id = 803 group by f.id, f.templatePrefix"
#
---
(0 rows)
dgarneau
 
Posts: 22
Joined: Fri Apr 01, 2016 8:16 pm

Re: Deleting images doesn't free space

Postby jmoore » Mon Jun 06, 2016 9:51 am

Hi Daniel,

sorry, I should have added it to my example. Can you add `--all` to your `bin/omero hql` statement when logging in as root? (since the data is likely in a different group)

~Josh.
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: Deleting images doesn't free space

Postby dgarneau » Wed Jun 08, 2016 6:53 pm

Hi Josh,

here is the result of the new query, I'm just not sure what it means.

Code: Select all
omero@omero3:~$ omero hql --all -q "select f.id, f.templatePrefix, count(i.id) from Fileset f left outer join f.images i where f.details.creationEvent.time > '2016-02-01' and f.details.owner.id = 803 group by f.id, f.templatePrefix"
# | Col1  | Col2                                  | Col3
---+-------+---------------------------------------+------
0 | 35510 | mvasseur_803/2016-03/21/10-47-26.812/ | 0   
1 | 37573 | mvasseur_803/2016-03/31/08-48-08.538/ | 0   
2 | 32011 | mvasseur_803/2016-02/25/11-24-46.983/ | 0   
(3 rows)


Thank you for your help,
Daniel
dgarneau
 
Posts: 22
Joined: Fri Apr 01, 2016 8:16 pm

Re: Deleting images doesn't free space

Postby jmoore » Wed Jun 08, 2016 7:49 pm

Those 3 filesets -- 35510, 37573, 32011 -- have no images but likely have files associated. You can either check for the timestamp directories yourself, e.g. /OMERO/ManagedRepository/mvasseur_803/2016-03/21/10-47-26.812/, or you can let OMERO clean them up:

bin/omero delete Fileset:35510

Add: "--report --dry-run" if you want to see what will be deleted. (This is a good thing!)

All the best,
~Josh.
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: Deleting images doesn't free space

Postby dgarneau » Thu Jun 09, 2016 4:41 pm

Hi,

just to let you know it worked, we finally freed the space.
Thanks for all the help.

Daniel
dgarneau
 
Posts: 22
Joined: Fri Apr 01, 2016 8:16 pm

Re: Deleting images doesn't free space

Postby jmoore » Fri Jun 10, 2016 6:35 am

Glad to hear it, Daniel.

~Josh
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Previous

Return to User Discussion

Who is online

Users browsing this forum: No registered users and 1 guest