Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit b75338c

Browse files
author
Tyler Reid
committed
Clarify the gsutil mv command for moving corrupted blocks
Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
1 parent f0ed263 commit b75338c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

cortex-mixin/docs/playbooks.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -380,16 +380,14 @@ When this happen you should:
380380
2. Ensure the compactor has recovered
381381
3. Investigate offline the root cause (eg. download the corrupted block and debug it locally)
382382
383-
To rename a block stored on GCS you can use the `gsutil` CLI:
384-
383+
To rename a block stored on GCS you can use the `gsutil` CLI command:
385384
```
386-
# Replace the placeholders:
387-
# - BUCKET: bucket name
388-
# - TENANT: tenant ID
389-
# - BLOCK: block ID
390-
391385
gsutil mv gs://BUCKET/TENANT/BLOCK gs://BUCKET/TENANT/corrupted-BLOCK
392386
```
387+
Where:
388+
- `BUCKET` is the gcs bucket name the compactor is using. The cell's bucket name is specified as the `blocks_storage_bucket_name` in the cell configuration
389+
- `TENANT` is the tenant id reported in the example error message above as `REDACTED-TENANT`
390+
- `BLOCK` is the last part of the file path reported as `REDACTED-BLOCK` in the example error message above
393391
394392
### CortexBucketIndexNotUpdated
395393

0 commit comments

Comments
 (0)