To set up a print queue that will send the print job to a file, carry out the following operations as root. Add the following line to /etc/cups/cupsd.conf in CentOS 4, 5, or 6, or to /etc/cups/cups-files.conf in CentOS 7 and 8. FileDevice yes Restart the CUPS service. service cups restart Use a command akin …
Category: Linux
32-bit application not finding files on XFS filesystem
Inodes received 32-bit numbers or less under older XFS behavior, which always allocated inodes within the first 1TiB of the filesystem. With more recent XFS behavior, inode64 is the default mount option, allowing inodes to be put anywhere inside the filesystem. However, files with inode numbers greater than 32 bits may be difficult for 32-bit …
How to install rasdaemon and monitor hardware errors
To set up the hardware error reporting rasdaemon. Install the rasdaemon package first. Launch the rasdaemon service after enabling data collection in Rasdaemon. Configure the rasdaemon service to restart automatically when the computer boots up. The motherboard DIMM labels can be imported into the EDAC drivers once the service has been launched for simpler fault …
How to configure a Samba server with SSSD in CentOS 7 or 8
The idmap sss module has some restrictions when used with CentOS 7. As a result, it is currently not advised to utilize the idmap sss module for Samba file servers registered with AD domains. If you are configuring a CentOS 8 or above version, you must run the following command. The system must be rebooted …
How to set the variable $PATH when executing the csh via rsh
In CentOS 7, add setenv PATH <PATH string, use \: to split> when executing the csh command as below. [testuser@centos7~]$ rsh remotehost 'echo $PATH' /usr/bin:/bin [testuser@centos7 ~]$ rsh remotehost 'setenv PATH /usr/bin\:/bin\:/opt;echo $PATH' /usr/bin:/bin:/opt
Why does CentOS 6 to 7 upgrade fail if /usr is on separate partition ?
Due to technological restrictions, upgrades are not supported if /usr or child folders are distinct partitions from /. It is a fixed condition that cannot be altered. The whole contents of the /usr partition can be moved to the /usr directory using rescue mode as a solution. The contents of /usr can be online relocated …
Is systemd-resolved enabled in AlmaLinux 8?
At the time of writing, the systemd-resolved service is only available as a Technology Preview on AlmaLinux 8 and AlmaLinux 9. Technology Preview features might not be complete, are not covered by SeiMaxim's production Service Level Agreements (SLAs), and SeiMaxim does not advise utilizing them in production. Customers can test functionality and offer feedback while …
File systems became read-only on virtual guests on VMware
Filesystem entered ready-only mode, and the following SCSI I/O fault incidents were recorded in syslog messages. kernel: sd 0:0:0:0: timing out command, waited 1080s kernel: sd 0:0:0:0: Unhandled error code kernel: sd 0:0:0:0: SCSI error: return code = 0x06000008 kernel: Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT,SUGGEST_OK If the failover occurs before the timeout, everything will proceed as usual. …
How to create custom email template in Alertmanager?
Configure your email receiver to, for example, display the email's subject in the headers section and its template-based body of text. receivers: - name: EmailReceiver - to: myaddress@example.com headers: subject: 'Summary: {{ .CommonLabels.alertname }} {{ if eq .Status "firing" }}(Firing){{ else }}(Resolved){{ end }}' html: '{{ template "emailcontent.txt" . }}' As indicated below, add the …
When is the awx user made during the ansible automation platform installation?
The creation of awx users is handled by the rpm. When the setup script for the package "automation-controller-server-4.x.x-x.el8ap.x86 64" is run, the awx user is created. The user creation operation is handled by the package script. Commands can be used to verify that: # rpm -q --scripts automation-controller-server-4.x.x-x.el8ap.x86_64 The awx user task present in the …
TFTP “Transfer timed out” with firewalld in CentOS 7 and 8
You are facing an issue while accessing TFTP server, getting 'Transfer timed out' error while put and get. But it works after disabling the firewall. Follow the following steps to resolve this error. Remove the not working TFTP client service. firewall-cmd --remove-service tftp-client Two possible solutions can be applied based on your CentOS version. CentOS …
How to calculate memory assigned for nodes in a cluster
Run the following command to calculate the currently used memory (megabytes) in openshift container platform 4.x. oc adm top node | awk '{ sum+=$4} END {print sum}' Run the following command to calculate the used memory (megabytes) for worker nodes in the cluster. oc adm top node --selector='node-role.kubernetes.io/worker=' | awk '{ sum+=$4} END {print sum}' …
Why repquota output different size as compared to du?
In CentOS 5, 6, and 7, repquota shows different sizes compared to du output as shown below. [root@server]# repquota /xyz | awk 'NR == 3 || NR == 4|| /username/' Block limits File limits User used soft hard grace used soft hard grace username -- 100663296 152043520 157286400 2584811 0 0 [root@server]# du -sch /xyz …
How do change the location of /var/log/squid/squid.out file?
To change the location of squid.out file, copy /usr/libexec/squid/cache_swap.sh to a new location. # cp /usr/libexec/squid/cache_swap.sh /usr/libexec/squid/cust_cache_swap.sh Open with vi and edit the following section in the new file cust_cache_swap.sh. squid -N -z -F -f $SQUID_CONF >> /new/path/to/squid.out 2>&1 Copy the unit file of squid.service as follows. # cp /usr/lib/systemd/system/squid.service /etc/systemd/system/ Edit /etc/systemd/system/squid.service. (before) ExecStartPre=/usr/libexec/squid/cache_swap.sh …
Why packets drops against ‘rx_fifo_errors’ parameter in the output of ‘ethtool -S ‘ ?
The output of ethtool -S <interface> reveals receive fifo errors. Additionally, rx_queue_<n>_drops, the total of which equals the value of rx_fifo_errors, are reported. # ethtool -S eth0 | egrep 'rx_fifo|drops' rx_fifo_errors: 120674 rx_queue_0_drops: 4032 rx_queue_1_drops: 3036 rx_queue_2_drops: 5904 rx_queue_3_drops: 0 rx_queue_4_drops: 228 rx_queue_5_drops: 65656 rx_queue_6_drops: 19267 rx_queue_7_drops: 22551 # ethtool -S eth0 | egrep drops …