Full partition (Linux)
- Gerar link
- X
- Outros aplicativos
What to do when there is a full partition?
You have some service on the server that suddenly stops working, a monitoring alert or something like that. When a partition is full you can believe, some kind of problem will happen. hehe
A basic troubleshoot one does is running the "df" command can be with the -h option so that the measurement is displayed more easily for humans to read. So the first command:
# df -h
This command will show you a partition at 100% if any. Here are the options: if it is lvm it is ok to increase, check if there is space to increase otherwise it will be necessary to add a disk in the VM if applicable and then create a physical volume, a volume group and then add it to the logical volume. I think there are more possible combinations for these steps but that's basically it. The case here is not lvm.
But what if the partition is common, not lvm. So, increase the partition is much more complicated, is a somewhat risky process but not impossible. But you might want to delete something, maybe some log is not rotating correctly and then the next command comes in, let's go to it:
# du -sh ./*
This command will show the size of the files or directories in the current folder, you want large files or directories that are taking up a lot of space, then you just browse the directory tree and run this command, soon you will find what is taking up more space on your partition. It's common to find directories full of small files, sometimes thousands of small files, then something could be wrong, something that should be rotating and isn't.
Website: https://www.intelligencesoftware.com.br
Ads: https://ads.intelligencesoftware.com.br- Gerar link
- X
- Outros aplicativos
Comentários
Postar um comentário