Avamar Client: Completamento del backup dell'immagine del client IDPA Linux con eccezione dovuta a un problema di disattivazione
Summary: Client di backup delle immagini Linux con esito negativo con backup completato con eccezione Codice errore 10020
Symptoms
Il backup dell'immagine Linux per il sistema IDPA è "Completing with Exception" a causa del problema di disattivazione.
In questo esempio, la macchina virtuale era la macchina virtuale ACM interna fornita con la soluzione IDPA.
Dal registro delle immagini VMware Linux del backup è possibile osservare quanto segue:
avvcbimage Info <40726>: VM Config Info: VMX version 4(F), ctk enabled(T), fault tolerant (F), Guest OS SUSE Linux Enterprise 12 (64-bit), Cloud UUID = NoUUID. version=9
avvcbimage Info <40727>: VM Guest Info: GuestOS Family = linuxGuest, Guest Full Name = SUSE Linux Enterprise 12 (64-bit), Guest OS State = running, Tools Running = guestToolsRunning, Tools Version Status = guestToolsUnmanaged
avvcbimage Info <42650>: Creating snapshot 'Avamar-<epoch_time><client_id>', quiesceFS=1
avvcbimage Info <41136>: SnapshotManager: createSnapshot for vmMoref = vm-21
avvcbimage Info <42182>: SnapshotManager: POST to /snapshotmanager/vm/vm-21/action/createSnapshot, payload({
"snapshotName": "Avamar-<epoch_time><client_id>",
"snapshotDesc": "Created by Avamar workorder Management_VM_Backup-Management_VM_Backup-<epoch > on <date>",
"quiesceFileSystem": "true"
...
avvcbimage Warning <19733>: vSphere Task failed (quiesce, snapshot error=45): 'An error occurred while saving the snapshot: Failed to quiesce the virtual machine.'.
avvcbimage Error <17775>: Snapshot 'Avamar-<epoch_time><client_id> ' creation for VM '[vsanDatastore] DataProtection-ACM/DataProtection-ACM.vmx' task creation encountered a quiesce problem
avvcbimage Warning <40710>: The VM could not be quiesced prior to snapshot creation and this backup will not be used as a base for subsequent CBT backups if successful.
avvcbimage Warning <40711>: Consider using the pre-freeze and post-thaw scripts to facilitate VM quiescing
avvcbimage Warning <41146>: This error might caused by the pre-freeze script returning a non-zero error code.
...
Dopo l'esito negativo della prima attività di snapshot, il backup procede con l'acquisizione di una seconda snapshot ma con la funzione di disattivazione disabilitata.
avvcbimage Info <14631>: VM Disk Consolidation for '[vsanDatastore] DataProtection-ACM/DataProtection-ACM.vmx' task still in progress, sleep for 3 sec
avvcbimage Info <42650>: Creating snapshot 'Avamar-<epoch_time><client_id>', quiesceFS=0
avvcbimage Info <41136>: SnapshotManager: createSnapshot for vmMoref = vm-21
avvcbimage Info <42182>: SnapshotManager: POST to /snapshotmanager/vm/vm-21/action/createSnapshot, payload({
"snapshotName": "Avamar-<epoch_time><client_id>",
"snapshotDesc": "Created by Avamar workorder Management_VM_Backup-Management_VM_Backup-<epoch> on <date>",
"quiesceFileSystem": "false"
Il backup termina ma viene visualizzato come completato con eccezione (codice 10020)
Nel registro dell'ordine di lavoro (.alg), viene visualizzato quanto segue:
2019-04-03 00:12:42 Management_VM_Backup-Management_VM_Backup-<epoch>Warning <0000>: Workorder "Management_VM_Backup-Management_VM_Backup-epoch" non-zero exit status 'code 170: completed with errors, client log should be examined'
Cause
-
Per vedere cosa causa l'esito negativo della disattivazione, impostare la registrazione di debug per vmtools.
I passaggi riportati di seguito https://kb.vmware.com/s/article/1007873impostare la registrazione di debug sul sistema operativo guest e quindi riavviare VMware Tools.
-
Eseguire un nuovo backup per ricreare l'errore di disattivazione.
-
Esaminare i registri degli strumenti di debug (le informazioni di disattivazione devono essere presenti nel registro vmsvc e avere un prefisso [vmbackup]).
In questo esempio, il problema è stato causato da una directory /var/log/brs parzialmente eliminata. Impossibile rimuovere completamente questa directory a causa del processo in background la directory era ancora aperta. Questa cartella parzialmente eliminata impedisce al file system Linux di smettere di rispondere con le funzioni ioctls.
[ debug] [vmbackup] Submitted backup start task.
[ debug] [vmbackup] *** VmBackupSyncDriverStart
[ debug] [vmsvc] SyncDriver: Skipping remote filesystem, name=systemd-1, mntpt=/proc/sys/fs/binfmt_misc.
[ debug] [vmsvc] SyncDriver: Calling backend 0.
[ debug] [vmsvc] SyncDriver: Freezing using Linux ioctls...
[ debug] [vmsvc] SyncDriver: opening path '/var/lib/named/proc'.
[ debug] [vmsvc] SyncDriver: freezing path '/var/lib/named/proc'.
[ debug] [vmsvc] SyncDriver: freeze on '/var/lib/named/proc' returned: 95 (Operation not supported)
[ debug] [vmsvc] SyncDriver: opening path '/var/log/logbundles'.
[ debug] [vmsvc] SyncDriver: freezing path '/var/log/logbundles'.
[ debug] [vmsvc] SyncDriver: successfully froze '/var/log/logbundles'.
[ debug] [vmsvc] SyncDriver: opening path '/var/log/brs (deleted)'.
[ debug] [vmsvc] SyncDriver: failed to open '/var/log/brs (deleted)': 2 (No such file or directory)
[ warning] [vmbackup] Error freezing filesystems.
Resolution
Un esame più attento di /var/log/brs della directory può rilevare problemi di apertura di questa directory da altri comandi. Come lsof e stat mostrano anche un problema.
IDPA-ACM:/var/log # lsof|grep brs lsof: WARNING: can't stat() xfs file system /var/log/brs (deleted) Output information may be incomplete. IDPA-ACM:/var/log # ls -al drwxr-xr-x 0 root root 6 Feb 27 2018 brs
La macchina virtuale ACM è stata riavviata per terminare il processo ACM in background. Dopo il riavvio, la directory /var/log/brs è stata ricreata dal processo ACM e il backup è stato completato senza ulteriori problemi di disattivazione.
IDPA-ACM:/var/log # ls -al drwxr-xr-x 2 root root 6 Apr 15 10:30 brs
Additional Information
Assicurarsi di seguire quanto indicato nella KB precedente per rimuovere la registrazione di debug per vmtools sul client e riavviare il servizio vmtools.