Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to verify that Redshift are really DISK FULL?

Question from Redshift newbies: I copy data using AWS datapipeline but it FAILED and log said

"ERROR: Disk Full Detail: ----------------------------------------------- error: Disk Full code: 1016 context: node: 0 query: 2070045 location: fdisk_api.cpp:343 process: query0_49 [pid=15048] "

I'd like to know how could we check if Redshift is really disk full via CLI or web console, any comments or hints would be appreciated.

like image 291
macchiavalley Avatar asked Oct 30 '25 12:10

macchiavalley


2 Answers

If you're using a single node and have SQL access to the cluster (e.g. via psql), you can run:

select
  sum(capacity)/1024 as capacity_gbytes, 
  sum(used)/1024 as used_gbytes, 
  (sum(capacity) - sum(used))/1024 as free_gbytes 
from 
  stv_partitions where part_begin=0;

This article has more: https://www.flydata.com/blog/querying-free-disk-space-on-redshift/

like image 177
pcothenet Avatar answered Nov 02 '25 17:11

pcothenet


You can check that in CloudWatch console. In the left bar, you'll see bunch of AWS services under the 'Metrics' heading. Click on Redshift. In that, look for the 'PercentageDiskSpaceUsed' metric for the concerned cluster.

Also, do remember that this metric is separately available for each compute node.

like image 43
ketan vijayvargiya Avatar answered Nov 02 '25 18:11

ketan vijayvargiya



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!