Hi There,
Thank you for your answer!
I think it is important that I use the free edition where I have no wizard option. This is why I used the powershell method. But let me answer the questions:
1. Yes, the USB device is recognised by the OS and I can see the vtape files.
2. I mounted the VTLs through the PowerShell way but as I can see it is basically the same process but without GUI. I will write the exact scripts what I used to create the original VTLs and how I tried to mount it under the new server at the end of my post.
3. Please see the below scripts to see my way how I used PowerShell.
4. The goal here is recover our full environment from offsite backup so the "middle way" I think is not so important at this point.
And the script for create my VTL:
Code: Select all
$serverName ="SV1"
$filename = $serverName + "Offsite"
$numTapes = 60
$filepath = "F:\Offsite\" + $serverName
.\CreateVirtualTapeLibrary.ps1 -fileName $filename -filePath $filepath -targetAlias $serverName -tapeSize 300000
for ($i = 0; $i -lt $numTapes; $i++){
.\AddVirtualTape.ps1 -deviceName $filename -tapeSize 300000 -maxDataFileSize 2048
}
Then I detached the tapes from the drive and moved our USB disk to the new server where I used the same script to create the new VTL. Well, actuall there was a difference.
On the new server I used a blank new USB disk to create the target and devices. It has got a drive letter "H" instead of "F". Then I detached the new VTLs from the drive and replaced the new temp USB disk with our existing offsite USB disk using in this case the same "H" as drive letter. I didn't care with this at the moment of creation as I didn't thought the drive letter is important.
And here is the script I used to mount the VTLs to the new server:
Code: Select all
.\InsertVirtualTape.ps1 -deviceName "SV1Offsite" -tapeBarcode "SWB1O00A" -slotAddress 1001
Of course I naviggated to the StarWind's powershell sample directory where the InsertVirtualTape.ps1 is located.
I also tried the following script:
Code: Select all
Import-Module StarWindX
$server = New-SWServer -host 127.0.0.1 -port 3261 -user root -password starwind
$server.Connect()
$server
$device = Get-Device $server -name SV1Offsite
$device.InsertTape("SWB1O00A", 1001)
In both cases I got the same error:
Specified virtual tape doesn't exist.
Thank you very much!