Error after increasing the XFS file system Disk. [root@linuxraja ~]# fdisk -l GPT PMBR size mismatch (52428799 != 104857599) will be corrected by w(rite). Disk /dev/sda: 50 GiB, 53687091200 bytes, 104857600 sectors …………………………… [root@linuxraja ~]# fdisk /dev/sda Welcome to fdisk (util-linux 2.30.2). Changes will remain in memory only, until you decide to write them. Be…
Category: LINUX
LINUX
Argument list too long – Linux Error
What Linux Error – Argument list too long root@ip-10-74-4-101:/tmp/vfs_cache# rm -f /tmp/vfs_cache/tmp_*.jar -su: /bin/rm: Argument list too long Why This error occurs when there is a large number of arguments passed to a command, usually, we come across this while deleting a large number of files in a folder. This is caused because the command…
Ubuntu 22 upgrade Issue – sg3-utils : Depends: libsgutils2-1.46-2
root@linuxraja-ubunt22-01:~# apt upgrade Reading package lists… Done Building dependency tree… Done Reading state information… Done You might want to run ‘apt –fix-broken install’ to correct these. The following packages have unmet dependencies: sg3-utils : Depends: libsgutils2-1.46-2 (>= 1.46) but it is not installed Solution : apt update dpkg –purge –force-all libsgutils2-2 wget http://ftp.de.debian.org/debian/pool/main/s/sg3-utils/libsgutils2-1.46-2_1.46-3_amd64.deb dpkg…
Rocky Linux Local Repository Configuration
What – To create a local repository from the existing running Rocky Linux server When – To ignore similar multiple downloads from the internet for server OS update and to save the bandwidth How – Follow the Steps Install Web server dnf install nginx && systemctl enable nginx –now Install Yum-utils package dnf install yum-utils…
Ubuntu Upgrade
Upgrade ubuntu to the next release versions ex: 14 to 16 & 16 to 18 & 18 to 20 Take the required snapshots/backups sudo apt-get update sudo apt-get upgrade -y sudo apt-get dist-upgrade sudo do-release-upgrade The do-release-upgrade process will Create the backup alternative ssh port 1022 Purge the unwanted old version files Will ask you…
Git Bash Quick New Repo Push
1. Create a new repository on GitHub. To avoid errors, do not initialize the new repository with README, license, or gitignore files. You can add these files after your project has been pushed to GitHub. 2. Open Git Bash, Change the current working directory to your local project, Initialize the local directory as a Git…
CentOS Alternatives
CentOS (Community Enterprise Operating System) is the Project affiliated with RedHat, initially released in the month of May 2004 under FOSS (Free and Open-Source Software) & General Public License. CentOS released the versions according to the Red Hat Enterprise Linux (RHEL) life cycle which is Commercial under RedHat EULA (End User License Agreement). The Presence…
CentOS/RHEL 8 Boot Loader File
Grub Parameter File : /boot/grub2/grubenv # GRUB Environment Block saved_entry=82c1b57e69f343e28fe48516f70a9866-4.18.0-193.28.1.el8_2.x86_64 kernelopts=root=/dev/mapper/cl-root ro console=ttyS0,115200n8 no_timer_nvme_core.io_timeout=4294967295 nvme_core.max_retries=10 crashkernel=auto resume=/dev/mapper/cl-swap rd.lvm.lv=cl/root rd.lvm.lv=cl/swap boot_success=0 boot_indeterminate=0 ON BIOS (Basic Input/Output System) Systems : /boot/grub2/grub.cfg On Systems with UEFI (Unified Extensible Firmware Interface) : /boot/efi/EFI/centos/grub.cfg OR /boot/efi/EFI/rhel/grub.cfg To Generate Grub config file : grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
Virtual Data Optimizer (VDO)
What – Virtual Data Optimizer (VDO) is a device mapper module which adds data reduction capabilities to the Linux block storage stack. VDO is a block virtualization technology that combines: Data Compression (Compress Remaining Blocks) Data Deduplication (Eliminate Duplicate Blocks) Thin provisioning (Eliminate Zero Blocks) Data Deduplication is a technique for eliminating duplicate copies of repeating…
Redis Quick Install
1. Install Redis yum install epel-release yum-utils -y yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm yum install redis -y 2.Enable and start Service systemctl enable –now redis 3. By default, redis listens only on lookback address vi /etc/redis.conf (Add the server ip next to lookback IP bind 127.0.0.1 10.20.22.42 4. Restart Redis and check the ports systemctl restart redis…