Friday, May 6, 2016

vSphere Dependent, Independent Disks & Persistent and Non-persisent Modes

In a nutshell, this all related to how the VMDK behaves when a virtual machinesnapshot is taken. VMDKs, by default, are said to be dependent. In other words, when the virtual machine is snapshot’ed, this disk is included in the snapshot. Independent disks, however, can have different behaviors when the VM is snapshot’ed. Let’s examine the difference next.

Independent Persistent Mode
When a VMDK is configured in Independent Persistent Mode, what you will see is that no delta file is associated with this disk during a snapshot operation. In other words, during a snapshot operation, this VMDK continues to behave as if there is no snapshot being taken of the virtual machine and all writes go directly to disk. So there is no delta file created when a snapshot of the VM is taken, but all changes to the disk are preserved when the snapshot is deleted.
Independent Non-persistent Mode
When a VMDK is configured as Independent Non-persistent Mode, a redo log is created to capture all subsequent writes to that disk. However, if the snapshot is deleted, or the virtual machine is powered off, the changes captured in that redo log are discarded for that Independent Non-persistent VMDK.
Why Independent Disks?
This begs the question of what do Independent disks do for you, be they persistent or non-persistent. The bottom line is that if a disk is Independent, they can be omitted from a backup operation by virtue of the fact that they do not support snapshot operations. You can think of Independent as meaning ‘Independent of snapshots’.
Sample Use Case
Let’s take a virtual machine which hosts a web service, but it is primarily a read-only web site with content that rarely changes. This VM has three disks. Disk 1 contains the Guest OS and web application (e.g. Apache). Disk 2 contains the web pages for the web site. Disk 3 contains all the logging activity.
In this case, disk 1 (OS & app) are dependent (default) settings and is backed up nightly. Disk 2 is independent non-persistent (not backed up, and any changes to these pages will be discarded). Disk 3 is independent persistent (not backed up, but any changes are persisted to the disk).
If updates are needed to the web site’s pages, disk 2 must be taken out of independent non-persistent mode temporarily to allow the changes to be made.
Now lets say that this site gets hacked, and the pages are doctored with something which is not very nice. A simple reboot of this host will discard the changes made to the web pages on disk 2, but will persist the logs on disk 3 so that a root cause analysis can be carried out.

Tuesday, May 3, 2016

Differences between PEM, DER, P7B/PKCS#7, PFX/PKCS#12 certificates

Differences between PEM, DER, P7B/PKCS#7, PFX/PKCS#12 certificates
eg:- A Windows Server uses .pfx files
An Apache Server uses .crt, .cer files
NOTE: Only way to tell the difference between PEM .cer and DER .cer is to open the file in a Text editor and look for the BEGIN/END statements.

PEM Format
It is the most common format that Certificate Authorities issue certificates in. It contains the ‘—–BEGIN CERTIFICATE—–” and “—–END CERTIFICATE—–” statements.
Several PEM certificates and even the Private key can be included in one file, one below the other. But most platforms(eg:- Apache) expects the certificates and Private key to be in separate files.
> They are Base64 encoded ACII files
> They have extensions such as .pem, .crt, .cer, .key
> Apache and similar servers uses PEM format certificates
DER Format
It is a Binary form of ASCII PEM format certificate. All types of Certificates & Private Keys can be encoded in DER format
> They are Binary format files
> They have extensions .cer & .der
> DER is typically used in Java platform
P7B/PKCS#7
They contain “—–BEGIN PKCS—–” & “—–END PKCS7—–” statements. It can contain only Certificates & Chain certificates but not the Private key.
> They are Base64 encoded ASCII files
> They have extensions .p7b, .p7c
> Several platforms supports it. eg:- Windows OS, Java Tomcat
PFX/PKCS#12
They are used for storing the Server certificate, any Intermediate certificates & Private key in one encryptable file.
> They are Binary format files
> They have extensions .pfx, .p12
> Typically used on Windows OS to import and export certificates and Private keys

Monday, May 2, 2016

vCenter 6 Database Upgrade Logs


■
For pre-upgrade checks, review the %TEMP%\..\vcsUpgrade\vcdb_req.out file.
The vcdb_req.err file tracks any errors that were identified during the pre-upgrade phase.
■
For export details, review the %TEMP%\..\vcsUpgrade\vcdb_export.out file.
The vcdb_export.err file contains errors that were identified during the export phase of the upgrade.
■
For import details, review the ProgramData\Vmware\CIS\logs\vmware\vpx\vcdb_import.out file.
The vcdb_import.err file contains errors that were identified during the import phase of the upgrade process.
■
For in-place upgrade log details, review theProgramData\Vmware\CIS\logs\vmware\vpx\vcdb_inplace.out file.
The vcdb_inplace.err file contains in-place upgrade errors.

vCenter Server 6 Upgrade

Example upgrade paths demonstrate some of common starting configurations before vCenter Server upgrade and their expected configuration outcomes after vCenter Server upgrade.
If you are currently using vCenter Server 5.0, you do not have any common services configured. You have a choice of upgrading tovCenter Server with an embedded Platform Services Controller or upgrading to vCenter Server with an external Platform Services Controller.

vCenter Server 5.0 Deployment Choices for Upgrade

vCenter Server 5.0 deployment with choice of embedded and external deployments for 6.0
If you have a simple installation with all vCenter Server 5.1 or 5.5 components on the same system, the vCenter Server 6.0 software upgrades your system to vCenter Server with an embedded Platform Services Controller instance. The software upgrades your vCenter Server common services such as vCenter Single Single-On in the Platform Services Controller instance. The rest of the vCenter Server components, such as vSphere Web Client Inventory Service, are upgraded to 6.0 as part of the vCenter Servergroup of services. The software upgrades vCenter Server and all its services in the correct order to the same version.

vCenter Server 5.1 or 5.5 with Embedded vCenter Single Sign-On Deployment Before and After Upgrade

Example of a vCenter Server 5.1 or 5.5 embedded deployment before and after upgrade.
If you have a custom vCenter Server 5.1 or 5.5 environment with an externally deployed vCenter Single Sign-On, the vCenter Server 6.0 software upgrades your deployment to vCenter Server with an external Platform Services Controller instance.

vCenter Server 5.1 or 5.5 with Externally Deployed vCenter Single Sign-On Before and After Upgrade

Example of a vCenter Server 5.1 or 5.5 external deployment before and after upgrade.
 If your configuration includes a vSphere Auto Deploy server, the upgrade process upgrades it when upgrading the associatedvCenter Server instance. You cannot use a vSphere Auto Deploy server that was included with an earlier version of the product in conjunction with vCenter Server 6.0. If your vSphere Auto Deploy server is running on a remote system, it is upgraded and migrated to the same system as vCenter Server during the upgrade process.

vCenter Server 5.1 or 5.5 with Remote vSphere Auto Deploy Server Before and After Upgrade

Example of a vCenter Server 5.1 or 5.5 with remotely deployed Auto Deploy server before and after upgrade.
For example, if your vCenter Server is part of vCenter Server Appliance, and you installed the vSphere Auto Deploy server on a Windows machine, the upgrade process migrates the vSphere Auto Deploy server to the same location as your vCenter Server Appliance. Any settings are migrated to the new location. However, you must reconfigure your ESXi hosts to point to the new vSphere Auto Deploy location. See Reconfigure Migrated vCenter Server Services After Upgrade
If your configuration includes a remotely deployed vSphere Web Client, it is upgraded along with the vCenter Server instance to which it is registered and migrated to the same location as the vCenter Server instance.

vCenter Server 5.1 or 5.5 with Remote vSphere Web Client and vCenter Signle Sign-On Before and After Upgrade

Example of a vCenter Server 5.1 or 5.5 deployment with remote vSphere Web Client and remote vCenter Single Sign-On before and after upgrade.
Only the vCenter Single Sign-On instance remains remotely deployed as part of the the Platform Services Controller instance after upgrade to vCenter Server 6.0. If all vCenter Server components are deployed remotely, all are migrated to the vCenter Serverlocation during the upgrade except vCenter Single Sign-On. While Inventory Service data is migrated to the vCenter Serverlocation, the legacy version is no longer used and must be uninstalled manually. See Migration of Distributed vCenter Server for Windows Services During Upgrade to vCenter Server 6.0

vCenter Server 5.1 or 5.5 with All Remote Components Before and After Upgrade

If you have multiple systems configured for high availability, vCenter Server enables you to incorporate your common services into an external Platform Services Controller configuration as part of your upgrade process.
If you have a multisite setup configured with replication, you can use vCenter Server to incorporate your common services into an external Platform Services Controller configuration as part of your upgrade process.