Sometimes not all log messages in /var/log/dmesg can be captured after Linux OS/kernel boots up because of too many block devices attached to the server. This post illustrates another way to record all bootup log messages besides configuring the serial console. Basically kernel parameter "log_buf_len" can be configured to increase kernel log buffer size, Name: log_buf_len, Set the size of the kernel log buffer. Synopsis: log_buf_len= n [ KMG ] Description: Set the size of the … [Read more...] about How to Capture More Logs in /var/log/dmesg for CentOS/RHEL
CentOS/RHEL 8
Repairing filesystem issues at Boot in CentOS/RHEL 7 and 8
This post focuses on manually repairing the file-system configuration or corruption issues that stop the boot process. Diagnosing and fixing file system issues Errors in /etc/fstab and corrupt file systems can stop a system from booting. In most cases, systemd drops to an emergency repair shell that requires the root password. The following table lists some common errors and their results. Common File System Issues PROBLEM RESULT Corrupt file system systemd attempts to repair the … [Read more...] about Repairing filesystem issues at Boot in CentOS/RHEL 7 and 8
How to Use Udev Rules to Create oracleasm Disks in CentOS/RHEL 8
This post will help to configure Oracleasm disks using Udev rules in 2 node cluster. On first node 1. List the disks: [root@node01 ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 2G 0 disk sdb 8:16 0 2G 0 disk Note: Create partitions for the disks. 2. Find the disk ID: [root@node01 ~]# udevadm info --query=all --name=/dev/sda | egrep "WWN|SERIAL" E: ID_SCSI_SERIAL=[id] E: ID_SERIAL=0QEMU_QEMU_HARDDISK_AAAAAAAAA E: … [Read more...] about How to Use Udev Rules to Create oracleasm Disks in CentOS/RHEL 8
How to Configure an NFSv4-only Client using nfsconf in CentOS/RHEL 8
The nfsconf tool CentOS/RHEL 8 introduces the nfsconf tool to manage the NFS client and server configuration files under NFSv4 and NFSv3. Configure the nfsconf tool using /etc/nfs.conf (the /etc/sysconfig/nfs file from earlier versions of the operating system is deprecated now). Use the nfsconf tool to get, set, or unset NFS configuration parameters. The /etc/nfs.conf configuration file is composed of multiple sections starting with a key word in square brackets ([keyword]) with value … [Read more...] about How to Configure an NFSv4-only Client using nfsconf in CentOS/RHEL 8
Beginners Guide to Tuning Profiles in CentOS/RHEL
Tuning Systems System administrators can optimize the performance of a system by adjusting various device settings based on a variety of use case workloads. The tuned daemon applies tuning adjustments both statically and dynamically, using tuning profiles that reflect particular workload requirements. Configuring Static Tuning The tuned daemon applies system settings when the service starts or upon the selection of a new tuning profile. Static tuning configures predefined kernel parameters … [Read more...] about Beginners Guide to Tuning Profiles in CentOS/RHEL
Beginners Guide to Managing Package Module Streams in CentOS/RHEL 8
Introduction to Application Streams CentOS/RHEL 8.0 introduces the concept of Application Streams. Multiple versions of user-space components shipped with the distribution are now delivered at the same time. They may be updated more frequently than the core operating system packages. This provides you with greater flexibility to customize Red Hat Enterprise Linux without impacting the underlying stability of the platform or specific deployments. Traditionally, managing alternate versions of an … [Read more...] about Beginners Guide to Managing Package Module Streams in CentOS/RHEL 8
How to enable additional scsi logging in CentOS/RHEL
Question: How to turn on scsi extended debug messages? What are the field/flag definitions of scsi_logging_level? Additional scsi logging messages can be enabled by writing to /proc/sys/dev/scsi/logging_level either via use of the echo or preferably the sysctl command. The kernel parameter consists of ten packed fields, each 3 bits in length. Each field can have a value of 0 to 7. The higher the field's value, the more verbose the logging of messages associated with that field type. NOTE: … [Read more...] about How to enable additional scsi logging in CentOS/RHEL
When to use rescan-scsi-bus.sh -i (LIP flag) in CentOS/RHEL
The "rescan-scsi-bus.sh" can be used to scan new LUNs in a CentOS/RHEL machine. When 'rescan-scsi-bus.sh -i' is run, script execute as well a LIP_RESET (ISSUE_LIP) which may cause a disruption in I/O on the server and even cause an outage in case of a system running on heavy load. What is LIP (Loop Initialization Protocol)? LIP scans the interconnect and causes the SCSI layer to be updated to reflect the devices currently on the bus. A LIP is, essentially, a bus reset, and will cause device … [Read more...] about When to use rescan-scsi-bus.sh -i (LIP flag) in CentOS/RHEL
How to Disable rpc.quotad Service in CentOS/RHEL 6 and 7
This post explains how to disable rpc.quotad service on CentOS/RHEL 6 or 7 machines. The protocol used by rpc.rquotad is an unsecured and obsolete protocol and should be disabled. Note: This procedure can disrupt NFS clients relying on disk quotas. To avoid issues, schedule a maintenance outage and stop these NFS clients. For CentOS/RHEL 6 or earlier 1. Edit the configuration file /etc/sysconfig/nfs to have an entry which reads RQUOTAD="no". For example: # grep RQUOTAD … [Read more...] about How to Disable rpc.quotad Service in CentOS/RHEL 6 and 7
How to Enable Debug Mode for Chronyd Service in CentOS/RHEL 8
What is Chronyd Service In CentOS/RHEL 7 and 8, the operating system's time is set on every boot based on the hardware clock, which is a small-battery driven clock located on the motherboard of your computer. Often, this clock is too inaccurate or has not been set right, therefore it's better to get your system time from a reliable source over the Internet (that uses real atomic time). The chrony daemon, chronyd, sets and maintains system time through a process of synchronization with a remote … [Read more...] about How to Enable Debug Mode for Chronyd Service in CentOS/RHEL 8