Author: Albert

Adding disk space from non-root-LVM to root-LVM

All users should be logged out of server except root. Fsck the filesystem. Reduce the non-root LVM by entering following command on root shell; lvresize --resizefs --size lvresize --resizefs --size -200G /dev/VolGroup00/LogVoL-USER After non-root LVM filesystem is reduced, increase the root-LVM filesystem using; lvresize --resizefs --size +500M /dev/VolGroup00/LogVol-ROOT Mount the filesystem.

Read more

How to disable transparent huge pages [THP] in CentOS 8

On CentOS 8, In file editor open /etc/default/grub file, and add “transparent_hugepage=never” kernel parameter on the GRUB_CMDLINE_LINUX in options as shown below; GRUB_CMDLINE_LINUX="options transparent_hugepage=never" On command line execute grub2-mkconfig to build /boot/grub2/grub.cfg grub2-mkconfig -o /boot/grub2/grub.cfg [System with BIOS]grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg [System with UEFI] Reboot Server to apply changes. If THP is still not disabled, stop …

Read more

How to configure a SSH tunnel?

On the client machine perform the following step: [root@host]# ssh -N -L :: user@remote-machine-ip From a new console/terminal execute the telnet command as follows: [root@host]# telnet localhost This kb is relevant to the following; Encrypt the traffic by SSH tunneling the connection to remote host. Encrypt unencrypted network traffic

Read more