replica in bad shape

17 views
Skip to first unread message

kovid bhardwaj

unread,
May 9, 2025, 5:48:53 AMMay 9
to iRODS-Chat
Hello everyone,

I want to express my gratitude for your valuable feedback on my earlier posts — your support means a lot to me.

I have a question regarding irm behavior that I hope someone can help clarify. I've observed that I can successfully remove files which are in good shape, but not the ones which are stale replicas (containing 'X' or '?' in ils output) . I run into the following error:
$ ils -l /ABCzone/trash/home/abc/File3.txt
  abc             1 defaultResc;compHCP;archiveHCP     10485760 2025-01-27.13:39 X File3.txt
$ irm -f /ABCzone/trash/home/abc/File3.txt
remote addresses: 10.31.83.174 ERROR: rmUtil: rm error for /ABCzone/trash/home/abc/File3.txt, status = -715000 status = -715000 S3_FILE_UNLINK_ERR

How to get rid of the bad replicas ?
Thanks in advance for your help!

Alan King

unread,
May 9, 2025, 8:49:20 AMMay 9
to irod...@googlegroups.com
Hi,

First, the replica shown here is stale, indicated by the 'X', If a replica shows '?', it is either in the intermediate or write-locked status (not stale).

Now for the real question. The S3_FILE_UNLINK_ERR error means that an error occurred when trying to remove the physical data from the S3 bucket. This suggests some kind of misconfiguration in the S3 resource (please check the context string for archiveHCP for typos; this can be done with ilsresc -l archiveHCP), or a problem with the S3 backend or bucket being used with archiveHCP.

Please confirm that interactions with the S3 provider (using an independent client like mc or AWS CLI) and the specific bucket for this resource are working. I think this is unrelated to the status of the replica.

If you do not care whether the data will continue to exist in the underlying S3 bucket, you can unregister the replica using iunreg (works very similarly to irm). Again, be aware that the data will remain in the S3 bucket and will no longer be known to or managed by iRODS at that point.

Alan

--
--
The Integrated Rule-Oriented Data System (iRODS) - https://irods.org
 
iROD-Chat: http://groups.google.com/group/iROD-Chat
---
You received this message because you are subscribed to the Google Groups "iRODS-Chat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to irod-chat+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/irod-chat/549a7b75-a188-46a1-96bb-6010f381c661n%40googlegroups.com.


--
Alan King
Senior Software Developer | iRODS Consortium
Reply all
Reply to author
Forward
0 new messages