Forum Discussion

noazara's avatar
noazara
Level 6
6 years ago

Vmware machine quiescing and non quiescing

Hi Champs,

I have around 1000 VM being backed up in the environment with NBU 8.1.

With some VM we have policy being set to "Virtual Machine quiescing equals Enabled" and in some policies it is set to "Disabled".

I need to know by means of any command or script like what all are the VMs which are being backed up by quiescing Enabled option and Quiescing Disabled option.

NBU 8.1
VMware backup Policy

  • Hi Noazara,

    Something I have knocked together to list your policies, identify which ones are using No Quiesce,

    and then a bpimagelist of n hours (24 in the script).

    It ties the two together and shows which clients were backed up with a NOQ policy.

    #!/bin/sh

    sudo bppllist -allpolicies > /tmp/bppllist_allpolices

    cat /tmp/bppllist_allpolices | awk '
    $1=="CLASS" { POLICY=$2 }
    $1$2=="SSMARGdisable_quiesce" { SETTING=$3
    if ( SETTING=="1" ) { SETTING="NOQUIESCE" ; printf("POLICY %s %s\n",POLICY,SETTING) }}' > /tmp/f1

    sudo bpimagelist -hoursago 24 > /tmp/bpimagelist_last_n_hours

    cat /tmp/bpimagelist_last_n_hours | awk '
    $1=="IMAGE" { client=$2 ; policy=$7 ; printf("IMAGE %s %s\n",policy,client)}' > /tmp/f2

    ( cat /tmp/f1 ; cat /tmp/f2 ) | awk '
    $1=="POLICY" { noqp[$2]=$3 }
    $1=="IMAGE" { POLICY=$2 ; CLIENT=$3 ; printf( "%s %s %s \n",POLICY,CLIENT,noqp[POLICY]) } ' | grep NOQUIESCE | awk '!seen[$0]++'

    Its a little rough, but hope this helps and gets you going.

     

     

  • Hello,

    Could you be more specific ?

    Quieiscing is set or not set in the advanced section of a policy (VMware tab > Advanced > Virtual machine quiesce)

    You can check this advanced parameter using command line bpplinfo -snapshot_method_args disable_quiesce=0 (0  for quiescing disable and 1 for disable)

    Let me know if you need something else !

     

    • noazara's avatar
      noazara
      Level 6

      THanks.

       

      I want the list of clients in the environment where backup is being completed with quiescing enabled option and which VM backup is completed with quiescing option disabled option.

      Need some command or script.

       

      • noazara's avatar
        noazara
        Level 6

        Hello ALL,

         

        Can any help be provided on this.

    • noazara's avatar
      noazara
      Level 6

      Hi Mam,

       

      I have tried but its not working.Though I am learning scripting.

       

      Please if you can help me on this .

    • noazara's avatar
      noazara
      Level 6

      Hi marianne,

      i have run the below command but not getting in exact format.

      I need in below format:

      Policy name :
      CLient Name :
      disable_quiesce=1

      (I have VIP in the client list):i have query in the client list not manually selected.


      [root@mabck1admincmd]# cat /tmp/bppllist.txt |egrep "^Policy Name: |^Active: |^Client/HW:|^Snapshot Method Arguments:" |grep -i "disable_quiesce=1"
      Snapshot Method Arguments: file_system_optimization=1,rTO=0,snapact=2,drive_selection=0,Virtual_machine_backup=2,enable_vCloud=0,multi_org=0,rHz=10,rLim=10,nameuse=1,disable_quiesce=1,ignore_irvm=1,exclude_swap=1,skipnodisk=0,tags_unset=0,post_events=1,trantype=san:nbd

      • X2's avatar
        X2
        Moderator

        Quiescing is set per VIP, so if you want to find out the "quiesced" clients backed up, you will need to find the VIPs which have quiescing enabled and then find the list of clients they back up.

        What I do in my environment is something similar, in that I find out clients backed up via "each" VIP. I get the list of clients from vCenter (along with other parameters e.g. hostname, IP address, clustername). Then using scripting tools like Marianne suggested, I sort out clients for each VMware policy (along with their OS/Hardware combination). Once the massaging is done, I add those clients in backup policies (no schedule) so that we can easily probe the VM (client is installed), test connectivity, etc.

        PS: the script written in BASH and is a WIP with a size of about 500 lines already!