10-14-2011 12:51 AM
Hi,
I'm looking for a way to automate the changing of the order of basic disk units in a storge group. I can see bpstudel and bpstuadd but I imagine weird things may happen if I delete and add units from a storage group whilst it is in use, which it mostly is.
We can re-order from the gui fine...so can it be done from the command line?
Cheers.
Solved! Go to Solution.
10-18-2011 07:25 PM
bpsturep is the command, but it does not allow you add or delete (change order) at the same time.
However there is still a workaround, assuming if you have 2 STUs inside a STUG. Prepare a script to run these 2 commands:
bpsturep -group tapeGroup -delstu <first_STU>
bpsturep -group tapeGroup -addstu <first_STU>
This will swap the order of the 2 STUs (FIFO order). If you have more, just add in more lines.
Whether NBU is going to pick up the change for the next job, I am not sure though.. may need to test out. Maybe doing a "bprdreq -rereadconfig" after those commands
10-14-2011 03:22 AM
I cant see anything but there must be one!
You could up your logging and them make the change and see if it logs the command under netbackup\logs\admin\
Please let us know if youy find it!
10-15-2011 03:25 AM
10-18-2011 07:25 PM
bpsturep is the command, but it does not allow you add or delete (change order) at the same time.
However there is still a workaround, assuming if you have 2 STUs inside a STUG. Prepare a script to run these 2 commands:
bpsturep -group tapeGroup -delstu <first_STU>
bpsturep -group tapeGroup -addstu <first_STU>
This will swap the order of the 2 STUs (FIFO order). If you have more, just add in more lines.
Whether NBU is going to pick up the change for the next job, I am not sure though.. may need to test out. Maybe doing a "bprdreq -rereadconfig" after those commands