Author: admin

How to check progress of the rsync job

  • You can add the progress option with rsync command:

rsync -a --progress /media/backup-folder/
sending incremental file list
created directory backup

  • or you can add the -P flag in rsync command as below:

rsync -a -P /media/backup-folder/
sending incremental file list
created directory backup

Note that the -P option includes both –partial and –progress rsync options.

How to resolve rsync error: some files/attrs were not transferred

The following error is generated when rsync is run with the -X option (preserve extended attributes)

rsync -axHAX --delete /. /tmp/selinux/.
rsync: rsync_xal_set: lsetxattr("selinux","security.selinux") failed: Permission denied (15)
rsync error: some files/attrs were not transferred (see previous errors) (code 31) at main.c(1039)

To resolve this error, filter the ‘/selinux’ filesystem from the command. Run rsync as below;

rsync -axHAX --delete --filter="- /selinux" /. /tmp/selinux/.

It is suggested to also excluded /var/run, /var/lock, /proc and /dev from rsync command.

 

 

Why yum module list show @modulefailsafe

The command yum module list output @modulefailsafe

# yum module list --disablerepo=\*
@modulefailsafe
Name Stream Profiles Summary
389-ds 12 [e] 209 Directory Server (base)
ant 1.9 [e] common Java build tool
httpd 2.2 [e] common, devel, mini Apache HTTP Server

In the case of local repositories, Re-build repodata either with reposync --download-metadata or modifyrepo to include the modules.yaml into the repomd.xml

The issue is usually caused when the module metadata is not available. Unavailability of module metadata happens when the user removes a .repo file or disables a repository via –disablerepo / –repoid or repository is unavailable and has option skip_if_unavailable=true.

Server hangs for a long time on firewalld service shutting down or on reboot

Add/edit following option in /etc/firewalld/firewalld.conf;

CleanupOnExit=no

Using option CleanupOnExit=yes in /etc/firewalld/firewalld.conf flush firewall rules and try to off-load nf_conntrack module. If server hangs, it is because something is stopping nf_conntrack module from unloading quickly.

Try running systemctl stop firewalld and see if service hangs. If firewalld service start is success you are likely not having this issue.

System panic error – IPv4: Attempt to release alive inet socket | IPv4: Attempt to release TCP socket in state 1 [kernel address]

The main reason for this system panic error is that socket is being closed while packet sent via that socket is queued to userspace. After userspace reinjects (userspace or another netfilter rule asks for the packet to get queued again,) the refcount transition will be 1 -> 0 -> 1 (-> 0), thus double-free occurs.

This error is being managed in bugzilla 1885682 and 1886557.