Forum Discussion

Bogdanl's avatar
Bogdanl
Level 4
7 years ago

Netbackup tried to delete the same snapshot twice

Hello,

I encounter a issue during the backup of one of my VMs which ends in partial because NBU deletes twice the generated snapshot; the first one works, the second one fails.

The error reported by the vcenter would be "normal" in the sense that netbackup tries to delete the snapshot twice, the first time succeeds, the second time fails because the snapshot no longer exists. I just manually validate that I can make a snapshot and delete it on this VM without error (and without the attempt does generate two tests). The behavior is different on other VMs, netbackup does not try to delete the snapshot twice

Any advice will be apreciated

 Failed to delete snapreplicapair file [C:\Program Files\Veritas\NetBackup\online_util\fi_cntl\bpfis.fim.E00001.srv.entreprise.int_1543444207.1.0.snapreplicapair] return value[-1]                        error [2] [No such file or directory]
23:33:34.738 [16748.15952] <4> keep_alive_and_snapshot_control: Starting keep alive thread.
23:33:34.738 [16748.15952] <2> deleteReference: reference not found in the list
23:33:34.738 [16748.15952] <4> unlockSnapshot: Delete reference: status [-4]
23:33:34.738 [16748.15952] <2> writeSnapshotLockFile: Writing type[2] refcount[0]
23:33:34.738 [16748.15952] <2> writeSnapshotLockFile: Writing Flags [0] [0]
23:33:34.738 [16748.15952] <2> writeSnapshotLockFile: Writing Last addReffernt Time [Thu Jan 01 01:00:00 1970 ]
23:33:34.738 [16748.15952] <2> writeSnapshotLockFile: Writing Last Hostname []
23:33:34.848 [16748.15952] <2> getFileName: FileName is [C:\Program Files\Veritas\NetBackup\online_util\fi_cntl\E00001.srv.entreprise.int_1543444207_copy1.lock]
23:33:34.848 [16748.15952] <2> unlockSnapshot: file[C:\Program Files\Veritas\NetBackup\online_util\fi_cntl\E00001.srv.entreprise.int_1543444207_copy1.lock] : zero reference count
23:33:34.848 [16748.15952] <4> unlockSnapshot: Released snapshot lock: status [0]
23:33:34.848 [16748.15952] <4> do_post_processing: Deleting snapshot lock files from client for id [E00001.srv.entreprise.int_1543444207] and copy_number [1]
23:33:34.848 [16748.15952] <2> getFileName: FileName is [C:\Program Files\Veritas\NetBackup\online_util\fi_cntl\E00001.srv.entreprise.int_1543444207_copy1.lock]
23:33:34.848 [16748.15952] <2> deleteSnapshotLockFile: Renamed lock file from [C:\Program Files\Veritas\NetBackup\online_util\fi_cntl\E00001.srv.entreprise.int_1543444207_copy1.lock] to [\sgbc.] for deletion
23:33:34.848 [16748.15952] <2> deleteSnapshotLockFile: File[\sgbc.] delete: status[0]

Thank you

7 Replies

  • I'm not sure you're showing the relevant log snippet. This looks like a portion of the bpfis log, correct? The files in the fi_cntl folder are used for managing a snapshot across processes. They are not the snapshot itself. I don't think a failure here causes a non-zero backup status.

    Please show the "logparams" and exit status lines from the log for this pid and any other pid that contains the snapshot timestamp 1543444207. (E00001.srv.entreprise.int_1543444207 is the "fis id" in the same client_timestamp as a backup id.)

      • Lowell_Palecek's avatar
        Lowell_Palecek
        Level 6

        There is only one deletion of this snapshot:

        >23:33:34.598 [16748.15952] <2> onlfi_vfms_logf: INF - vfm_thaw: delete snapshot ...
        ...
        >23:33:34.738 [16748.15952] <4> onlfi_thaw: INF - do_thaw return value: 0

        Moreover, there is no error here. Both the "bpfis create" and "bpfis delete" processes for this snapshot finished with status 0:

        >23:31:23.234 [7912.15840] <4> bpfis Exit: INF - EXIT STATUS 0: the requested operation was successfully completed
        >23:33:35.269 [16748.15952] <4> bpfis Exit: INF - EXIT STATUS 0: the requested operation was successfully completed

        What failure are you seeing and where are you seeing it?