Sunday, December 30, 2018

Launch PowerShell ISE with another Credential

In a situation, where you are login in your laptop, when you launch the PowerShell it will be your current login credential

image

I need to login with another credential which has admin rights to perform certain tasks


SNAGHTML64b5603

When a box appears, key in your password

A new PowerShelll ISE is launch

image

And now I can carry out the tasks in this window with admin rights

In summary the command is

Start-Process powershell_ise.exe -Credential "yourdomain\adminID"  

Make changes to the syntax in yellow.  The command must have the quotes as shown.

keywords : launch powershell ise with another credential, launch powershell  ISE with administrator rights, power shell

Tuesday, February 27, 2018

DPM 2012–Event ID 3184 Owner DPM Server

Recently I had an incident on the DPM 2012.  It’s the ActiveOwner issue.

image

I’m going to share with you how I done it.

The ActiveOwner files are located in "c:\program files\Microsoft Data Protection Manage\dpm\activeowner" on the server hosting the databases (SQL server being backed up). In my case it is one of the SQL server the DPM is protecting.  These ActiveOwner are used to manage ownership of databases, important for ensuring multiple DPM servers aren't attempting to backup/restore resources at the same period of time.


image

In the Protected Server that is running the SQL, from the Windows Explorer, drill to the location of:
C:\Program Files\Microsoft Data Protection Manager\DPM\ActiveOwner .

Rename all the files that is 0 KB. e.g. rename with the extention of .old

image

Next launch the Command Prompt in Administrator.

image

Change the directory to : C:\Program Files\Microsoft Data Protection Manager\DPM\bin in the Protected server (not DPM)

Key in as follow :
SetDPMServer.exe –DPMServerName DPMServerName

Note : Replace the DPMServerName with your DPM Server.  The rest of the syntax stays the same.


Rerun the Synchronization in your DPM Console.  It should resolved.

image

keywords : DPM, DPM 2012, DPM 2012 R2, Owner DPM Server ID 3184 The file or directory is corrupted and unreadable (0x80070570), DPM could not run backup/recovery job for the data source it is owned by a different DPM Server, Take data source ownership



Monday, January 15, 2018

Azure–Upsize VM while Maintaining VHD

Upsizing a VM which is in the same family will be easy to perform.  However, what happens if I want to upsize the VM to another category/family ?

I’m going to share the steps.

Scenario :

A VM (DC) that is in the size of Standard A1.  I’ll need to upgrade to size to Standard A1 V2.  Need to maintain the information.

In the steps I’ve created a text document and place it in the desktop of the old VM before I upsize the VM, just to show that the data is still intact.

image

Before changing the VM size.

image

The above shows the VM size

image

The above shows the VM (BK-TRN-DC01) in the resource group name rg_bkhoo_training

image

Take note of the VH VHD.  This info is needed later.

Also take note of the Network Card attach to the VM.


The Process.

image

Firstly, stop the VM just like the shown above.  The VM is stopping. 

image

Once the VM has stopped, then delete the particular VM.

image

As you can see, even though the VM has been deleted, the VHD is still intact in the storage.

image

Create a new VM with the same OS in the Resource Group that you have deleted the VM

image

Now I created a new VM.  In my example I name it as BK-TRN-DC01-A.

image

Now the VM, I select the size of A1_V2 Standard.

image

In the Settings panel, key in to the same settings as the same previous VM that was deleted earlier, then click OK

Revise the Summary, then click OK.

Once the VM is created, then click on the Virtual machine to review the size.  It’s shown as follow

image

Ensure the VM is shutdown down.

Azure Storage Explorer

Next is to launch the Azure Storage Explorer and connect to the Azure Account .

image

Take note that we’re going to remove the new VHD that has been created, and attach the previous VM VHD into the new VM.

image

Firstly, select the the new VM VHD, right-click and select Break Lease.

image

Click Yes to break the lease

image

Before the deletion, copy down the name of the new VM VHD.

Select the new VM VHD, then right-click, choose Delete the new VM VHD in the Azure Storage Explorer.

image

Select Yes to confirm the deletion

image

Right-click on the previous VM VHD and select Rename. Rename the VHD to the name that was noted earlier.

image

The end result in the Azure Storage Explorer is displayed as above for my example.

Attaching back previous Network.

The next things before firing up the VM, is to attach back the previous VM Network.  It contains the previous IP address, with it’s profile.  This is very important.

Take note the VM must be shutdown in order to perform the action

Select Virtual machine networking.

image

Select Attach Network Interface.

image

Select the previous VM network interface and click OK.

image

Next is to detach the the network interface when the new VM was created.

Select the new VM interface in the tab. Then at the top click Detach network interface.

image

Click OK to confirm.

image

Take note of the previous Private VM IP has been attached to the new VM.

image

Now can Start the VM.

RDP into the VM

image

Take note that the new VM hostname is the old VM hostname.  This is because is using the previous VHD. 

Also take note of the IP address.  It’s the previous VM IP address. 

Hope the steps has helped you on how to migrate your VMs from one size to another (from different category) without much of hassles.  The method also can be use to migrate the VMs from classic to the new Azure Portal.


keywords : Azure migration, azure up size, azure family, azure migration of different family, virtualization, azure sizing.

Wednesday, January 10, 2018

Azure Storage Explorer–Release 0.9.3

The Microsoft Azure Storage Explorer was release in December 2017.

Can download from the link  here

image

keywords : Azure Storage Explorer, storage, azure, cloud storage

Monday, March 13, 2017

SCDPM 2016 Storage Setup – Modern Backup Storage

In the System Center Data Protection Manager 2016 (SCDPM 2016), there’s improvement of which type of data to be stored into specific LUN.  I have in the sample are 2 LUNs from NetApps presented the volume to SCDPM 2016 for the Storage Pool.

By configuring this, I’ll have it as Application-aware backup for my SCDPM 2016

In the predecessors (SCDPM 2010, SCDPM 2012), the whole storage pool is mixed together with SQL,VM Backups etc.

However in the SCDPM I can have something like this :

 image

In order to have the above, I’ll share the steps of how it was done.

Once the LUN is presented to the SCDPM 2016, open up the Disk Manager.  I’m going to use Disk 4 and add into the Storage Pool.  This LUN I’m going to use it for SQL type of backups.  This Disk 4 LUN storage was presented from NetApps.  In the later steps I use a friendly name to distinguish in the Storage Pool.

image

I’m going create it as a New Simple Volume (Right-click – Select New Simple Volume)

image

In the Welcome to the New Simple Volume Wizard, click Next.

image

In the Specify Volume Size, click Next (selection to use entire volume for this backup)

In the Assign Drive Letter or Path display, click the Assign the following drive letter, select letter, then click Next

SNAGHTML63274d

In the Format Partition display, click Do not format this volume, then click Next.

image

In the Completing the New Simple Volume Wizard, click Finish

(Below is just a sample)

image

It will something like a sample below in the Disk Management, once the above activity has completed carry out.

image

Switch back to SCDPM 2016 console.

Click ManagementDisk Storage – then click Add at the ribbon menu.

image

In the Add Disk Storage display, click the Add button. 

image

A warning is displayed, click Yes  to continue

image

Once selected and added, key in a friendly name (as mentioned earlier in this blog) to distinguish.  Click OK.

image

Double click on the DPM Management Shell to launch the specific PowerShell commands for SCDPM (Note that this is different set of commands from the normal Windows PowerShell)

Once the DPM Management PowerShell is launch type the following :

$vol = Get-DPMDiskStorage –Volumes

$vol

image

In the next command key, this is going to change the particular pool for Application-aware backup as shown below :

Update-DPMDiskStorage –Volume $vol[3] –FriendlyName “SQL-NetApps” – DataSourceType SQL

Note : Change the ones in Pink in the above syntax  The rest of it stays.

image

DatasourceType supported are :

  • Client
  • SQL
  • SharePoint
  • Exchange
  • SystemProtection
  • HyperV
  • VMWare
  • Other
  • All

Remember to use a unique Volume number.  Usually my Practice is using Disk # – 1  (Disk Number minus 1, refer to the Disk Management)

image

Once the Update-DPMDiskDiskStorage shell command is done, navigate back to your DPM ConsoleManagementDisk Storage to see the Preferred Datasource Types has been changed

image

When the Protection Group is created, you can then select the appropriate storage for the kind of backup.  With this Workload Aware Storage, it will help to reduce storage costs.  

Hope this helps.

keywords : Application-aware backup, SCDPM 2016, System Center Data Protection Manager 2016, modern backup storage