Thank you very much!
Best,
Leo
Leo,
The error CAT_RESOURCE_NOT_EMPTY means that the Resource has some data
objects stored in it. (The CAT_ means that this error was returned
from the catalog routines (ICAT).) This is even explained more, via
the level 0 message: resource 'Test' contains one or more dataObjects.
If you don't see any files on the resource, they are probably in the
trash. You may need to do an 'irmtrash'.
- Wayne -
There are ways to force the removal of a resource, but it would be
better to find out why the 'iadmin rmresc Test' does not work. As far
as I know, the command is working fine, but if not we need to fix it.
You may have files stored that you didn't know about or 'irmtrash'
might not have succeeded.
You might try running iquest with the following command to list files
stored on a particular resource:
iquest "SELECT DATA_NAME WHERE DATA_RESC_NAME = 'Test'"
- Wayne -
Date: Tue, 1 Apr 2008 17:12:44 -0700
From: "Shaofeng Liu" <liush...@gmail.com>
If the file is just in your home collection (directory), you can see
it via 'ils' or 'ils -l'. If you don't know where it is (perhaps
stored under a different user account), you can find it's collection
by running: iquest "SELECT COLL_NAME WHERE DATA_RESC_NAME = 'Test'"
To remove it, the owner runs 'irm NAME' and then 'irmtrash'. Or you
can run 'irm -f NAME' which removes it in one step (without putting it
in the trash).
All the icommands have built in help, available by '-h'. For example,
'irm -h' describes irm and the various options, including -f. You can
see what icommands exist by listing the bin directory:
'ls clients/icommands/bin' .
Each of the i-command options means the same thing in each i-command.
For example, iput has a -R option to specify the resource, so for any
i-command, -R, if it is used, specifies a resource. These options are
listed at: https://www.irods.org/index.php/command_line_options
- Wayne -
Date: Wed, 2 Apr 2008 14:41:08 -0700
From: "Shaofeng Liu" <liush...@gmail.com>
Reply-To: iROD...@googlegroups.com
Sender: iROD...@googlegroups.com
Looks like there are some serious problems in your irods system. The
recursive collections, like /tempZone/trash/home/rods/trash/home/rods,
should not exist.
I'm not sure what happened to create these problems and I don't know
if you can count on it to work properly moving forward.
If you are just experimenting with iRODS, you might reinstall from
scratch (and drop the database) and start over. Then do the 'iquest
"SELECT COLL_NAME"' again, and if the collections are corrupted like
this again, we'll have a reproducible problem we can try to resolve.
We might be able to patch your ICAT database, but it would be fairly
involved.
If you just want to delete the one file from so you can remove the
resource, I can show you how to update the ICAT via sql to do so.
- Wayne -
Date: Wed, 2 Apr 2008 17:00:25 -0700
Yes, it sounds like a bug and like something we should fix. It should
fail in a more straight-forward manner when communication fails. If
you could remember the steps, we might try to reproduce it here. Or
if you could reproduce it there, and stop when you notice the initial
problem, we might be able to gather enough information to resolve it.
You can email me directly instead of the list for this. I'll probably
need help from others in the group as it may involve iRODS components
written by others.
Thanks,
- Wayne -
Date: Thu, 3 Apr 2008 11:53:16 -0700
From: "Shaofeng Liu" <liush...@gmail.com>
Reply-To: iROD...@googlegroups.com
Sender: iROD...@googlegroups.com
X-Google-Loop: groups
Mailing-List: list iROD...@googlegroups.com;
contact iROD-Ch...@googlegroups.com