Política de Privacidade

  Revisão 07/2023 CONDIÇÕES E TERMOS DE SERVIÇO E UTILIZAÇÃO “Intelligence Software” A Intelligence Software provê serviços de desenvolvimento de aplicativos no território brasileiro. Temos a responsabilidade de proteger cada cliente e lhes proporcionar os melhores serviços possíveis. As diretrizes seguintes foram projetadas para assegurar a qualidade de nossos serviços. Tenha certeza de que entendeu e concorda com as políticas, pois a violação dessas políticas poderá resultar em suspensão ou término da sua conta sem direito a reembolso de valores pagos. Você confirma e concorda que a Intelligence Software, a seu absoluto e exclusivo critério, pode alterar ou modificar este Acordo, e quaisquer políticas ou acordos integrados a ele, a qualquer momento, e tais alterações ou modificações entrarão em vigor imediatamente após a publicação neste Site, e seu uso deste Site ou dos Serviços encontrados neste Site após tais alterações ou modificações terem...

Full partition (Linux)

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

Comentários

Postagens mais visitadas deste blog

Política de Privacidade

List of features to be realized in Packet Tracer

Cloud Native Patterns - Revisão do livro