Aleksandr Zakharchenko
03/13/2026, 2:23 PMRocky
03/13/2026, 2:23 PMStorage volume 'test_storage_volume' is referenced by dbs: [11211409] even after dropping the database is that StarRocks does not physically delete the database metadata immediately. Instead, it moves it to an internal FE Metadata Recycle Bin (Trash).
Why this happens
By default, StarRocks retains dropped databases, tables, and partitions in this recycle bin for 24 hours (86,400 seconds). This allows you to use the RECOVER command if you accidentally delete something. Because the database metadata still exists in the trash with ID 11211409, it still holds a "reference" to your storage volume, preventing the volume from being dropped.
How to fix it
Since you've only waited 12 hours, the metadata hasn't expired yet. To drop the storage volume immediately, you can temporarily lower the retention period to force a cleanup:
1. Lower the expiration timeout:
Run this command to tell the Frontends (FE) to expire trash items older than 60 seconds:
sql
ADMIN SET FRONTEND CONFIG ("catalog_trash_expire_second" = "60");
2. Wait a few minutes:
The FE has a background thread that runs periodically to clean up expired metadata. Wait about 5–10 minutes for this process to complete.
3. Drop the Storage Volume:
Once the metadata for database 11211409 is physically purged, you should be able to drop the volume:
sql
DROP STORAGE VOLUME test_storage_volume;
4. Restore the default setting:
It is highly recommended to set the timeout back to its default (1 day) to protect against accidental deletions in the future:
sql
ADMIN SET FRONTEND CONFIG ("catalog_trash_expire_second" = "86400");
Summary of configurations
* catalog_trash_expire_second: Controls how long metadata (DB/Table/Partition info) stays in the FE trash.
* trash_file_expire_time_sec: (BE side) Controls how long the actual physical data files stay in the storage before being deleted by the garbage collector.
Let me know if this helps you clear out that volume!
References
• administration/management/FE_configuration.md
• faq/operation_maintenance_faq.md
• administration/Data_recovery.md
• faq/shared_data_faq.md
• knowledge/admin_and_operation/shared_data_garbage_cleanup.mdAleksandr Zakharchenko
03/13/2026, 2:34 PMRocky
03/13/2026, 2:34 PM