As mentioned in one of my posts RedHat – Rebuild corrupted rpmdb today I have seen different error related to YUM/RPM. Clean the YUM dbcache. Rebuild the rpmdb.
Install the package YUM installs the package if it is not already present and updates it with the latest version available from repo if the package already installed and present. #yum install <package> Check which package (available from repo) provides the binary file/command. #yum provides <binary file/command> Often we want to see what are the … Continue reading RedHat – Useful YUM and RPM commands
Below are the step by step instructions to recover EC2 instance if the system is not able to boot properly. So far I have seen couple of scenarios where it helped: - Corrupted latest kernel ( initrd image is missing ) - Not able to mount File system because of wrong entry in /etc/fstab and … Continue reading AWS EC2 Linux Boot Problems – Root Volume
Procedure 1: Using Data Containers Step 1 - Create Container Data Containers are containers which sole responsibility to be a place to store/manage data. Like other containers they are managed by the host system. However, they don't run when you perform a docker ps command. To create a Data Container we first create a container with a … Continue reading Docker – Sharing data between containers
The CMD line in a Dockerfile defines the default command to run when a container is launched. If the command requires arguments then you need to use an array, for example ["cmd", "-a", "arga value", "-b", "argb-value"], which will be combined together and the command cmd -a arga value -b argb-valuewould be run. An alternative approach to CMD is ENTRYPOINT. While … Continue reading Docker – difference between CMD and ENTRYPOINT
I have prepared the bash script to execute all the commands necessary to install on Kubernetes master server. Check the last command to switch off swap. I have seen this below error when running the #kubeadm init with swap on. #kubeadm init As mentioned in above screenshot - We need to copy the configuration … Continue reading Kubernetes – Install Master Node
Part 1 of Linux Users and Groups is here: Linux – Users and Groups – Part 1 where we discussed User accounts. Moving on to Part 2 lets talk about Groups. In Part 1 we have seen creating group and creating user in that group. We could see that from "/etc/passwd" that oracle user id is … Continue reading Linux – Users and Groups – Part 2