chattr: Operation not supported while reading flags

When making a file immutable with chattr command, I get the following error

The error was due to the file I was trying to chattr being a symlink, not a real file.

To fix the error, chattr the actual file.

[…]

Read More…

Checking NVMe Disk

You can use nvme-cli to check your NVMe disks. To install nvme-cli, run On Ubuntu/Debian

On RHEL

To list of NVMe drives, use

Example

To find smart data, run

Example

To see the NVMe error log

[…]

Read More…

mount: unknown filesystem type ‘LVM2_member’.

When I try to mount a partition, I get the following error

This is because the disk is LVM. First of all identify the name of the volume group and logical volume.

Example

From the above result, we found the server has 3 logical volumes. The biggest volume is root. Other volumes […]

Read More…

Delayed block allocation failed for inode

On a CentOS server, reading files generated IO error. On /var/log/messages, I had the following error message

The problem is fixed by rebooting the server into rescue mode, then running the fsck command.

[…]

Read More…

qdbus: not found

When running a program Ubuntu server with XFCE, I get the error

The error is fixed by installing qbus

On CentOS, you need to install qdbus-qt5 package

[…]

Read More…

Set Static IP in RHEL 8 OVH VPS

OVH Cloud VPS KVM

On OVH VPS running AlmaLinux 8, IPv4 IP address gets dropped. I have to connect to the server using KVM feature available in OVH control panel. I checked IP of the server with the command

It did hot show any IPv4 IP address. I checked the network configuration file

That had the following […]

Read More…

How to Convert CentOS 8 to Rocky Linux

You can convert your remote VPS or Dedicated Server running CentOS 8 to Rocky Linux easily by running the following commands.

Now verify your system can be converted with command

If all is good, you can convert CentOS 8 to Rocky Linux with the command

[…]

Read More…

List contents of jks keystore file

keytool list certificates

To list the content of jks keystore file used by tomcat web server, run command

It will ask Keystore password. Once you enter the password, it will list the contents of the file. In the above keystore, there are 5 certificates with names inter, root1, root2, ssl_tomcat2, and tomcat. To get detailed information on […]

Read More…