Posts

Showing posts with the label filesystem

The story that old and reliable utilities sometimes need troubleshooting on new OS (CentOS 8)

Image
  Hello community, Gonchik Tsymzhitov is in touch. Today, I want to share with you a short story about how trustworthy tools unexpectedly break on new operating systems, and how easy they are to be repaired. So, we all know that  centos.rip , after a very period of time, so I am migrating everywhere to Oracle Linux 8. My favorite tool for setting up PostgreSQL servers is postgresqltuner.pl, which I have already covered  in this article . Setting up as usual is very simple: # dnf install -y perl-DBD-Pg # wget -O postgresqltuner.pl https://postgresqltuner.pl # chmod +x postgresqltuner.pl But this time, when I ran the script, I encountered such a problem after command, # ./postgresqltuner.pl --ssd Can't locate Memoize.pm in @INC (you may need to install the Memoize module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ./postgresqltuner.pl line 262. BEGIN failed--co...

How to check the fragmentation and do defragmentation on ext4? Helpful check for home directory of application

Image
     Today, I got a question about how to check the fragmentation of ext4 filesystems, as most common for the Data Center edition or Server edition setups.       That article is the next step of a previous story about the  improvement of latency for volumes.      Of course, some users can ask why we need to do defragmentation on ext4 as it’s not fragmented. As an answer, I would recommend checking out the presentation from LinuxCon 2010   with the name Outline of Ext4 File System & Ext4 Online Defragmentation Foresight   and watch the small video with fragmentation So let’s start to use one small command line utility e4defrag.  Online man page you can find here: http://manpages.ubuntu.com/manpages/focal/man8/e4defrag.8.html Get report of fragmentation:      $ sudo e4defrag -c /location After checking the results you can run the defragmentation: $ sudo e4defrag /location If you want extra info: $...