3 Replies Latest reply on Dec 18, 2013 2:44 AM by wila

    How do you stop ghetto whilst its running?

    WozzaJ Novice

      I have inadvertently run the command ./ghettoVCB.sh -f vms2backup to backup the named vm's in the vms2backup file. How can I stop this backup from running whilst it is running as I edited the ghettoVCB.sh file to point to the wrong location for the vm's to be backed up to?

       

      Thanks.

        • 1. Re: How do you stop ghetto whilst its running?
          wila Guru
          User ModeratorsvExpertCommunity Warriors

          You can try to edit the vms2backup file, but it doesn't look like it will help.

          Let it run, unless you are prepared to reboot your host, for example if that wrong location will cause active volumes to run out of space.

           

          The command used to clone the disks does not like to be stopped. If you do stop it, then I've seen it not return the file handles and keep the target files open until you reboot making it impossible to delete those files. IIRC the only thing you could do was move the files to another folder.

           

          --

          Wil

          | Author of Vimalin. The virtual machine Backup app for VMware Desktop Products
          | Vimalin : Automated backups for VMware Fusion and VMware Workstation Professional
          | More info at https://www.vimalin.com
          | Twitter @wilva
          | VMware Wiki at http://www.vi-toolkit.com
          • 2. Re: How do you stop ghetto whilst its running?
            WozzaJ Novice

            I thought there would be a way of looking up the PID and killing it off, but I couldn't find it. I could see the ID when the job started to run, but doing a ps did not show it. Problem I have is that it's backing up six vm's and is having an impact on the LAN, hence why I want to stop it.

             

            IIRC??

             

            Thanks.

            • 3. Re: How do you stop ghetto whilst its running?
              wila Guru
              Community WarriorsUser ModeratorsvExpert

              IIRC = "If I Remember Correctly", I thought it was a pretty common English abbreviation/acronym, but what do I know as English is not my mother tongue

               

              The script does log the PID of the script:

              folder "/tmp/ghettoVCB.work" look for file named PID


              You should also be able to find the PID using the ps command, something like:

              ps | grep -i "ghettovcb"

              But I remember that the ps command under vSphere is a little different as under normal linux/unix commands nowadays so it might need a tweak.


              The ghetto script does depend on a utility named vmkfstools to do the actual cloning of the disks.

              I'm not 100% sure if killing of the parent script does kill the vmkfstools child processes, but if it doesn't then it should be OK.

               

              --

              Wil

              | Author of Vimalin. The virtual machine Backup app for VMware Desktop Products
              | Vimalin : Automated backups for VMware Fusion and VMware Workstation Professional
              | More info at https://www.vimalin.com
              | Twitter @wilva
              | VMware Wiki at http://www.vi-toolkit.com