Tag Archives: expand

Expand RDM in virtual compatibility mode

As opposed to the physical RDM mode with the virtual one after expanding the LUN on the storage array side and rescanning HBA vm still can’t see the increased capacity. The official VMware tutorial says to shutdown vm and re-add RDM. This isn’t acceptable. The hint to make it happen with no downtime is to vMotion vm after rescanning HBA on the destination host. That’s it!

Manage Zip archives with PowerShell

I know there are lots of examples and function implementations out there (for instance, the one from jaykul), nonetheless I’d like to add my 2 cents. Even 5c, since my version is more powerful It allows you to set compression level, append/replace files to/in existing archives and extract only necessary files from archive.
For instance, to extract vmware.xml file from the archive’s root and all the files from the vib folder stored in root also (yep, we’re expanding metadata.zip), creating subfolder in the current directory (replacing if already exists), you need to run the following command:
Extract-ZipFile -ZipFilePath metadata.zip -FilesToExtract vmware.xml,vibs/ -CreateSubfolder -Force
The slash character indicates that you’d like to expand the folder, not the file.