cancel
Showing results for 
Search instead for 
Did you mean: 

Cartridge Space Reclamation issue

shakeel-qureshi
Level 4
Partner Accredited

i have expired Backup_id images via         bpexpdate -backupid ABC01_A_Backup_1344457991 -d 0

 

how can i free the space in the cartridge ? Cartridge is still showing me the full space in the GUI POOL.

1 ACCEPTED SOLUTION

Accepted Solutions

Mark_Solutions
Level 6
Partner Accredited Certified

16:01:27.073 [2228.4160] <16> init_tape: GetTapeStatus() on \\.\Tape1 (SCSI coordinates {4,0,1,0}), failed, The device has indicated that cleaning is required before further operations are attempted.

It is not the tape, it is your drives

You need to clean them before further writing to tape

View solution in original post

13 REPLIES 13

Andy_Welburn
Level 6

NetBackup will not be able to re-use media until *ALL* images on said media have expired.

If your bpexpdate command did indeed expire all the data on the tape then try running bpexpdate -deassignempty to unassign & allow for re-use.

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Expired image space on a tape cannot be reclaimed.

ALL images on a tape must be expired before tape can be overwritten.

See this blog for more info: https://www-secure.symantec.com/connect/blogs/understanding-how-netbackup-writes-tape

revarooo
Level 6
Employee

Netbackup doesn't calculate how much space is free on specific partt of the tape. Therefore IF it could write to it, you'd potentially face over-writting other data as your backup may be bigger than the space available. Hence why it only uses the tape again when all images have expired that are on that tape.

shakeel-qureshi
Level 4
Partner Accredited

This tape was expired via

bpexpdate.exe -m 3BCYL5 -d 0 -force -host cbs_master

the cartridge was expired, but the  cartridge is not being reused by NetBackup. then i run this command:

bpexpdate -deassignempty -m 3BCYL5 -force -M master_server
Deassigned 0 out of 36 media-ids found.
 

now guide me how can i free the space to reuse the tape.

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Please show us output of this command:

nbemmcmd -listmedia -mediaid 3BCYL5

shakeel-qureshi
Level 4
Partner Accredited

D:\Program Files\Veritas\NetBackup\bin\admincmd>nbemmcmd -listmedia -mediaid 3BC
YL5
NBEMMCMD, Version: 7.5
====================================================================
Media GUID:                     aaafc3e0-ef90-46b0-a316-4802a3a5f7fb
Media ID:                       3BCYL5
Partner:                        -
Media Type:                     HCART2
Volume Group:                   000_00000_TLD
Application:                    Netbackup
Media Flags:                    1
Description:                    Added by Media Manager
Barcode:                        403BCYL5
Partner Barcode:                --------
Last Write Host:                NONE
Created:                        05/28/2012 15:35
Time Assigned:                  -
First Mount:                    05/28/2012 16:10
Last Mount:                     10/01/2012 11:49
Volume Expiration:              -
Data Expiration:                -
Last Written:                   -
Last Read:                      -
Robot Type:                     TLD
Robot Control Host:             cbs_medsvr01
Robot Number:                   0
Slot:                           15
Side/Face:                      -
Cleanings Remaining:            -
Number of Mounts:               2163
Maximum Mounts Allowed:         0
Media Status:                   ACTIVE
Kilobytes:                      0
Images:                         0
Valid Images:                   0
Retention Period:               -
Number of Restores:             0
Optical Header Size Bytes:      0
Optical Sector Size Bytes:      0
Optical Partition Size Bytes:   0
Last Header Offset:             0
Adamm Guid:                     00000000-0000-0000-0000-000000000000
Rsm Guid:                       00000000-0000-0000-0000-000000000000
Origin Host:                    NONE
Master Host:                    cbs_master
Server Group:                   -
Upgrade Conflicts Flag:
Pool Number:                    14
Volume Pool:                    SDP-Pool
Previous Pool Name:             -
Vault Flags:                    -
Vault Container:                -
Vault Name:                     -
Vault Slot:                     -
Session ID:                     -
Date Vaulted:                   -
Return Date:                    -
Media on Hold:                  0
====================================================================
Command completed successfully.

D:\Program Files\Veritas\NetBackup\bin\admincmd>

Mark_Solutions
Level 6
Partner Accredited Certified

There is no time assigned on that tape and it has a status of active

This means that the next time it gets written to it will overwirte it

It is ready for you - there is nothing else to do except wait for it to be used

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

I agree with Mark.

Tape is available to be overwritten.

If there are more available tapes in SDP-Pool, NBU will choose the one with least amount of mounts.

(Number of Mounts:               2163)

shakeel-qureshi
Level 4
Partner Accredited

10/1/2012 3:26:43 PM - current media 3BCYL5 complete, requesting next resource Any
10/1/2012 3:27:58 PM - granted resource 3BCYL5
10/1/2012 3:27:58 PM - granted resource IBM.ULT3580-HH5.002
10/1/2012 3:27:58 PM - granted resource cbs_medsvr01-hcart2-robot-tld-0
10/1/2012 3:27:58 PM - mounting 3BCYL5
10/1/2012 3:29:40 PM - current media 3BCYL5 complete, requesting next resource Any
10/1/2012 3:30:37 PM - granted resource 3BCYL5
10/1/2012 3:30:37 PM - granted resource IBM.ULT3580-HH5.002
10/1/2012 3:30:37 PM - granted resource cbs_medsvr01-hcart2-robot-tld-0
10/1/2012 3:30:38 PM - mounting 3BCYL5
10/1/2012 3:32:21 PM - current media 3BCYL5 complete, requesting next resource Any

 

When i run a manuall backup, while keeping all other cartridges frozen in this pool, this cartridge keeps mounting and unmounting in a infinite loop.

 

 

 

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Check bptm log on media server to see what is happening.
If bptm log folder does not exist, create it and retry.

Please also ensure that Media Manager logging is enabled on media server as well as robot control host if they are different:

Add VERBOSE entry in vm.conf 
(D:\Program Files\Veritas\volmgr\)
Restart Device Management Service.

Media Manager actions and errors will now be logged in Event Viewer System and Application logs.

shakeel-qureshi
Level 4
Partner Accredited

i am uploading the bptm log file, please go through it and let me know,

thanks

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

bptm log shows mount request for media id media id 649BBO.

Also reported load error:

media id 649BBO load operation reported an error

seems tape drive needs cleaning:

 

process_tapealert: TapeAlert Code: 0x15, Type: Warning, Flag: CLEAN PERIODIC, from drive

Please ensure that cleaning media is available or else clean drive(s) manually.

Mark_Solutions
Level 6
Partner Accredited Certified

16:01:27.073 [2228.4160] <16> init_tape: GetTapeStatus() on \\.\Tape1 (SCSI coordinates {4,0,1,0}), failed, The device has indicated that cleaning is required before further operations are attempted.

It is not the tape, it is your drives

You need to clean them before further writing to tape