Bare metal restore to smaller drive

Backup agent for Microsoft Windows servers and workstations (formerly Veeam Endpoint Backup FREE)

Bare metal restore to smaller drive

Veeam Logoby alanwbaker » Sun Oct 30, 2016 10:36 pm

Hello,

My customer wants to replace his Windows 10 system's 1 TB mechanical drive with a 256GB SSD. He did a full backup, which contains about 90 GB of data. When he tried a bare metal backup to the SSD, he could not restore the C: partition either automatically or manually. What do you suggest?

Alan
alanwbaker
Novice
 
Posts: 3
Liked: never
Joined: Sun Oct 30, 2016 8:17 pm
Full Name: Alan Baker

Re: Bare metal restore to smaller drive

Veeam Logoby alanwbaker » Mon Oct 31, 2016 3:33 am

These are the steps he followed within the bare metal recovery dialog:

Restore mode: Manual restore (advanced) > Next
At Disk Mapping: Click Customize disk mapping link.
Child window Disk Mapping: Right click Unallocated area.
Box with "Restore" > Disk 0 > List of partitions
Click C: partition > This volume is larger than the specified destination. Shrink the volume to fit the destination? > OK
Returns error message "Failed to set disk layout, disk physical drive 2. Failed to set drive layout. Win32 error: the paramenter is incorrect. Code: 87"

Alan
alanwbaker
Novice
 
Posts: 3
Liked: never
Joined: Sun Oct 30, 2016 8:17 pm
Full Name: Alan Baker

Re: Bare metal restore to smaller drive

Veeam Logoby Mike Resseler » Mon Oct 31, 2016 6:34 am

Hi Alan,

It is practically impossible to solve this over the forum with only that error message :-). Was the SSD formatted upfront and already contains information? Is that drive bitlockered? There could be many things so instead of just trying out different things...

I assume your customer is using our latest version (1.5)? If that is the case, can you let him perform the procedure again and save the logs from the BMR dialog (you can save the logs while on the recovery media through the tools...). After that, let him create a support case through the UI and let him / her explain the procedure there. Our engineers will (most probably) contact the customer and get those specific logs that were gathered during the BMR attempt. Post the Case-ID here and hopefully the solution also ;-)

Thanks
Mike
Mike Resseler
Veeam Software
 
Posts: 3088
Liked: 359 times
Joined: Fri Feb 08, 2013 3:08 pm
Location: Belgium, the land of the fries, the beer, the chocolate and the diamonds...
Full Name: Mike Resseler

Re: Bare metal restore to smaller drive

Veeam Logoby alanwbaker » Thu Nov 03, 2016 3:01 am

Yes, the customer is using the latest (1.5). I contacted support on case # 01964425 and sent the logs. Veeam's bare metal recovery uses Microsoft's shrinking software, which cannot move Windows 10's non-contiguous "unmovable" files. This seriously limits the amount that it can shrink a partition.

The workaround was to shrink the original partition using a third-party tool, AOMEI Partition Assistant Standard. It was able to move the "unmovable" files to be contiguous with the other partitions, then shrink it all. Then we were able to back up the shrunken volume and do the bare metal restore.

Alan
alanwbaker
Novice
 
Posts: 3
Liked: never
Joined: Sun Oct 30, 2016 8:17 pm
Full Name: Alan Baker

Re: Bare metal restore to smaller drive

Veeam Logoby Mike Resseler » Thu Nov 03, 2016 5:44 am

Alan,

Thanks for coming back to us with the solution. Good to know that windows 10 has non-contiguous unmovable files that standard shrinking software can't handle!

Thanks

Mike
Mike Resseler
Veeam Software
 
Posts: 3088
Liked: 359 times
Joined: Fri Feb 08, 2013 3:08 pm
Location: Belgium, the land of the fries, the beer, the chocolate and the diamonds...
Full Name: Mike Resseler

Re: Bare metal restore to smaller drive

Veeam Logoby skochetkov » Thu Nov 03, 2016 9:40 am

Hello Alan,

The reason why Windows won’t let you shrink the volume is because there are immovable system files at the very end of the volume. If you don't want to use 3rd party software you can use Windows tools, but you'll have to re-create the backup. To absolutely ensure that you can shrink the volume, you should disable as many of the system files as you can, at least temporarily. Here’s the list of steps:

1.Run the Disk Cleanup Wizard, making sure to remove the hibernation file and all restore points.
2.Disable System Restore
3.Disable the pagefile ( Open up System in Control Panel, then Advanced System Settings \ Advanced \ Performance \ Advanced \ Change \ No Paging File.
In the same Advanced Settings, go to Startup and Recovery \ Settings and then change the Write debugging information drop-down to “None” to disable the kernel memory dump.
4.Disable Hibernation mode in your power options \ advanced power options screen.
5.Reboot the machine, and then delete your c:\pagefile.sys file.

6. Re-create the backup and try to restore it on the new disk
skochetkov
Veeam Software
 
Posts: 24
Liked: 3 times
Joined: Thu Feb 12, 2015 12:36 pm
Full Name: Sergey Kochetkov

Re: Bare metal restore to smaller drive

Veeam Logoby wallstrum » Wed Dec 07, 2016 9:34 pm

The workaround was to shrink the original partition using a third-party tool, AOMEI Partition Assistant Standard. It was able to move the "unmovable" files to be contiguous with the other partitions, then shrink it all. Then we were able to back up the shrunken volume and do the bare metal restore.

Alan


Alan - FYI, I came across the same issue (interestingly, cloning a 64GB drive from a Core M5 Intel Compute Stick onto a 64GB drive in a Core M3 Compute stick which was apparently 100MB smaller). I was able, in the normal disk management console in Windows 10 on the original drive, to shrink the drive enough to where i was able to get the backup to restore onto the smaller drive.

Wally
wallstrum
Novice
 
Posts: 8
Liked: never
Joined: Wed Jun 22, 2011 6:47 pm

Re: Bare metal restore to smaller drive

Veeam Logoby bdelafouchardiere » Sun Mar 19, 2017 4:30 pm

I initially had a 750Gb with 3 partition, 25G for Recovery, 300G for system and a hidden 450M partition for recovery boot. The rest of the disk was not allocated.
I change the 750G slow disk with a Crutial 275Gb SSD to fasten the PC but hit the issue while restoring since C drive was bigger than the disk and could not be shrinked even if it was not full.

AOMEI Partition Assistant Standard worked fine for me, the C drive was 300Gb, I reduced it to 100G, did the backup and restored successfully.
Once restored, I extended in W10 the C drive to the size of disk by expand function in disk manage. Now I have the 25G recovery + C drive of 230 Gb.

Bruno
bdelafouchardiere
Lurker
 
Posts: 1
Liked: never
Joined: Sun Mar 19, 2017 4:20 pm
Full Name: Bruno de la Fouchardiere

Re: Bare metal restore to smaller drive

Veeam Logoby Dima P. » Mon Mar 20, 2017 10:14 pm

Hi Bruno,

Thanks for sharing the workaround. Unfortunately, due unmovable blocks shrink sometimes may fail. In case you are using bare metal recovery as a migrate option its recommended to perform a defragmentation prior running backup and bare metal restore.
Dima P.
Veeam Software
 
Posts: 6066
Liked: 432 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov


Return to Veeam Agent for Windows



Who is online

Users browsing this forum: No registered users and 7 guests