Wondering what these numbers in the mount entries in /etc/fstab
are meaning?
The first number fs_freq
When this field is set to 1 dump(8)
will make a backup of the partition. Not using dump
for backups? You can ignore the field.
The second number fs_passno
This field determines the order of partition to fsck
. Every partition that have seen more than Maximum mount count
will undergo an fsck
unless the vaule is set to 0
.
Lets see how Maximum mount count
is set on my Ubuntu 22.04:
sudo tune2fs -l /dev/nvme0n1p2 | grep 'Maximum mount count'
Maximum mount count: -1
This means the partition is not fsck
ed after a certain number of mounts.
Conclusion
Looks like the numbers can be safely omitted on modern installations.
Related cards:
FAQ for When PostgreSQL Indexes Are Corrupted After Locale Changes
When changing glibc versions, it's possible to end up with corrupt indexes in PostgreSQL.
Are My Indexes Affected?
If your database has...
HowTo: Curl applications that are usually behind reverse proxies with TLS termination without the application redirecting to https schema
A lot of web applications require being called over https
, which is a good thing. It's possible to configure this requirement at the web- or proxy server level, where nginx
or apache
will just redirect every request on http
to https
. Som...
Change bwlimit for Proxmox storages
It's not possible to change the bwlimit of Proxmox storages via the Web-UI (at least in Proxmox 7.x).
To change the bwlimit you need to use the pvesm
command and specify the limit for the desired category.
For example to increase the bwlimit f...
Keepalived VRRP FAQ
How can I configure virtual IP's?
There are two parameter to set up virtual ips in Keepalived:
virtual_ipaddress
Addresses defined here are included into the VRRP Packages and are therefore limited in number, especially with IPv6.
Add...
Useful PostgreSQL commands
on the bash (issued as postgres user)
Start/Stop/Restart PostgreSQL
pg_ctl -D $configdir start|stop|restart
Start/Stop/Restart the corresponding PostgreSQL using the given configuration directory. The configuration directory sh...
Identify network cards for linux network interfaces
If you want to find out what type of network card is used for a given network interface on a linux system, e.g. because the system has multiple network cards, try and match the driver to the interface name:
$ ip link show
1: lo: <LOOPBA...
HowTo: Rebalance Elasticsearch Shards
If you end up with an Elasticsearch cluster which has a very different disk usage on it's nodes you can use these steps to rebalance the shards.
Before we begin it's important to understand how Elasticsearch defines [balance](https://www.elastic....
HowTo: switch to mise from asdf
Add apt source:
apt update -y && apt install -y gpg sudo wget curl
sudo install -dm 755 /etc/apt/keyrings
wget -qO - https://mise.jdx.dev/gpg-key.pub | gpg --dearmor | sudo tee /etc/apt/keyrings/mise-archive-keyring.gpg 1> /dev/null
ech...
How to Protect container images with production tag from ECR lifecycle rules
If you want to automatically delete old container images from your Elastic Container Registry, the solution is a quite simple ECR Lifecycle Rule that deletes images e.g. 7 days after they have been pushed to the registry.
If you however want to _...
Use systemd-run as an alternative for screen
You might use screen
or tmux
to run a temporary command on a server which continues to run after the SSH session is closed.
Consider systemd-run
as alternative. It will turn every command in a systemd ser...