02-20-2022 03:14 PM
When trying to modify a previous version of SLP to change the duplication residence, it fails at the command line. The previous Storage Unit definition was very long and doesn't fully show up in the listing. The full name is "grs-nbus2-hcart2-robot-tld-0". I've created a shorter Storage Unit called "nbus2-hcart3", but the nbstl utility still doesn't work.
All Storage Unit names are lower case only.
Successful outcomes are:
- Find a way to change the residence in the older version of the SLP weekly-nbus2.
- Stop the Duplication jobs from being processed (and subsequently failing due to incorrect Storage Unit density parameter)
Regards,
Wayne
-----------------------------
PS > .\nbstl weekly-nbus2-d2t -U -version 16
weekly-nbus2-d2t 16
backup stu-nbus2-msdp Default_24x7_Win Fixed
duplication grs-nbus2-hcar Default_24x7_Win Fixed
PS > .\nbstl weekly-nbus2-d2t -modify_version -version 16 -residence stu-nbus2-msdp,nbus2-hcart3
nbstl: unrecognized option nbus2-hcart3
Exit status: 20(invalid command parameter)
USAGE: nbstl [storage_lifecycle_name] [options]
REF: https://www.veritas.com/support/en_US/article.100038486
Solved! Go to Solution.
02-20-2022 08:42 PM - edited 02-20-2022 08:43 PM
Hi @wdoust
I think I understand now - powershell (I didn't realise you were using that) must mess up the arguments. Try (I'd be curious to make sure this works) putting single quotes around the argument for -residence, so something like this:
.\nbstl -modify_version -version 16 -residence 'stu-nbus2-msdp,nbus2-hcart3'
No quotes give me the same error in a PS (even on the master), and double quotes also don't work. But the above syntax allowed me to change the target STU.
Thanks for helping find out something new.
Cheers
David
02-20-2022 04:13 PM
Hi @wdoust
To answer your second question first - use the "nbstlutil cancel -backupid <id>" command using the backupid option (use the "nbstlutil sltilist -image_incomplete -lifecycle weekly-nbus2-d2t" to get the list of backupid's in progress).
As for fixing the specific version of the SLP, what you are executing is the correct form, so there must be something else that isn't allowing you to alter the SLP version (possible a missing parameter). To this end can you provide the output of the following commands:
nbstl weekly-nbus2-d2t -version 15 -L
bpstulist -label nbus2-hcart3 -L
bpstulist -label grs-nbus2-hcar..... -L (put the correct STU name here)
Thanks
David
02-20-2022 05:31 PM
Hi @davidmoline
Thanks for responding! Here is the output:
PS C:\Program Files\Veritas\NetBackup\bin\admincmd> .\nbstl weekly-nbus2-d2t -version 15 -L
Name: weekly-nbus2-d2t
Data Classification: (none specified)
Duplication Job Priority: 75
State: active
Version: 15
Operation 1 Use for: 0 (backup)
Storage: stu-nbus2-msdp
Volume Pool: (none specified)
Server Group: (none specified)
Retention Type: 0 (Fixed)
Retention Level: 10 (6 weeks)
Alternate Read Server: (none specified)
Preserve Multiplexing: false
Enable Automatic Remote Import: false
State: active
Source: 0 (client)
Operation ID: (none specified)
Operation Index: 1
Window Name: --
Window Close Option: --
Deferred Duplication: no
PS C:\Program Files\Veritas\NetBackup\bin\admincmd> .\bpstulist -label nbus2-hcart3 -L
Label: nbus2-hcart3
Storage Unit Type: Media Manager
Host Connection: grs-nbus2.hcma.com.au
Number of Drives: 2
On Demand Only: no
Density: hcart3 (20)
Robot Type/Number: TLD (8) / 0
Max Fragment Size: 1048576
Max MPX/drive: 1
PS C:\Program Files\Veritas\NetBackup\bin\admincmd> .\bpstulist -label grs-nbus2-hcart2-robot-tld-0 -L
Label: grs-nbus2-hcart2-robot-tld-0
Storage Unit Type: Media Manager
Host Connection: grs-nbus2.hcma.com.au
Number of Drives: 3
On Demand Only: no
Density: hcart (6)
Robot Type/Number: TLD (8) / 0
Max Fragment Size: 1048576
Max MPX/drive: 1
NB. Version 15 is the one I used last week to stop duplication jobs due to a faulty TBU. Version 16 is where I reinstated the Duplication job, but inadvertently used the old Storage Unit (HCART2). The latest version has the correct Storage Unit and is being used to duplicate new jobs.
TIA!
Wayne
02-20-2022 06:08 PM
Hi @wdoust
My bad, I wanted to see the problem SLP version (16?). Can you resend version 16 output?
David
02-20-2022 06:12 PM
NP!
PS C:\Program Files\Veritas\NetBackup\bin\admincmd> .\nbstl weekly-nbus2-d2t -version 16 -L
Name: weekly-nbus2-d2t
Data Classification: (none specified)
Duplication Job Priority: 75
State: active
Version: 16
Operation 1 Use for: 0 (backup)
Storage: stu-nbus2-msdp
Volume Pool: (none specified)
Server Group: (none specified)
Retention Type: 0 (Fixed)
Retention Level: 10 (6 weeks)
Alternate Read Server: (none specified)
Preserve Multiplexing: false
Enable Automatic Remote Import: false
State: active
Source: 0 (client)
Operation ID: (none specified)
Operation Index: 1
Window Name: --
Window Close Option: --
Deferred Duplication: no
Operation 2 Use for: 1 (duplication)
Storage: grs-nbus2-hcart2-robot-tld-0
Volume Pool: Weekly
Server Group: Any
Retention Type: 0 (Fixed)
Retention Level: 5 (3 months)
Alternate Read Server: (none specified)
Preserve Multiplexing: false
Enable Automatic Remote Import: false
State: active
Source: Operation 1 (backup:stu-nbus2-msdp)
Operation ID: (none specified)
Operation Index: 2
Window Name: Default_24x7_Window
Window Close Option: SFN
Deferred Duplication: no
02-20-2022 06:49 PM
Hi @wdoust
Okay - I'm mystified - I can't see anything that would cause the command to fail.
Can you share an extract from the admin log at the time you ran the command? If this doesn't yet exist, create the admin directory on the host your are running this from (the master?), set VERBOSE logging to level 3, run the command and collect the output and attach (or just a few lines paste).
Regards
David
02-20-2022 07:14 PM
Hi @davidmoline ,
TL;DR - Resolved!
I was running the commands on the Media Server (like I always do, without a problem - ever). However I couldn't raise the log level because BAR doesn't run on the media server (grs-nbus2).
Running the command on the master server (grs-nbus1) works. The only other difference is that I run commands on the master in CMD and in powershell on the media server.
PS C:\Program Files\Veritas\NetBackup\bin\admincmd> .\nbstl weekly-nbus2-d2t -version 16 -L
Name: weekly-nbus2-d2t
Data Classification: (none specified)
Duplication Job Priority: 75
State: active
Version: 16
Operation 1 Use for: 0 (backup)
Storage: stu-nbus2-msdp
Volume Pool: (none specified)
Server Group: (none specified)
Retention Type: 0 (Fixed)
Retention Level: 10 (6 weeks)
Alternate Read Server: (none specified)
Preserve Multiplexing: false
Enable Automatic Remote Import: false
State: active
Source: 0 (client)
Operation ID: (none specified)
Operation Index: 1
Window Name: --
Window Close Option: --
Deferred Duplication: no
Operation 2 Use for: 1 (duplication)
Storage: nbus2-hcart3
Volume Pool: Weekly
Server Group: Any
Retention Type: 0 (Fixed)
Retention Level: 5 (3 months)
Alternate Read Server: (none specified)
Preserve Multiplexing: false
Enable Automatic Remote Import: false
State: active
Source: Operation 1 (backup:stu-nbus2-msdp)
Operation ID: (none specified)
Operation Index: 2
Window Name: Default_24x7_Window
Window Close Option: SFN
Deferred Duplication: no
Go figure!
Wayne
02-20-2022 08:42 PM - edited 02-20-2022 08:43 PM
Hi @wdoust
I think I understand now - powershell (I didn't realise you were using that) must mess up the arguments. Try (I'd be curious to make sure this works) putting single quotes around the argument for -residence, so something like this:
.\nbstl -modify_version -version 16 -residence 'stu-nbus2-msdp,nbus2-hcart3'
No quotes give me the same error in a PS (even on the master), and double quotes also don't work. But the above syntax allowed me to change the target STU.
Thanks for helping find out something new.
Cheers
David
02-20-2022 08:51 PM
Yep!
Single quotes does the trick.
Oh well....
Thanks for your help!