+ Post New Thread
Results 1 to 7 of 7
Enterprise Software Thread, SCDPM Tape Question - Tape Available - Free (contains data) in Technical; I've just put 7 tapes in to our SuperLoader Tape Library that were used in our previous DPM server some ...
  1. #1
    Fazza's Avatar
    Join Date
    Jun 2012
    Location
    England
    Posts
    206
    Thank Post
    4
    Thanked 23 Times in 21 Posts
    Rep Power
    8

    SCDPM Tape Question - Tape Available - Free (contains data)

    I've just put 7 tapes in to our SuperLoader Tape Library that were used in our previous DPM server some time ago.

    They are coming up as Tape Available - Free (contains data).

    Silly question time: do I need to erase these tapes or will DPM overwrite the data that is already on it?

    Thanks

  2. #2
    Modey's Avatar
    Join Date
    Oct 2007
    Location
    Northants
    Posts
    140
    Thank Post
    16
    Thanked 31 Times in 26 Posts
    Rep Power
    19
    Quote Originally Posted by Fazza View Post
    I've just put 7 tapes in to our SuperLoader Tape Library that were used in our previous DPM server some time ago.

    They are coming up as Tape Available - Free (contains data).

    Silly question time: do I need to erase these tapes or will DPM overwrite the data that is already on it?

    Thanks
    You should be able to right click the tapes and then pick 'Mark as Free'. In which case it will wipe the tape. If it thinks the contents are still part of an active protection group then you will need to use a powershell script to do a force wipe. That or un-protect the resource that it reckons is still being protected.

    Depends on the original retention goal that was set also, how long it will want to keep hold of the data.

    p.s Don't pick 'Erase Tape' when right clicking unless you want to wait a long time.

  3. #3
    Fazza's Avatar
    Join Date
    Jun 2012
    Location
    England
    Posts
    206
    Thank Post
    4
    Thanked 23 Times in 21 Posts
    Rep Power
    8
    They are marked as Free (contains data) so I'm assuming they are ready to be used and DPM will overwrite the existing data on them?

  4. #4
    Modey's Avatar
    Join Date
    Oct 2007
    Location
    Northants
    Posts
    140
    Thank Post
    16
    Thanked 31 Times in 26 Posts
    Rep Power
    19
    In that case, they should be fine to use.

  5. #5
    Fazza's Avatar
    Join Date
    Jun 2012
    Location
    England
    Posts
    206
    Thank Post
    4
    Thanked 23 Times in 21 Posts
    Rep Power
    8
    Quote Originally Posted by Modey View Post
    In that case, they should be fine to use.
    Unfortunately not.

    I told it to erase one of the tapes and it failed because of a protection agent failure so Free (contains data) doesn't seem to mean it can actually be used as is which is a bit confusing.

  6. #6
    Modey's Avatar
    Join Date
    Oct 2007
    Location
    Northants
    Posts
    140
    Thank Post
    16
    Thanked 31 Times in 26 Posts
    Rep Power
    19
    What happens if you right click the tape then pick 'Mark as Free'?

    If that doesn't work, like I said in my original post, you will either need to use a powershell script (there are a few knocking about online) which will allow you to do a forced wipe of the tape. Or un-protect the resources that are backed up on the tape.

    It should be possible to examine the tape contents and check what's on there and when it was set to expire...

    Final thing to check is the type of tape. You could be looking at an LTO2 tape and trying to write to it with an incompatible drive (eg LTO4).

  7. #7

    Join Date
    Apr 2007
    Location
    Croydon
    Posts
    500
    Thank Post
    18
    Thanked 31 Times in 30 Posts
    Rep Power
    21
    On my installation of DPM it will happily overwrite tapes that are "Free (Contains Data)". I use this powershell script to mark them as free.

    Copy and paste that into notepad, save as a PS1 file and run in the DPM shell.

    Code:
    param ([string] $DPMServerName, [string] $LibraryName, [string[]] $TapeLocationList)
    
    if(("-?","-help") -contains $Args[0])
    {
    Write-Host "Usage: ForceFree-Tape.ps1 [[-DPMServerName] <Name of the DPM server>] [-LibraryName] <Name of the library> [-TapeLocationList] <Array of tape locations>"
    Write-Host "Example: Force-FreeTape.ps1 -LibraryName "My library" -TapeLocationList Slot-1, Slot-7"
    exit 0
    }
    
    if (!$DPMServerName) 
    {
    $DPMServerName = Read-Host "DPM server name: "
    if (!$DPMServerName) 
    {
    Write-Error "Dpm server name not specified."
    exit 1
    }
    
    }
    if (!(Connect-DPMServer $DPMServerName))
    {
    Write-Error "Failed to connect To DPM server $DPMServerName"
    exit 1
    }
    
    $library = @(Get-DPMLibrary $DPMServerName )
    if ($library.count -eq 0)
    {
    Write-Error "Failed to find library with user friendly name $LibraryName"
    exit 1
    }
    
    if (!$LibraryName)
    {
    $library | foreach {$_.userfriendlyname}
    $LibraryName = Read-Host "Library name (cut & paste from above): "
    if (!$LibraryName)
    {
    
    Write-Error "Library name not specified."
    exit 1
    }
    }
    
    if (!$TapeLocationList)
    {
    $tmp = Read-Host "Tape location: "
    $TapeLocationList=$tmp.split(",")
    write-host "Processing this slot list..."
    $TapeLocationList
    if (!$TapeLocationList)
    {
    Write-Error "Tape location not specified."
    exit 1
    }
    }
    
    foreach ($media in @(Get-Tape -DPMLibrary $library))
    {
    if ($TapeLocationList -contains $media.Location)
    {
    if ($media -is [Microsoft.Internal.EnterpriseStorage.Dls.UI.ObjectModel.LibraryManagement.ArchiveMedia]) 
    {
    foreach ($rp in @(Get-RecoveryPoint -Tape $media))
    {
    Get-RecoveryPoint -Datasource $rp.Datasource | Out-Null
    Write-Verbose "Removing recovery point created at $($rp.RepresentedPointInTime) for tape in $($media.Location)."
    Remove-RecoveryPoint -RecoveryPoint $rp -ForceDeletion -Confirm:$false
    }
    
    Write-Verbose "Setting tape in $($media.Location) as free."
    Set-Tape -Tape $media -Free
    }
    else
    {
    Write-Error "The tape in $($media.Location) is a cleaner tape."
    }
    }
    }
    Mark as free will be greyed out if DPM thinks they are already free.

SHARE:
+ Post New Thread

Similar Threads

  1. [FREE] DLTtape VS1 data cartridges x 2 and DLT Cleaning Tape
    By Andie in forum Classified Adverts
    Replies: 1
    Last Post: 13th February 2012, 10:59 AM
  2. Replies: 0
    Last Post: 25th July 2011, 12:55 PM
  3. Divx Pro 6 bundle available free
    By in forum Educational Software
    Replies: 8
    Last Post: 8th June 2007, 03:19 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •