netbackup 7.5 for vmware: hands-on lab (advanced) · 2016. 7. 4. · ! ! 4!...

52
NetBackup 7.5 for VMware: Hands-On Lab (Advanced) Description This lab is designed for people that already know and/or use a previous version of NetBackup for VMware. The lab will provide you direct, hands on experience with some of the latest NetBackup 7.5 for VMware data protection features and will go beyond the basic lab. Features that will be highlighted include the use of the VMware Custom Field in the Policy, how the backup status is propagated back into vCenter through Events, how you setup and configure Media Server Load Balancing for VMware to further speed up the backup process. This lab assumes a some familiarity with NetBackup for VMware Version 7.1 and will mainly focus on useful enhancements in Version 7.5. The Basic Lab is available for you if you are completely new to NetBackup for VMware. Though it is not needed that you first complete the Base Lab. At the end of this lab, you should be able to Understand how the VMadmin and you can interoperate dynamicly whether a VM should be included or excluded for backup through the use of VMware Custom Fields. Understand how you can propagate backup stats about success and failure from NetBackup back into vCenter so that the VMadmin has the data availabe in his native interface. Understand how Media Server Load Balancing for VMware works and the positive effects it has on overall job throughput performance. Understand how you can exclude Boot or Data Disks from the backup. Notes This is a selfpaced lab. Feel free to proceed with this lab at your own speed. If you have any questions or problems with the lab, instructors are available and can provide immediate assistance. Simply raise your hand if you need assistance. Thank you for attending our lab session.

Upload: others

Post on 15-Feb-2021

0 views

Category:

Documents


0 download

TRANSCRIPT

  •  

    NetBackup 7.5 for VMware: Hands-On Lab (Advanced) Description This  lab  is  designed  for  people  that  already  know  and/or  use  a  previous  

    version  of  NetBackup  for  VMware.  The  lab  will  provide  you  direct,  hands  on  experience  with  some  of  the  latest  NetBackup  7.5  for  VMware  data  protection  features  and  will  go  beyond  the  basic  lab.    Features  that  will  be  highlighted  include  the  use  of  the  VMware  Custom  Field  in  the  Policy,  how  the  backup  status  is  propagated  back  into  vCenter  through  Events,  how  you  setup  and  configure  Media  Server  Load  Balancing  for  VMware    to  further  speed  up  the  backup  process.  

    This  lab  assumes  a  some  familiarity  with  NetBackup  for  VMware  Version  7.1  and  will  mainly  focus  on  useful  enhancements  in  Version  7.5.    

    The  Basic  Lab  is  available  for  you  if  you  are  completely  new  to  NetBackup  for  VMware.  Though  it  is  not  needed  that  you  first  complete  the  Base  Lab.

    At the end of this lab, you should be able to

    § Understand  how  the  VMadmin  and  you  can  interoperate  dynamicly  whether  a  VM  should  be  included  or  excluded  for  backup  through  the  use  of  VMware  Custom  Fields.  

    § Understand  how  you  can  propagate  backup  stats  about  success  and  failure  from  NetBackup  back  into  vCenter  so  that  the  VMadmin  has  the  data  availabe  in  his  native  interface.  

    § Understand  how  Media  Server  Load  Balancing  for  VMware  works  and  the  positive  effects  it  has  on  overall  job  throughput  performance.  

    § Understand  how  you  can  exclude  Boot  or  Data  Disks  from  the  backup.  

    Notes § This  is  a  self-‐paced  lab.    Feel  free  to  proceed  with  this  lab  at  your  own  

    speed.  

    § If  you  have  any  questions  or  problems  with  the  lab,  instructors  are  available  and  can  provide  immediate  assistance.    Simply  raise  your  hand  if  you  need  assistance.  

    § Thank  you  for  attending  our  lab  session.

  •       2       2  

    Lab  Agenda:    

    Lab  Exercise  1:  Prepare  the  NetBackup  for  VMware  lab  environment  for  the  Advanced  Lab   5  Minutes  

     

    Lab  Exercise  2:  Virtual  Machine  Intelligent  Policy  (VIP)  query  knowledge   10  Minutes  

     

    Lab  Exercise  3:  Interaction  between  vSphere  and  NetBackup  through  custom  fields   15  Minutes  

     

    Lab  Exercise  4:  Interaction  between  NetBackup  and  vSphere  through  Event  notification   5  Minutes  

     

    Lab  Exercise  5:  Configure  a  NetBackup  for  VMware  Media  Server  Load  Balancing   10  Minutes  

     

    Lab  Exercise  6:  Excluding  the  boot  disk  from  a  Virtual  Machine  Backup 15  Minutes  

     

       

       

     

     

     

     

  •       3       3  

    Lab  Layout:  This  demo  is  configured  with  3  VMware  Workstation  based  OS  images.    They  are  described  as  follows:  

     

    NETBACKUP1  -‐  This  is  the  NetBackup  Master  Server  and  the  VMware  Access  Host  for  this  Lab  Setup.    A  VMware  Access  Host  is  the  system  that  NetBackup  contacts  to  obtain  ESX  or  ESXi  server  and  virtual  machine  information  including  hostnames  and  IP  addresses.    Note:  For  this  lab  this  server  also  has  OpsCenter  installed.  

     

    VCENTER1  -‐  This  system  is  the  brain  of  the  VMware  environment.    VMware’s  vCenter  server  stores  information  for  every  virtual  machine  (VM)  in  the  environment.    NetBackup  7  automatically  contacts  the  vCenter  server  and  collects  and  caches  this  VM  information.    NetBackup  then  uses  this  information  to  select  any  new  or  moved  VMs  so  that  every  VM  is  automatically  protected.    NetBackup  7  is  fully  integrated  with  VMware’  vCenter  server  architecture.      

    Additionally  for  the  purpose  of  this  Advanced  Lab  only,  this  machine  has  a  NetBackup  Media  Server  configured.  Note  that  we  do  not  recommend  installing  a  media  server  on  VCenter  in  production  environments.  For  this  lab  this  was  done  to  simplify  the  lab  deployment  and  to  save  disc  space.    Typically,  the  media  server  and  vCenter  server  are  separate  servers  as  vCenter  servers  tend  to  be  heavily  utilized.  

     

    ESX1  -‐  This  is  the  ESXi  Servers.    You  typically  do  not  need  to  log  into  this  system.  The  server  hosts  two  virtual  machines.    When  the  ESXi  system  is  booted  the  screen  will  look  like  the  screen  shot  below.    This  is  normal.  

  •       4       4  

    NetBackup  for  VMware  7  Hands  on  Lab  System  Diagram  This  diagram  illustrates  how  this  lab  is  connected  from  a  physical  point  of  view.  

     

     

     

     

     

     

    All  steps  performed  in  this  Advanced  Lab  will  be  performed  on  the  system  name  “netbackup1”.  

    Help  Icons  Throughout  this  lab  document  you  will  see  special  “help”  icons  that  assist  you  with  the  lab  or  provide  additional  information.    These  icons  are  described  as  follows:  

     

     

     

     

     

     

     

     

    Now  let’s  start  the  lab!  

    This  light  bulb  indicates  that  more  product  information  is  provided.    Information  in  this  box  does  not  need  to  be  read  to  complete  the  lab  but  provides  additional  product  information.  

    You  will  see  this  icon  when  special  lab  instructions  are  provided.    Be  sure  to  read    this  type  of  instruction  box  whenever  you  see  it.  

  •       5       5  

    Lab  Exercise  1:  Prepare  the  NetBackup  for  VMware  lab  environment  for  the  Advanced  Lab   5  Minutes  

    In  this  Advanced  Lab  we  will  start  beyond  the  point  of  the  setup  and  configuration  tasks  for    NetBackup  7.5  for  VMware.  In  order  to  do  so  a  Lab  Preparation  Tool  is  provided  within  the  VM  that  hosts  the  NetBackup  Master  Server  (netbackup1).    Through  the  tool  the  setup  and  configuration  tasks  are  automated  and  you  will  start  with  a  fresh  system.  This  has  the  additional  advantage  that  the  lab  VMs  can  be  used  for  multiple  labs  without  having  to  provide  a  number  of  Virtual  Machine  Snapshots.  Keep  in  mind,  each  Snapshot  is  consuming  additional  valuable  disk  space.    

     

     

     

     

     

         We  will  now  prepare  the  NetBackup  environment  for  our  needs  of  the  Advanced  Lab.    

    • If  you  are  not  already  logged  in,  log  into  the  virtual  machine  netbackup1  by  clicking  on  the  “NETBACKUP1”  tab  in  VMware  Workstation  and  clicking  inside  the  NETBACKUP1  VMware  Workstation  pane.      

     NOTE:    You  can  start  the  login  process  by  simultaneously  selecting  “Ctrl+Alt+Ins”.    Login  using  the  following  credentials  (see  below):  

     Login  =  administrator  Password  =  symc4now  

     

     

     

     

     

     

    • Click  on  the  Windows  Start  menu  (1),    select  the  Windows  Explorer  (2).  

     

       1

     2

    Serveral  of  the  NetBackup  internal  database  tasks  related  to  Dedupe  operate  on  the  assumption  that  the  backup  server  is  machine  with  24/7  availablity.  Hence  Virtual  Machines  that  sometimes  can  be  offline  for  a  month  or  longer  can  get  into  trouble  when  fully  configured  and  left  offline.  

  •       6       6  

    • From  the  Windows  Explorer  select  the  Volume  “PROG  E:\”.  Launch  the  “Install-‐GUI.exe”  program  and  close  the  Windows  Explorer.    

     

     

     

     

     

     

     

    • In  the  NetBackup  7.5  VMware  LAB  Preparation  Tool  execute  the  setup  steps  top  to  bottom.  Each  of  the  entries  shows  the  additional  explanation  what  this  step  does.  Click  on  the  “MSDP  Setup”  entry  (see  below).  

  •       7       7  

    • During  the  MSDP  Setup  the  step  for  configuring  the  Storage  Server  will  take  some  time.  Don`t  worry,  the  screen  will  automatically  return  to  the  previous  screen  once  all  necessary  steps  have  been  successfully  completed.    

    • Click  on  “VMware  Access  Host  Setup”  next  (see  below).  Setting  up  the  VMware  Access  Host  will  complete  in  seconds.      

       

     

  •       8       8  

    • Click  on  “vCenter  Credentials  Setup”  next  (see  below).  This  step  will  also  complete  in  seconds.  

       

           

    • Finally  click  the  “Create  VMware  Policy”  button.                                    

    • Close  (1)  the  NetBackup  7.5  VMware  LAB  Preparation  Tool.                  

     

     

    We’ve  now  completed  preparing  the  Advanced  Lab  environment.    This  completes  Lab  Exercise  1.  

     1

  •       9       9  

    Lab  Exercise  2:  Virtual  Machine  Intelligent  Policy  (VIP)  query  knowledge   10  Minutes  

    Virtual  Machine  Intelligent  Policy  (VIP)  is  one  of  the  centerparts  of  NetBackup  for  VMware.  Through  VIP  the  vSphere  Infrastructure  defined  fields  are  dynamically  used  in  queries.  This  Advanced  Lab  will  provide  you  additional  information  where  to  find  the  descriptions  and  meanings  for  the  usable  parameters  in  “Field”  and  “Operator”  as  well  as  a  practical  approach  for  timesaving  to  get  to  potential  values.  

    NetBackup  for  VMware  can  work  in  environments  that  have  only  ESX/ESXi  systems  or  also  utilize  a  vCenter  server.    This  lab  is  already  connect  to  communicate  directly  with  the  vCenter  server.  NetBackup  can  contact  each  of  these  systems  and  automatically  discover  every  virtual  machine  that  exists  in  the  environment  through  Virtual  Machine  Intelligent  Policies  (VIP)  queries.    

    In  Lab  exercise  3  we  will  concentrate  on  the  usage  of  “custom  defined  fields”  in  the  VIP  query.  It`s  important  to  understand  that  a  “custom  defined  field”  is  an  attribute  that  is  defined  on  the  vCenter  Server  and  only  lives  inside  the  vCenter  Database.    

    Regardless  of  whether  a  VMware  vCenter  server,    ESX  or  ESXi  server  is  used,  the  methodical  approach    for  each  of  these  environments  is    very  similar.  

     

    We  will  now  have  a  closer  look  at  VIP  and  the  query  fields  in  NetBackup:  

    • Click  on  the  Windows  “Start”  menu  (1),    select  the  NetBackup  Administration  Console  (2).  

     

    NetBackup  7  fully  integrates  with  one  or  any  number  of  VMware  vCenter  Servers.    This  greatly  enhances  the  scalability  of  NetBackup  when  used  with  either  VI3  or  vSphere  4  and  5.  

     1

     2

  •       10       10  

    • Start  by  verifying  the  highlighted  sections  which    the  NetBackup  7.5  VMware  LAB  Preparation  Tool      configured  for  you  (see  screenshot).  Each  item  (1-‐4)  will  now  list  values.    (1) Storage  Servers  (2) Disk  Pools  (3) Storage  Units  (4) Virtual  Machine  Servers  (5) Policies,  VMWARE  

    • Open  the  “VMWARE”  Policy  (5)  by  double  clicking  it,  then  select  the  “Clients”  Tab.  The  currently  defined  policy  will  backup  any  Virtual  Machine  which  has  a  Displayname  containing  the  digit  1.      

         

     

     

     

     

     

     

     

     

     

     1

     2

     3

     4

     5

    If  you  have  any  questions  don`t  hesitate  to  call  the  Lab  Admin  for  assistance.  

  •       11       11  

    • Click  on  the  Windows  “Start”  menu  (1),  select  the  “VMware  vSphere  Client”  (2).  

     

     

     

     

     

     

     

     

     

     

     

     

    • Log  on  to  the  vCenter  server  using  the  following  login  information:  

    vCenter  hostname:       vcenter1  

     

    User  name:         administrator  

     

    Password:           symc4now  

     

     

     

    NOTE:    Be  careful  typing  and  avoid  errors.  

     

     

     

     1

     2

  •       12       12  

    • Once  the  vSphere  client  is  running  we  can  determine  which  virtual  machines  have  the  character  “1”  in  the  display  name.    At  this  point  you  should  see  something  similar  to  the  screen  shot  below.    You  may  need  to  click  on  the  “+”  sign  next  to  the  ESX  server  to  expand  the  list.  

     

     

     

     

     

     

     

    • Click  on  the  Virtual  Machine  “vmwin1”  and  note  the  “NB_LAST_BACKUP”  field  in  the  “Summary  Tab”  under  “Annotations”.  This  is  a  customer  defined  field  which  NetBackup  automatically  creates  and  populates.  Through  this  a  vCenter  Admin  can  check  for  the  backup  status  of  this  VM  without  having  to  contact  the  NetBackup  Backup  Admin.  We  will  define  additional  custom  fields  in  Lab  3  that  allow  the  vCenter  Admin  to  influence  whether  a  VM  should  be  included  or  excluded  for  the  next  backup.  

     

     

     

     

     

     

     

     

     

     

     

     

  •       13       13  

    • Now  go  back  to  the  NetBackup  Policy.  Select  the  “NetBackup  Console”  from  the  Window  taskbar,  the  “VMWARE”  policy  should  still  be  open.  If  not  reopen  it  through  a  doubleclick  and  go  the  “Clients”  tab.  Let`s  say  you  want  to  construct  a  new  query  that  is  more  meaningful  to  how  you  use  vSpere  in  your  company.  You  plan  to  sit  down  with  your  VMware  Admin  to  discuss  what  is  defined  today  and  what  could  be  used  for  this  query.  One  approach  to  prepare  your  meeting  is  the  “manual  explore”  described  next.  Click  on  the  drop  down  box  next  to  “Field”  (1)  and  select  “ESXserver”.  

     

     

     

     

     

     

     

    • Select  e.g.  the  operator  “Contains”  and  click  on  the  small  folder  icon  next  to  the  “Value(s)”  field  (1).  The  available  options  will  be  browsed  and  displayed.    

    Some  of  the  fields  like  the  ESXserver  are  self  explanatory  others  like  the  difference  between  HostFolder,  DatastoreFolder  and  VMFolder  might  not  be  that  obvious  especially  if  the  browse  does  not  return  data.  This  is  usually  the  case  if  the  value  is  not  used  in  the  environment  and  therefore  not  set.    

    Click  on  “Cancel”  (2)  and  then  the  “Help”  Button  (3).  

     

     

     

     

     

     

     

     

     1

     1

     2

     3

  •       14       14  

    • Scroll  down  and  click  on  the  Hyperlink  for  the  additional  information  on  “VMware  policy  type”  (1).  

     

     

     

     

     

     

     

     

     

    • Scroll  to  the  descriptions  for  “Table:  Query  Builder”  (1)  and  click  on  the  Hyperlink  for  “Query  Builder  field  reference”  (2).  

     

     

     

     

     

     

     

     

     

     

     

     

     

     1

     1

     2

  •       15       15  

    • Scroll  to  the  “Table:  Keywords  in  the  Field  drop-‐down”  (1).  This  table  describes  the  selectable  fields,  the  data  type  of  a  given  selectable  value  and  the  additional  description  for  it.    

     

     

     

     

     

     

     

     

     

     

    • Scroll  down  a  little  bit  further  for  the  “Table:  Operators  in  the  operator  drop-‐down”  (1).  The  table  contains  the  additional  description  about  the  usage  of  the  operator  with  some  example  results.  Leave  the  help  menu  open.    

     

     

     

     

     

     

     

     

     

     

     

     1

     1

  •       16       16  

    • Click  on  the  Windows  “Start”  menu  (1),  select  the  “Command  Prompt”  (2).  

     

     

     

     

     

     

     

     

     

    • Change  to  the  directory  “E:\Program  Files\Veritas\NetBackup\bin”  and  enter  the  command  “ncfuriinfo  vmware  |more”.  

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     1

     2

  •       17       17  

    • The  command  ncfuriinfo  vmware  queries  the  infrastructure  and  provides  additional  useful  information  in  one  place.  Check  e.g.  for  “Displayname”  or  “ESXserver”  (1)  and  note  the  information  about  the  available  resources  in  your  infrastructure  in  the  “Can  be:”  (2)  listing.  

    Rather  than  the  manual  approach  in  the  GUI  clicking  through  each  and  every  field  trying  to  find  out  what  is  available  for  you  for  building  meaningful  queries  this  now  lists  it  all  in  one  place.  You  can  easily  pipe  this  into  a  text  file  and  print  it  for  the  meeting  with  the  VMware  Admin  or  e-‐mail  it  to  him  upfront  to  discsuss  which  fields  make  most  sense  for  your  environment  to  base  a  backup  stragety  on.  You  now  can  jointly  discuss  the  general  rules  when  VMs  are  include  or  exclude.  Lab  3  will  show  you  how  a  “Custom  Attribute”  can  work  as  an  additional  override  switch  without  having  to  change  anything  in  the  backup  policies.  

    Arranging  the  Help  Window  next  to  the  Command  Prompt  let`s  you  get  a  faster  overview  if  a  field  is  suitable  for  your  intended  query  operation.    

     

     

     

     

     

     

     

     

     

     

     

     

     

    Please  close  the  Windows  Explorer,  the  Help  Window  and  the  “VMWARE”  policy.  

    This  completes  Lab  Exercise  2.  

     1  

     2  

  •       18       18  

    Lab  Exercise  3:  

    In  the  previous  section  we  looked  at  ways  how  to  construct  a  query  that  includes  or  excludes  Virtual  Machines  based  on  available  values.    Now  let`s  look  at  “Custom  Attributes”  as  a  way  to  extend  your  and  the  VMadmins  flexibility  in  the  decision  process  whether  a  backup  of  a  Virtual  Machine  should  happen.    Often  times  you  need  a  way  to  “ad  hock”  override  the  defaults  without  introducing  a  whole  lot  of  change.  Custom  Attributes  are  a  great  way  that  give  you  this  additional  flexibility.  

     

     

    • Switch  to  the  vSphere  Client.  The  vSphere  Client  should  still  be  open  in  your  Taskbar.  If  not  log  back  into  vCenter  like  described  in  Lab  2.  

    From  the  navigation  pane,  select  “Administration”  and  click  on  “Custom  Attributes…”.  

     

       

     

     

     

     

     

     

     

     

     

     

     

     

     

    Interaction  between  vSphere  and  NetBackup  through  custom  fields   10  Minutes  

  •       19       19  

    • Click  on  “Add”.  

     

     

     

     

     

     

     

     

     

     

    • Define  a  new  value  with  the  name  “NB_BackupAttribute”  and  select  the  Type  “Virtual  Machine”.    Click  “OK”.  

     

     

     

     

     

     

     

     

     

     

     

     

     

    How  the  Attribute  is  named  does  not  matter.  However  it  is  good  practice  to  use  a  name  schema  like  NB_  to  clearly  identify  the  attribute  so  that  the  VMware  Admin  and  the  NetBackup  Backup  Admin  can  associate  the  Attribute  with  NetBackup  at  a  later  time.  

    The  Type  matters.  Only  Attributes  that  are  defined  as  Type  “Virtual  Machine”  can  be  used  by  NetBackup.  Make  sure  you  set  the  Type  variable  correct.  

  •       20       20  

    • To  confirm  your  newly  created  “Custom  Attribute”  click  “OK”.  

     

     

     

     

     

     

     

    • Select  the  Virtual  Machine  “vmwin1”  (1).  On  the  “Summary”  tab  (2)  you  will  now  see  the  newly  created  custom  attribute  “NB_BackupAttribute”  (3)  showing  up  under  “Annotations”.  Click  “Edit”  (4).  

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     1  

     2  

     3    4  

  •       21       21  

    • For  the  purpose  of  this  lab  we  define  the  keywords  that  we  want  to  use  to  be  “include”  or  “exclude”.  Click  into  the  “Value”  field  and  type  “include”.  Click  “OK”  once  you  set  the  value.  

     

     

     

     

     

     

     

     

     

     

    • The  screen  will  now  look  like  this.  

     

     

     

     

     

     

     

     

     

     

     

     

  •       22       22  

    • Repeat  the  steps  for  “vmwin2”  but  this  time  define  the  value  to  be  “exclude”.  

     

     

     

     

     

     

     

     

     

     

     

     

     

    • Change  back  into  the  NetBackup  Admin  GUI.  This  should  be  still  open  and  available  to  you  in  the  Windows  Task  Bar.  Open  the  NetBackup  “VMWARE”  policy.  On  the  “Clients”  tab  scroll  down  (1)  in  the  drop  down  menu  for  the  available  entries  in  the  “Field”  

     

     

     

     

     

     

     

     

     

     1  

    The  “Custom  Attribute”  that  you  just  defined  might  not  show  up  immediately.  Don`t  worry,  the  next  step  will  show  you  how  you  resolve  this  situation  immedediately  should  this  happen  to  you.  

  •       23       23  

    • Part  of  this  Advaned  Lab  is  to  provide  you  with  the  necessary  knowledge  how  you  fix  a  situation  like  this  right  away  without  having  to  wait  on  an  automatic  refresh  cycle.    

    Open  the  Windows  Explorer  browse  to  the  directory  “E:\Program  Files\Veritas\NetBackup\online_util\fi_cntl”.    Find  the  highlighted  “vcenter1_ca.xml”  (1)  and  delete  it.    

    The  vcenter1_ca.xml  file  caches  the  information  about  available  fields  from  the  drop  down  menu  in  the  step  above.  Once  deleted  the  file  get`s  automatically  newly  created  when  the  tab  “Clients”  is  revisited.  

     

     

     

     

     

     

     

     

     

     

    • Toggle  between  the  “Attributes”  (1)  and  the  “Clients”  (2)  tab.  When  browsing  again  for  the  available  fields  you  will  now  find  the  custom  defined  field  “NB_BackupAttribute”  (3).  

     

     

     

     

     

     

     

     

     1  

     1    2  

     3  

  •       24       24  

    • Remove  the  old  query  first  by  selecting  it  (1)  and  clicking  the  “Remove”  (2)  button.  This  is  for  the  purpose  of  this  Lab  only  and  it  is  strongly  adviced  to  use  the  custom  attributes  only  in  conjuction  with  other  fields.  

     

     

     

     

     

     

     

     

     

     

    • Create  a  new  query  based  on  the  “NB_BackupAttribute”  Field  (1),  select  “Contains”  (2)  as  the  Operator  and  click  on  the  Folder  Icon  (3)  next  to  “Value(s)”  in  order  to  browse  for  available  values.  Select  “include”  (4)  and  click  “OK”  (5).  

     

     

     

     

     

     

     

     

     

     

     

     1  

     2  

     1  

     2    3  

     4    5  

  •       25       25  

    • Don`t  forget  to  add  the  query  by  clicking  the  “+”  sign  (1)  !    

     

     

     

     

     

     

     

    • Optional:  Test  the  query  (1).  The  results  will  show  that  only  “vmwin1”  (2)  is  included.  Close  the  query  results  window  (3).  

     

     

     

     

     

     

     

     

    • Change  to  the  “VMware”  (1)  tab  and  click  “Avanced”  (2).    

     

     

     

     

     

     

     

     1  

     2  

     3  

     1  

     1  

     2  

    Pro  Tip:  

    Queries  can  also  be  tested  from  the  command  line  through  the  use  of  the  “nbdiscover”  command.  This  allows  you  to  pipe  the  results  into  a  text  file  for  documentation  purposes.  

  •       26       26  

    • Note  the  new  Parameter  for  “Post  events  to  vCenter”.  By  default  the  parameter  is  set  to  post  “All  Events”.  Click  “Cancel”.  In  Lab  4  we  will  a  closer  look  at  the  posted  events  but  first  we  have  to  run  a  backup.  

     

     

     

     

     

     

     

     

    • Click  “OK”  to  finalize  the  policy  configuration.    

     

     

     

     

     

     

     

     

     

     

     

     

     

     

  •       27       27  

    • Run  a  manual  backup.  Right  click  the  “VMWARE”  policy  and  click  on  “Manual  Backup”.  

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    • Because  the  Client  VMs  are  included  dynamically  into  the  backup  the  “Clients”  field  on  the  right  of  the  Windows  lists  the  Backup  Hosts  instead.  A  new  feature  in  NetBackup  7.5  is  Media  Server  Load  balancing  for  VMware  which  we  will  have  a  closer  look  at  in  Lab  5.  Because  of  this  new  functionality  the  entry  below  is  “MEDIA_SERVER”  vs.  the  real  hostname  of  the  Backup  Host.  Click  “OK”.    

     

     

     

     

     

     

  •       28       28  

    • Monitor  the  backup  progress  in  the  “Activity  Monitor”  (1).  Through  the  query  and  the  set  custom  attribute  Client  “vmwin1”  (2)  was  included.  The  backup  was  performed  through  the  Master/Media  Server  “netbackup1”  (3)  which  is  also  a  Backup  Host  in  this  environment.  In  Lab  5  we  will  configure  the  backup  of  several  VMs  to  get  load  balanced  across    multiple  backup  hosts.    

     

     

     

     

     

     

     

     

    • In  the  vCenter  Client  change  the  custom  fields  so  that  “vmwin1”  is  “excluded”  and  “vmwin2”  in  “included”.  

     

     

     

     

     

     

     

     

     

     

     

     

     1  

     2    3  

  •       29       29  

    • Run  another  manual  backup  of  policy  VMWARE.  

    The  first  thing  you  will  notice  is  that  withough  you  having  to  change  anything  in  NetBackup  now  “vmwin2”  (1)  is  backed  up  and  no  longer  “vmwin1”.    

    The  Dedupe  Ratio  (2)  also  increased  although  this  is  a  first  backup  of  “vmwin2”.  This  is  because  both  VMs  run  Windows  2003  as  Operating  System  inside  and  “vmwin2”  can  now  already  be  deduplicated  against  “vmwin1”.  Subsequent  jobs  of  this  Virtual  Machines  will  show  even  higher  deduplication  rates.  

    The  Backup  Host  that  was  used  was  “netbackup1”  (3).  NetBackup1  hosts  the  MSDP  Dedupe  Storage.  We  now  seeded  the  storage  with  the  VMs  and  will  distribute  the  workload  for  fingerprint  calculation  to  a  second  system  through  Media  Server  Load  Balancing  later  in  Lab  Exercise  5.  Spreading  the  load  will  have  an  overall  positive  impact  on  the  job  execution  time  as  less  jobs  get  queued  because  jobs  get  dynamically  allocated  to  the  next  available  Media  Server.  

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     1    2    3  

  •       30       30  

    • Finally,  the  backup  status  is  also  updated  in  vCenter.  This  update  happens  through  the  custom  attribute  “NB_LAST_BACKUP”.  Select  e.g.  “vmwin2”  (1),  go  the  Summary  tab  and  look  for  the  updated  value  (2)  in  the  Annotations  pane.    

    In  the  next  Lab  we  will  have  a  closer  look  on  the  detailed  status  of  the  backup  through  “Tasks  &  Events”.  Click  the  “Task  &  Events”  pane  (3),  then  read  on.  

                                                   

     

     

     

     

     

     

    This  completes  Lab  Exercise  3.  

     1  

     2  

     3  

    Watch  out  !  “Custom  Attribute”  do  not  get  restored  when  you  do  a  full  VM  restore.  It  therefore  is  strongly  adviced  to  not  solely  rely  on  a  defined  custom  attribute  for  your  general  backups.  You  need  to  see  it  as  an  additional  switch  which  allows  better  cooperation  between  the  Backup  Admin  and  the  VM  Admin  tasks.  The  VM  Admin  is  empowered  by  the  Backup  Admin  with  the  additional  capability  to  override  the  defaults  on  a  per  Virtual  Machine  basis  from  within  the  vSphere  Client  and  without  the  need  for  a  change  within  the  NetBackup  environment.    

  •       31       31  

    Lab  Exercise  4:  

    A  new  feature  in  NetBackup  7.5  is  the  ability  to  post  events  about  the  backup  status  back  into  vCenter.  Through  this  interaction  additional  information  about  the  backups  (like  the  backup  job  ID)  become  available  in  vCenter  on  a  per  Virtual  Machine  basis.  This  functionality  is  the  foundation  for  the  vSphere  Plugin  which  will  become  available  later  this  year.    The  vSphere  Plugin  will  provide  additional  roll  up  reports  across  your  VMs  in  the  infrastructure.  

    The  ability  to  see  the  events  posted  in  vCenter  is  a  great  help  in  any  situation  where  you  need  to  isolate  an  occurring  error.    

    • In  Lab  3  on  page  25  and  26  we  had  a  look  at  the  “Advanced”  section  of  the  “VMWARE”  policy.  

    The  interaction  between  the  vCenter  Server  and  NetBackup  happens  through  the  Configuration  Parameter  “Post  events  to  vCenter”.  Possible  values  are  “All  Events”,  “Only  Error  Events”  and  “None”.  

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    Interaction  between  NetBackup  and  vSphere  through  Event  notification   5  Minutes  

  •       32       32  

    • Since  we  already  have  run  successful  backups  of  the  available  Virtual  Machines  in  the  environment  we  can  directly  go  to  the  vSphere  Client    

    The  previous  lab  ended  with  clicking  on  “Tasks  &  Events”  pane  for  the  Virtual  Machine  “vmwin2”.  A  click  on  “Events”  (1)  will  display  the  detailed  information  about  the  backup  jobs.  Information  like  the  Job  ID,  the  type  of  the  backup  (e.g.  Full)  as  well  as  the  duration  of  the  backup  is  visible  (2).  

    The  last  step  of  a  backup  is  the  update  task  for  the  custom  field  “NB_LAST_BACKUP”  (3).  

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    This  completes  Lab  Exercise  4.  

     

     

     

     

     

  •       33       33  

    Lab  Exercise  5:  Configure  a  NetBackup  for  VMware  Media  Server  Load  Balancing   10  Minutes  

    At  this  point  of  the  Lab  we  want  to  expand  the  setup  and  configure  a  load  balancing  across  multiple  backup  hosts.  In  older  versions  of  NetBackup  the  backup  policy  had  a  dedicated  Backup  Host  listed.  If  this  Backup  Host  happens  to  become  unavailable  for  some  reason,  all  backup  jobs  for  this  policy  would  not  run  unless  manual  intervention  (changing  the  Backup  Host  in  the  policy)  resolves  this  situation.  NetBackup  7.5  resolves  this  situation  by  introducing  the  “Backup  Media  Server”  substitute  as  a  placeholder  for  any  available  Backup  Host.    

    In  Lab  3  we  seeded  the  storage  with  the  VMs.  This  allows  us  to  distribute  the  workload  for  the  fingerprint  calculation  to  a  second  system  through  Media  Server  Load  Balancing  without  having  to  move  the  data  to  the  storage  again.  The  newly  added  Media  Server  calculates  the  fingerprints  of  the  incoming  datastream  and  recognizes  which  data  is  already  stored.    Spreading  the  load  will  have  an  overall  positive  impact  on  the  job  execution  time  as  less  jobs  get  queued.  Jobs  get  dynamically  allocated  to  the  next  available  Media  Server.  

     

     

    In  this  Lab  we  use  MSDP  (Media  Server  Duplication  Pool)  as  the  Storage  Target.  In  NetBackup  7.5  the  support  for  media  server  deduplication  pools  increased  in  capacity  from  32  TB  (NetBackup  7.1)  to  now  64  TB.    

    Media  Server  Load  balancing  for  VMware  works  with  any  type  of  configured  storage  in  the  backend  (Tape,  Disk,  Dedupe  Disk).  The  graphic  on  the  next  page  depicts  how  additional  Media  Servers  support  the  deduplication  process  through  a  distributed  Fingerprint  calculation  while  the  storage  is  physically  only  connected  to  one  Media  Server.    

     In  our  Lab  “netbackup1”  is  the  MSDP  Server  and    “vcenter1”  becomes  the  additional    Fingerprint  Media  Server.    

     

     

     

     

    Let’s  configure  the  Media  Server  Load    Balancing.  

    Currently  the  Backup  Hosts  that  can  participate  in  the  Media  Server  Load  Balancing  must  be  Windows  Servers.  An  expansion  to  other  platforms  is  already  planned  for  future  versions  of  NetBackup.  

  •       34       34  

    • Select  the  NetBackup  Administration  Console  from  the  Windows  Taskbar.  

    Open  the  “VMWARE”  (1)  Policy,  select  the  “Clients”  Tab  (2)  and  open  the  drop  down  box  (3)  for  “NetBackup  host  to  perform  automatic  virtual  machine  selection”.  

    Both  Backup  Hosts  are  listed  here  and  the  selection  of  Backup  Media  Server  will  automatically  load  balance  the  backups  across  those  Backup  Hosts.  There  is  nothing  more  that  you  need  to  configure  inside  the  Policy  to  make  Media  Server  Load  Balancing  work.  Close  the  Policy  (4).    

     

     

     

     

     

     

     

    • Yet,  we  still  have  to  allow  the  additional  Media  Server  to  participate  and  join  the  Media  Server  Deduplication  Storage  Pool.  Select  “Storage  Servers”  (1)  and  double  click  “netbackup1”  (2).  All  you  need  to  do  is  set  the  checkmark  for  “vcenter1”  (3)  and  click  “OK”  (4).  

     

     

     

     

     

     

     

     

     

     

     2  

     2  

     4  

     1  

     3  

     1  

     3  

     4  

  •       35       35  

    • Next,  select  “Storage  Units”  (1)  and  double  click  the  “MSDP_STU”  (2)  entry.  Set  the  checkbox  for  “vcenter1”  (3)  and  click  “OK”  (4).  

     

     

     

     

     

     

     

     

     

     

     

     

    • At  this  point  both  Virtual  Machines  should  have  the  Attribute  “include”  set  in  the  custom  attribute    “NB_BackupAttribute”.  You  can  verify  this  inside  the    Virtual  Infrastructure  Client.  Run  another  manual  backup  for  policy  “VMWARE”.  

     

     

     

     

     

     

     

     

     

     1  

     2  

     4    3  

  •       36       36  

    • Click  on  the  “Activity  Monitor”  (1)  to  follow  the  progress  of  the  backup.  You  will  now  see  both  Virtual  Machines  being  backed  up  (2)  at  the  same  time  where  one  VM  is  processed  through  “netbackup1”  and  the  other  through  “vcenter1”  (3).    

     

     

     

     

     

     

     

     

     

     

    This  completes  Lab  Exercise  5.    

     

     

     

     

     

     

     

     

     

     

     

     

     1  

     2    3  

  •       37       37  

    Lab  Exercise  6:  Excluding  the  boot  disk  from  a  Virtual  Machine  Backup   15  Minutes  

    In  this  part  of  the  Lab  we  concentrate  on  a  new  feature  in  NetBackup  7.5  which  is  called  “Virtual  Disk  Selection”.  This  new  feature  allows  you  to  exclude  the  boot  disk  of  a  Virtual  Machine  from  the  backup  or  exclude  the  data  disks.    

     

     

     

     

     

    • Start  by  excluding  “vmwin1”  from  the  backup.    

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    Virtual  Disk  Selection  works  on  a  VMDK  basis.  If  the  boot  volume  and  a  data  volume  are  placed  on  the  same  VMDK  there  is  no  way  to  seperate  them.  

  •       38       38  

    • Open  the  “VMWARE”  (1)  policy,  select  the  “VMware”  (2)  tab.  Click  “Advanced”  (3).  The  parameters  for  “Virtual  disk  selection”  (4)  allow  you  to  control  what  to  exclude  from  the  backup.  For  this  Lab  select  “Exclude  boot  disk”  (5)  and  click  “OK”  twice  (6).  

     

     

     

     

     

     

     

     

     

     

     

     

    • Run  a  manual  backup  of  policy  “VMWARE”.  

     

     

     

     

     

     

     

     

     

     

     1  

     2  

     3  

     4    5  

     6  

  •       39       39  

    • In  the  Virtual  Infrastructure  Client  select  “vmwin2”  (1).  On  the  “Summary”  tab  click  “Edit  Settings”  (2).  Note  that  the  system  has  two  harddisks  configured.  Click  “Cancel”  (3).  

     

     

     

     

     

     

     

     

     

     

     

     

     

    • In  the  NetBackup  Activity  Monitor  the  job  has  completed  and  only  backed  up  a  couple  of  Megabytes.  Open  the  Backup  Archive  Restore  (BAR)  GUI  (1).  

     

     

     

     

     

     

     

     

     

     1  

     2    3  

     1  

  •       40       40  

    • Specify  the  NetBackup  Machine  and  Policy  Type.  Select  “vmwin2”  as  Client  and  “VMware”  as  Policy  Type.    

     

     

     

     

     

     

     

     

       

    • Click  the  drop  down  box  next  to  “Select  for  Restore”  and  choose  “Restore  from  Normal  Backup”.  

     

     

     

     

     

     

     

    • Compare  the  last  two  full  backups.  Close  the  view  afterwards.  

     

     

     

     

     

  •       41       41  

     

     

     

     

     

     

     

    • Click  the  “Select  for  Restore”  drop  down  box  and  choose  “Restore  from  Virtual  Machine  Backup”.  

     

     

     

     

     

     

     

    • Select  “vmwin2”  (1)  for  restore.  Note  that  you  can`t  select  individual  VMDK  disks  for  restore  (2).  Click  the  restore  button  (3).  

     

     

     

     

     

     

     

     

     1    2    3  

  •       42       42  

    • In  order  to  restore  just  the  data  disks  with  a  new  name  while  the  original  VM  is  still  up  and  running  you  need  to  select  “Alternate  location”.    NetBackup  recognizes  that  the  restore  does  not  contain  the  boot  volume.  Click  “Next”.  

     

     

     

     

     

     

     

     

     

     

     

     

    • No  changes  needed  here,  click  “Next”.  

     

     

     

     

     

     

     

     

     

     

  •       43       43  

    • Important:  Specify  an  alternate  name  for  the  restore.  Click  “Next”.    

     

     

     

     

     

     

     

     

     

     

     

     

     

    • Only  set  the  checkbox  for  restoring  the  original  BIOS  UUID  if  you  are  planning  to  replace  the  old  existing  disk  with  this  copy.  If  not  let  the  system  create  a  new  BIOS  UUID.  If  the  VM  had  a  DVD/CD  connected  during  the  backup  you  need  to  set  the  checkmark  for  removing  that  backup  information.  Click  “Next”.  

     

     

     

     

     

     

     

     

     

  •       44       44  

    • Click  “Next”.  

     

     

     

     

     

     

     

     

     

     

     

     

    • Remove  the  Network  connection  for  the  restore.  Click  “Next”.  

     

     

     

     

     

     

     

     

     

     

     

  •       45       45  

    • Run  the  “Pre-‐Recovery  Check”.  

     

     

     

     

     

     

     

     

     

     

     

     

    • Start  the  recovery.  

     

     

     

     

     

     

     

     

     

     

     

  •       46       46  

    • Select  “No”  for  the  option  to  view  the  progress  in  the  BAR  GUI.  

     

     

     

     

    • Go  to  the  Activity  Monitor.  Wait  till  the  restore  is  finished.  

     

     

     

     

     

     

     

    • Note  that  the  restored  VM  does  not  have  the  customer  attributes  populated.  

     

     

     

     

     

     

     

     

     

     

     

  •       47       47  

    • Disconnect  “Harddisk  2”  from  “vmwin2”  by  clicking  the  “Remove”  button  in  the  “Edit  Settings”  menu.  

     

     

     

     

     

     

     

     

     

    • Just  remove  if  from  the  Virtual  Machine.  Do  not  delete  the  Disk.  Click  “OK”.  

     

     

     

     

     

     

     

     

     

     

     

     

     

     

  •       48       48  

    • Click  the  “Add”  button.    

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    • Select  “Hard  Disk”.  Click  “Next”.  

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

  •       49       49  

    • Select  “Use  an  existing  virtual  disk”.  Click  “Next”.  

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    • Browse  for  the  virtual  disk  that  you  just  restored.  

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

  •       50       50  

    • Complete  the  remaining  steps  in  the  wizard.  

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

  •       51       51  

     

     

     

     

     

     

     

     

     

     

     

     

     

    • The  virtual  Disk  from  the  restore  is  now  connected  to  the  existing  VM.  Click  “OK”.  

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

  •       52       52  

    • Finally,  power  on  the  Virtual  Machine  and  review  that  the  restore  did  work.  

     

     

     

     

     

     

     

     

     

     

     

    This  completes  the  final  section  of  this  NetBackup  7  for  VMware  Hands  On  Lab.    Thank  you  for  joining  us  today!