4 ms·
The trick with ncdu is to install it BEFORE your disk gets full from some random error log going haywire.
by alt227 4y ago
The trick with ncdu is to install it BEFORE your disk gets full from some random error log going haywire.
- cmg 4y agoOne of the first things I did in my new position was to add ncdu (and mysqltuner) to our Ansible playbooks. It's that useful for me - I probably use it every other day at least.
- sdflhasjd 4y ago$ sudo apt install ncdu > Not enough free space Fuck! Actually, one trick I learned was to create a dummy file full of zeroes or rand, maybe 200MB or so, and place it in an obvious location (e.g /) for easy deleting in such a crisis.
- herpderperator 4y agoExt3/ext4 systems do this by default and reserve 5% of space for root.[0] [0] https://docs.cloudera.com/cloudera-manager/7.4.2/managing-clusters/topics/cm-decrease-reserved-space.html https://docs.cloudera.com/cloudera-manager/7.4.2/managing-cl...
- dottedmag 4y agoThat's the reason why typical Linux (or Unix) filesystem comes with a setting to set reserve some space for root account. Doesn't help if the disk is filled by processes running as root, of course.
- ndsipa_pomu 4y agoOr a "journalctl --vacuum-time=1d" will usually clear a lot of space
- banana_giraffe 4y agoI've saved the day once or twice by having a built of ncdu that I can just copy to /dev/shm to figure out what went haywire.
- ranting-moth 4y agoAnother trick is to have a 1GB file called DeleteMeWhenDiskIsFull. Then you can delete that file and ponder your life choices that led to that situation. Just remember to create it again :)
- doubled112 4y ago> ponder your life choices that led to that situation. I always remember that VMware vCenter appliance didn't come with a working logrotate config for years and feel better.