postgresql - How can I check the remaining size of a persistent disk on Google Cloud? And where can I find the code in the instances? -


i created project on google cloud long time ago , having problems it. result seem receiving internal server error.

i tried connecting compute instance through ssh, not because :

  • as far remember, used able see code on compute instance. it's no longer there, home folder has hidden files. not sure actual project files.

  • the error managed log file : error syncing pod 9c8e56bc-4298-11e6-ab50, skipping: failed "startcontainer" "postgres" crashloopbackoff: "back-off 5m0s restarting failed container=postgres pod=postgres_default(9c8e56bc-4298-11e6-ab50); makes me think there issues postgres, has persistent disk own, there seems no easy way find out how of disk occupied.

  • even though admin on project , should receive detailed (with stacktrace) emails every time there error, not receiving @ all.

this behaviour started today, of sudden, , haven't touched project in 2 years, lost.

thanks.

how can check remaining size of persistent disk on google cloud?

for part, found way today. i'll describe here print screens easy anyone.

  1. first, go google console, disks page : https://console.cloud.google.com/compute/disks

  2. identify persistent disk interested in. in case, called pg-data-disk. click on respective vm instance; on column "in use by", link in image below : enter image description here

  3. this open ssh connection vm instance persistent disk attached. in ssh window, run following command : sudo lsblk. result should in image below : enter image description here

  4. you discover disk id (in case sdb), can run : sudo df -h <your disk id>. command give exact disk usage, shown below : enter image description here

as other part of question, using docker containers orchestrated kubernetes. , totally forgot it.

will upgrade ram , work.

thank all.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -