The Problem CentOS/RHEL/OEL 6 server's configured to use local yum server for updates are getting following errors at time of yum update. Downloading Packages: (1/5): kernel-2.6.32-754.12.1.el6.x86_64.rpm | 32 MB 00:01 (2/5): kernel-headers-2.6.32-754.12.1.el6.x86_64.rpm | 4.6 MB 00:00 (3/5): kernel-uek-4.1.12-124.26.10.el6uek.x86_64.rpm | 42 MB 00:00 (4/5): kernel-uek-firmware-4.1.12-124.26.10.el6uek.noarch.rpm | 2.5 MB … [Read more...] about “The requested URL returned error: 403 Forbidden” – yum update error
OEL 6
“Metadata File Does Not Match Checksum” Issue When Yum Installs or Updates Package
The Problem Scenario 1: The user is unable to perform "yum install oracle-rdbms-server-11gR2-preinstall". The yum tries to download the latest metadata ("http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/repodata/primary.xml.gz" ) and rejects it with the error message "[Errno -1] Metadata file does not match checksum". Upon this, yum tries the next mirror where it encounters the same error and goes to the next mirror and so on until it have tried all mirrors and ends with … [Read more...] about “Metadata File Does Not Match Checksum” Issue When Yum Installs or Updates Package
“yum clean all” not clearing yum repository cache in CentOS/RHEL/OEL
The Problem "Yum clean all" not clearing the yum cache information under /var/cache/yum for orcle Linux server which use Oracle public yum repository or local yum repository. # yum repolist Loaded plugins: refresh-packagekit, security, ulninfo public_ol6_UEK_latest | 1.2 kB 00:00 public_ol6_UEK_latest/primary | 26 MB 00:04 public_ol6_UEK_latest 554/554 public_ol6_latest | 1.4 kB 00:00 public_ol6_latest/primary | 58 MB 00:04 public_ol6_latest 36051/36051 repo id repo name … [Read more...] about “yum clean all” not clearing yum repository cache in CentOS/RHEL/OEL
Understanding Ksplice Effective Kernel Version
This post will explain the meaning behind the output of the "ksplice kernel uname" (Ksplice Enhanced client) or "uptrack-uname" (Ksplice Uptrack client) command and how to interpret Ksplice's effective kernel version string. The effective kernel version that is reported by Ksplice when running the command "ksplice kernel uname -r" reflects the security position of the kernel that is running based on the patches that have been applied by Ksplice. This effective kernel version usually differs … [Read more...] about Understanding Ksplice Effective Kernel Version
How to Check the Size of the Yum Channels in Oracle Linux
Question: How to find out how large a yum channel repository is, to know how much data the channel will sync to a local yum repository? To see the actual size of the repository use either the "yum repolist -v" or "yum repoinfo" command. 1. Example for checking the size of latest OL7 yum channel # yum repoinfo ol7_latest Loaded plugins: langpacks, ulninfo Repo-id : ol7_latest/x86_64 Repo-name : Oracle Linux 7Server Latest (x86_64) Repo-status : enabled Repo-updated : Fri Jan 25 … [Read more...] about How to Check the Size of the Yum Channels in Oracle Linux
How to use ‘yum’ to connect ULN on CentOS/RHEL/OEL 6
The yum(Yellowdog Updater Modified) service is an automatic update tool to update the system each day. You can use both up2date/yum on Oracle Enterprise Linux/ Oracle Linux. Yum uses a configuration file at /etc/yum.conf. Additional configuration files are also read from the directory set by the reposdir option (default is '/etc/yum.repos.d'). Yum is an automatic updater and package installer/remover for rpm systems. It automatically computes dependencies and figures out what things should occur … [Read more...] about How to use ‘yum’ to connect ULN on CentOS/RHEL/OEL 6
How to configure CentOS/RHEL 6 system to not used last 3 passwords used
Question: How to change the password policy on a system so that a user cannot choose any of the last 3 passwords previously used? 1. Make sure that the file /etc/security/opasswd has the default permission (600). # ls -l /etc/security/opasswd -rw------- 1 root root 116 Sep 8 14:52 /etc/security/opasswd 2. Ensure you backup the file /etc/pam.d/system-auth: # cp /etc/pam.d/system-auth /etc/pam.d/system-auth.old 3. Modify the file /etc/pam.d/system-auth in vi editor and change the line … [Read more...] about How to configure CentOS/RHEL 6 system to not used last 3 passwords used
Extend the size of /boot partition on virtualized environment (CentOS/RHEL 6)
The scope of this post is to explain the steps involved in increasing the /boot filesystem, when no sufficient space available to install new kernel package. Though we have standard methods to reduce the size of /boot i.e. removing unused kernel and image files from boot, as an alternate approach, this post illustrate the steps to expand size of boot partition. The following should be the scenario were this can be applied, OVM/Vmware guest machine. Guest Backup should be taken from … [Read more...] about Extend the size of /boot partition on virtualized environment (CentOS/RHEL 6)
How To Disable Ksplice Service on OEL
This post will assist you to disable ksplice service or when ULN registration time enabled this service unknowingly. 1. Login to URL with ULN credentials https://status-ksplice.oracle.com/status/ -> Allow/Deny Policies -> Select your hostname > then choose all or deny. Once denied, cannot do operations with uptrack or ksplice. For example: [root@client ~]# uptrack-upgrade -n This machine has been denied access to the Ksplice Uptrack service. It will not receive Ksplice Uptrack updates … [Read more...] about How To Disable Ksplice Service on OEL
Extend volume on non-partitioned disk (XFS) under VMware guest
Question: How to extend virtual volume ( guest disk ) under OS which runs lvm2 and xfs on target device which does not use partitions? 1. Create a full Guest system backup. 2. Extend the Guest disk from the VMware layer (from Vsphere). 3. Run below command to detect new size on the guest disk. # ls /sys/class/scsi_host/ | while read host ; do echo "- - -" > /sys/class/scsi_host/$host/scan ; done 3. Verify if new size is visible via fdisk/dmesg. # fdisk /dev/sdX 4. Resize the pv … [Read more...] about Extend volume on non-partitioned disk (XFS) under VMware guest