This article describes an issue that may occur when a Linux sync is being performed.
Background:
Issues with an underlying OS may cause a sync failure.
Symptom:
Linux sync fails with
ERROR: Unable to parse output from /opt/rackware/utils/sync/examine
Before you Begin:
<>
Use case:
Migration SYNC's, or Disaster Recovery SYNC's using RMM's Standard Sync Engine
Applicable To:
Any current RMM version and any RHEL/Centos/Oracle Linux ORIGIN OS.
Preparation/Pre-Req:
ORIGIN, RMM and Target environment must comply with latest RMM Pre-reqs published.
Steps/Comments:
Open the by-jobid log (the /var/log/rackware/by-jobid/<string>.log file referenced in the GUI or CLI log) for the sync failure.
Search for the string "majmin_"
That string is in bold in the by-jobid log snippet below (for ease of reading, a few columns of messages in the by-jobid log have been removed). A few lines above it, in italics, are the words "Last" and "login:"
If the messages in your by-jobid log look similar, you likely have likely hit a Red Hat issue described in Red Hat's bugzilla database as
Bug 1664147 - sudo modifies command output
That article describes how certain Privileged Access Management (pam) configurations can cause an issue when an application (for example, the RMM) runs lvm commands using sudo. Review the pam configuration on your source server with your Linux administrator to see if you can work around this Red Hat issue.
Nov 25 13:06:20 rmm-oracle rmm:Script stdout: þRWEMITþlvm2Vg_1_name
Nov 25 13:06:20 rmm-oracle rmm:Script stdout: þRWEMITþLast
Nov 25 13:06:20 rmm-oracle rmm:Script stdout: þRWEMITþlvm2Vg_1_free
Nov 25 13:06:20 rmm-oracle rmm:Script stdout: þRWEMITþlogin:
Nov 25 13:06:20 rmm-oracle rmm:Script stdout: þRWEMITþlvm2Vg_1_extentSize
Nov 25 13:06:20 rmm-oracle rmm:Script stdout: þRWEMITþFri
Nov 25 13:06:20 rmm-oracle rmm:Script stderr: /var/tmp/rackware/scx.EcKPfwJg/sync/../lib/dev.sh:624 (blockdev_name_to_major_minor): Assertion '[[ -b "${dev_}" ]]' failed.
Nov 25 13:06:20 rmm-oracle rmm:Script stderr: sync/host-examine:1764 (emit_volume): Assertion '[[ "${majmin_}" =~ ^[[:digit:]]+:[[
Nov 25 13:06:20 rmm-oracle rmm:Script stdout: Last login: Fri Nov 25 08:06:20 -05 2023
Nov 25 13:06:20 rmm-oracle rmm:Script stdout: Last login: Fri Nov 25 08:06:20 -05 2023
Nov 25 13:06:20 rmm-oracle rmm:Script stdout: Last login: Fri Nov 25 08:06:20 -05 2023
Nov 25 13:06:20 rmm-oracle rmm:Script stderr: /opt/rackware/utils/sync/../common/scx:239 (secure_copy_and_execute): ERROR: remote command execution failed (1); command = sync/host-examine -d
Nov 25 13:06:20 rmm-oracle rmm:Script stdout: þRWEMITþerrorMessage
Nov 25 13:06:20 rmm-oracle rmm:Script stdout: þRWEMITþremote command execution failed (1); command = sync/host-examine -d
Nov 25 13:06:20 rmm-oracle rmm:Script '/opt/rackware/utils/sync/examine' exited with status 1
Nov 25 13:06:20 rmm-oracle rmm:Error parsing data to protobuf: field=rw.Lvm2VolGroup.extent_size, type=4, key=extent_size, value=Fri
Nov 25 13:06:20 rmm-oracle rmm:Failed to parse /opt/rackware/utils/sync/examine output into ExamineResult structure
Post Changes: <>
Important Note(s): <>
Related Reference(s):