vCenter PowerShell PowerCLI command to to change a VMDK disk from non-persistent to persistent without powering down the VM

While I am certain this already posted on the net in a few places, I wanted to capture it here, as it is a question I get asked often by customers. Especially seeing as the manual method requires shutting down a VM to make the change. Instructions Just replace the text <vcenter_dns_or_ipaddress> with the IP address or FQDN of the vCenter host. You will be prompted to login to vCenter, and will require enough privileges to modify the VM you need to edit. connect-viserver <vcenter_dns_or_ipaddress> Then replace the <vm_name> with the name of the virtual machine you wish to change one or many of its disks to Independent Persistent. It will provide multiple prompts based on how many disks the VM has, and ask you to confirm each one individually, or all if desired. Get-HardDisk -VM <vm_name> | Set-HardDisk -Persistence "IndependentPersistent" Then if required, run the command below to change the disk back to Persistent, and again select Y for each disk you want set back. Get-HardDisk -VM <vm_name> | Set-HardDisk -Persistence "Persistent" Click to share article:ShareLinkedInTwitter

Actifio Windows Connector Silent Install Tips

When you want to deploy the connector initially, you may want to install the filter driver or not. Below are the values you can use to achieve this: /NORESTART – This will avoid a restart, which is normally the case when installing the agent above versions 6.0.3, but is normally a good idea just in case. /SILENT – to install without prompting /VERYSILENT – this will suppress any pop-ups, and for remote installs, or packaged installs this is likely the option you want. If a restart is necessary and the ‘/NORESTART’ command isn’t used (see below) and Setup is silent, it will display a Reboot now? message box. If it’s very silent it will reboot without asking. /TYPE=full or compact – for full install or compact to not install the filter driver – you can also elect to not enter a type, and you will get the installation without the change tracking filter driver. /LOG=”logfile.log” – the name and location of where you would like the install log stored. Use full path if required i.e. C:\TEMP\Logfile.log /SUPPRESSMSGBOXES – Instructs Setup to suppress message boxes. Only has an effect when combined with ‘/SILENT’ or ‘/VERYSILENT’. So the actual command line would like the following if you wanted the filter driver installed: connector-win32.exe /SUPPRESSMSGBOXES /NORESTART /VERYSILENT /TYPE=full /LOG="Actifio_agent_install.log" or if you don’t want the filter driver running (such as inside a VMware Virtual Machine) run the following: connector-win32.exe /SUPPRESSMSGBOXES /NORESTART /VERYSILENT /LOG="Actifio_agent_install.log" And for Uninstall you can either goto Add/Remove Programs and choose to uninstall the Actifio Connector, or run the following commands: 1. Open a command prompt and go to C:\Program Files\Actifio\ 2. Run the command: unins000.exe /SILENT You should be good to go now. Click to share article:ShareLinkedInTwitter

Windows System State Backups with Actifio

Say Whaaaaa ? Yes you heard correctly. Due to numerous customer requests I researched this capability, while it’s not efficient entirely if you include it as part of a daily backup, but we can do it. Read on if you want more. I said it’s not efficient, as the process is essentially creating a new compressed file everyday (10GB+ is not uncommon). What this will do is cause a lot of new unique data to enter into the dedup pool. But here is the thing, we have a few ways to provide the capability without the storage consumption penalty. I will continue to research further to see if we can reduce the file size somehow with Microsoft, but here is what’s possible today. This procedure should work for Windows Server 2008+ and is fairly simple. 1. Local command line backup facilities must be enabled. If they are not these can be added via the GUI, or else run in an administrator command prompt the following command: C:\Windows\>servermanagercmd -install Backup-Tools 2. Run a pre script via VMware Tools, or the Actifio Connector script, with the command in it. wbadmin start -systemstate -backuptarget:D:\ -quiet In the above example the D:\ must exist as a target, but this could easily be changed for the Actifio Staging disk (or mount point) as the target. In future, I hope to further refine the testing to only include the last 1-3 days of data in the local system for recovery and 2, exclude the backup of all files in the C:\Windows\ folder and items beneath it. I would strongly suggest customers don’t do this on every server, and run it daily, but it might form as an additional policy to be run weekly on a domain controller (PDCe) as an example if required on a regular basis. Actifio also supports Bare Metal Recovery, which includes System State Backups as part of the licensing. So this article itself is not part of that solution, as it is built in. Now another approach to solving the idea, without storage penalty you could do the following and it applies only for Virtual Machines. 1. Ensure the machine that you want a system state backup for, has an SLA policy applied that includes the snapshot option. While this is not strictly mandatory, it will help with the speed of recovery for any system state image, as the machine can be mounted back instantly. 2. When you need a system state item, you can do an instant mount of the VM from the point in time you need to recover from. Mount the VM back to a hypervisor and as usual the VM will not be attached to the network. 3. Power on the VM and connect to the console session. Then login using local admin or cached credentials. 4. Run the command as above: wbadmin start -systemstate -backuptarget:D:\ -quiet This will create a system state backup from the VM at the time the snapshot backup was initiated. 5. Then Power down the Virtual Machine. 6. Attach the D:\ VM Disk (or disk where you stored the system state backup image) to any other running VM, normally best to attach to the same VM as where the backup was done, and attach the drive to the running VM. 7. You can then proceed with the System State restore process that you would normally follow, as documented by a Microsoft KB article or TechNet article. 8. Once completed you can Unmount and delete the volume from the running VM, and as a best practise it’s probably wise to initiate a manual backup of the VM/server where the recovery was performed. The benefit to the VM Instant mount approach, is that you still have access to the data, even though it’s not explicitly stored in the dedup pool as a new unique blocks every day. This will save storage in your long term retention pool, and only add an additional few steps in the recovery of system state restores. The instant mount feature Actifio provides greatly reduces the time to recover system state data, along with any files, databases, VM Disks, or entire VMs in seconds. Click to share article:ShareLinkedInTwitter