Quantcast
Channel: Symantec Connect - Backup and Recovery - 讨论
Viewing all articles
Browse latest Browse all 3749

Use CLI to add or remove step into a SLP

$
0
0
我需要解决方案

Hi all,

I'm trying to create a script to manage SLP for HA needs.

It is very simple to change STU into SLP steps, but I am not able to add or remove a step from an existing SLP. Have you an idea ?

I'am running on RHEL, with NBU 7.6.0.2 and my script run on the master server.

Here is my existing SLP (TEST_Gautier) with 3 steps.

ROOT@spvlmnb:rmgr> nbstl TEST_Gautier -l
TEST_Gautier *NULL* 0 0x0 7
0 STU-SO-R609-DCV-EXC *NULL* *NULL* 0 1 *NULL* 0 0x0 0 0 0 1 Default_24x7_Window *NULL* *NULL*
    1 STU-SO-DCV-DCV-EXC *NULL* *NULL* 0 1 *NULL* 0 0x0 1 0 0 2 Default_24x7_Window *NULL* *NULL*
        1 STU-K7-R609-DCV_copy NetBackup *ANY* 0 1 *NULL* 0 0x0 2 0 0 3 Default_24x7_Window *NULL* *NULL*

I swap (successfully) STU from firsts 2 steps

ROOT@spvlmnb:rmgr> nbstl TEST_Gautier -modify -residence STU-SO-DCV-DCV-EXC,STU-SO-R609-DCV-EXC,STU-K7-R609-DCV_copy
ROOT@spvlmnb:rmgr>
ROOT@spvlmnb:rmgr>  nbstl TEST_Gautier -l
TEST_Gautier *NULL* 0 0x0 8
0 STU-SO-DCV-DCV-EXC *NULL* *NULL* 0 1 *NULL* 0 0x0 0 0 0 1 Default_24x7_Window *NULL* *NULL*
    1 STU-SO-R609-DCV-EXC *NULL* *NULL* 0 1 *NULL* 0 0x0 1 0 0 2 Default_24x7_Window *NULL* *NULL*
        1 STU-K7-R609-DCV_copy NetBackup *ANY* 0 1 *NULL* 0 0x0 2 0 0 3 Default_24x7_Window *NULL* *NULL*

I thought that this command, with only 2 STU will delete 3rd step... But it did not (2 tries)

ROOT@spvlmnb:rmgr> nbstl TEST_Gautier -modify -residence STU-SO-DCV-DCV-EXC,STU-SO-R609-DCV-EXC

Errors found in storage lifecycle policy definition:

   error 37: operation requested by an invalid server

Exit status: 1564(Storage lifecycle policy contains errors)
ROOT@spvlmnb:rmgr> nbstl TEST_Gautier -modify -residence STU-SO-DCV-DCV-EXC,STU-SO-R609-DCV-EXC,__NA__

Errors found in storage lifecycle policy definition:

   error 1572: Storage unit must be specified for this operation
   Operation Index: 3

Exit status: 1564(Storage lifecycle policy contains errors)

Any ideas ?

Thank you !
 


Viewing all articles
Browse latest Browse all 3749

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>