08-07-2018 10:40 PM
In Veritas NetBackup, for a single media first mount date has been changed, while other media date is still same. For Example , I take two media. Media A has first mount date 07/07/2015 and media B has 10/06/2018, while first time backup on both media was taken on 07/07/2015.
Please describle me the process and database entry for the same or share the reference from I can learn about the same.
Solved! Go to Solution.
08-08-2018 11:08 PM
08-08-2018 11:45 PM
Marianne and Anshu beat me to it - what I was after was the created time.
The media was at some point deleted (why ?) and re-added. When deleted, it is exactly that, deleted, so NBU has no records of it anymore.
Simply, do not delete tapes, and you will not have this issue.
Kindest regards,
Martin
08-07-2018 11:47 PM
So you are saying you have:
first mount 10/06/2018
But the backup on the media has a ctime (backup time) of 07/07/2015
OK, for media B, run vmquery -m <mediaB> and copy/ paste the output.
Interested in the created time and the assign time.
08-08-2018 03:00 AM
Please find the command result below:
c:\Program Files\Veritas\Volmgr\bin>vmquery.exe -m 1102L5 ============================================================================ media ID: 1102L5 media type: 1/2" cartridge tape 2 (14) barcode: P01102L5 media description: Added by Media Manager volume pool: Weekly-Backup (5) robot type: TLD - Tape Library DLT (8) robot number: 0 robot slot: 9 robot control host: serverNBU.testdomain.com volume group: 000_00000_TLD vault name: --- vault sent date: --- vault return date: --- vault slot: --- vault session id: --- vault container id: - created: 07.07.2018 17:16:17 assigned: 07.08.2018 23:11:37 last mounted: 08.08.2018 09:27:15 first mount: 09.07.2018 09:19:32 expiration date: --- number of mounts: 23 max mounts allowed: --- status: 0x0 ============================================================================ c:\Program Files\Veritas\Volmgr\bin>
If we will delete the media then what will happen? will it change all the inforamtion of media and recognize the media as new tape?
08-08-2018 03:41 AM
We need to focus on these four dates that you see.
This is when media got added to NetBackup through first inventory.
created: 07.07.2018 17:16:17
This is the time when its first backup job was written on this media.
It will not change even if first backup image was expired.
It will only be removed when all backup images using this media gets expired. assigned: 07.08.2018 23:11:37
This is when media was most recently mounted for backup, restore, import or reports job. last mounted: 08.08.2018 09:27:15
This is when media was first mounted. first mount: 09.07.2018 09:19:32
08-08-2018 04:45 AM
ok, I understand this part but my question is still same. This media was assigned to netbackup on June 2015. So is it possible that all the media information will change?
If we will delete the media then what will happen? will it change all the inforamtion of media and recognize the media as new tape?
08-08-2018 10:05 AM
08-08-2018 09:10 PM
Yes, I know that before some time, I was delete the media during the troubleshooting but I am not confirm about the process.
08-08-2018 11:08 PM
08-08-2018 11:45 PM
Marianne and Anshu beat me to it - what I was after was the created time.
The media was at some point deleted (why ?) and re-added. When deleted, it is exactly that, deleted, so NBU has no records of it anymore.
Simply, do not delete tapes, and you will not have this issue.
Kindest regards,
Martin
08-09-2018 05:41 AM
I am not too sure what part of the process you are unsure of, an excellent description of these fileds has been given.
created: 07.07.2018 17:16:17 assigned: 07.08.2018 23:11:37 last mounted: 08.08.2018 09:27:15 first mount: 09.07.2018 09:19:32
Created - when NBU first learns about the tape, will never change unless the tape is deleted. We sometime describe this as 'when the tape is added to the volume database'
Assigned - Time when tape is selected to hold images (backup / duplication). This is only cleared when the tape 'expires'. We sometimes describe this as 'when the tape is added to the media database'
Don't worry about 'volume' and 'media' DB, they are really old terms back in the day before NBU 6.0.
These dates, are held in various tables in the NetBackup SQL database (NBDB).