Here is an example of DFS Pre-Seed on a DC using Windows Server Backup
C:\ drive to I:\ Drive - (Example-DC)
Try RoboCopy from my other blog first … and check the result for skipped files
** – If you have a lot of skipped files then you probably forgot to turn your anti-virus engine service off in windows. - but if you didn't and still got skipped files, then you will want to get the files another way? This will help if you are using a server...
You can use the Windows backup and restore step can be used to Pre-Seed the Destination Drive
The Windows backup and Recover process will include copies of all locked files! So if you discover a robocopy which has a high number of locked files this is a better option.
The folder you are copying from (example C:\InstallPkgs) and its files will be copied from C:\ to your destination drive (example I:\) using Windows Server Backup.
This will not copy the correct hash though - to fix run the robocopy – from my other blog post after the recovery completes! Then complete the Removal of C:\InstallPkgs share and change to I:\InstallPkgs as noted in the DFS blog post.
Disable Anti-Virus Scanner Service first.
Back up the replicated files from the source server
To back up files from the source server, after the I:\ drive is created on your destination you can use that volume on the source server itself:
To back up files using the wbadmin.msc graphical tool
Sign in on the source server with an account that is a member of the local Administrators group.
Start Windows Server Backup by using either of the following methods:
In Server Manager, on the Tools menu, click Windows Server Backup.
At an elevated command prompt, enter wbadmin.msc.
In the console tree, click Local Backup.
On the Actions pane, click Backup Once.
The Backup Once Wizard opens.
On the Backup Options page, click Next to begin specifying an unscheduled backup.
On the Select Backup Configuration page, select Custom, and then click Next.
On the Select Items for Backup page, click Add Items, and then select the folders that you want to pre-seed on the destination server. Then click Next.
On the Specify Destination Type page, select Remote shared folder, and then click Next.
On the Specify Remote Folder page, enter or select the shared folder where you want to store the backup, and then click Next. A WindowsImageBackup folder will be created in the shared folder to store the backup.
On the Confirmation page, review the options that you specified, and then click Backup.
In Windows Server (example 2008), on the Specify advanced option page, click Next to the default selection.
After the backup operations complete, verify that no errors occurred. In the console tree, click Local Backup, and then click the backup that just completed. If the status is not Successful, click View details in the Status pane below to review any errors that occurred.
Restore the replicated files to the destination server
You can now restore the backup that you just created to pre-seed the data from the source server to the destination server. The following procedures describe how to do this by using the graphical tool (wbadmin.msc) or the command-line utility (wbadmin.exe).
To restore the replicated files by using the wbadmin.msc graphical tool
Sign in on the destination server with an account that is a member of the local Administrators group on both the source and destination servers.
Start Windows Server Backup from Server Manager, or by running Start Wbadmin.msc.
In the console tree, click Local Backup.
On the Actions pane, click Recover.
The Recovery Wizard opens
On the Getting Started page, select A backup stored on another location (to indicate that you saved the backup from a different server), and then click Next.
On the Specify Location Type page, click Remote shared folder. (Select this option even if the share that stores the backup is on the destination server.)
On the Specify Remote Folder page, type the UNC path to the shared folder where you stored your backup. For example, type \\example-dc\Backups. After you type the server name and a backslash, you can select from shared folders that store backups on the server.
On the Select Backup Date page, select the date and time of the backup that you want to pre-seed on the destination server, and then click Next.
On the Select Recovery Type page, select File and Folders, and then click Next.
On the Select Items to Recover page, under Available Items, expand the backup, select the folder that stores the files you want to pre-seed, and then click Next.
On the Specify Recovery Options page, enter the following options, and then click Next:
Select Another location, and then specify or select the location on the destination server to which you want to pre-seed the files.
Leave the Create copies so that you have both versions and Leave Restore access control list (ACL) permissions to the file or folder being recovered options selected.
On the Confirmation page, review the options that you selected, and then click Recover.
After the restore operations complete, verify that no errors occurred. If any files are missing, check the backup to make sure the files were backed up. Then check the restore log to ensure that no files were skipped during the restore.
Either restore your Anti-Virus Scanner Service now (or) continue and then re-enable at end of processes if doing a straight cutover with your folder share.
Remove DFS Share from C:\ and Enable DFS for I:\
The following is done at your own risk - but may be necessary! I will assume no rsponisibility for your data loss.
In DFS Management Console Go to the source folder and stop sharing the folder (Disable) DO NOT DELETE OR ALL YOUR SERVER's DFS SHARES WILL BE DELETED.
Click OK to the following:
– then… wait a minute – then “Delete Member” to remove the server DO NOT DELETE OR ALL YOUR SERVER's DFS SHARES WILL BE DELETED.
Replicate the permissions from the source share to the destination shares.
DFS Management Changes
Open up DFS Manager and, under the Replication section, click on the replicated folder you are working with. (Example ANA-DC)
Then click on the Memberships tab (it’s the default when clicking on the replicated folder).
Find the server you’re working with. In my case I was working with InstallPkgs and there were two other servers I was replicating to. Right-Click on the line with the server you’re changing paths on and select Disable.
That will give you a warning stating that you are about to stop replicating and if there was anything in transition it won’t replicate.
Once it has finished processing, you should be able to right-click on it again and select Enable. When you click Enable it will pop-up a window that will let you choose a path. Before you can click OK you also have to click the Edit button and choose a share to use. Once that is complete, click OK and then it’ll activate the new replicated folder.
If you had disabled during a straight cutover process (one-time switch)
Restore the Sophos Anti-Virus Scanner Service now
Finally - browse to the DFS namespace and verify that it is pointing to the correct server?
After replication occurs and you have verified the result –
Remove the C:\InstallPkgs shared folder from C:\ and free up the drive space
I'm busy working on my blog posts. Watch this space!