Experience Stellar's software with confidence! 100% safe to download.
Free Download For Windows

Email Repair

How to Use AutoReseed in Exchange Server?

Summary:AutoReseed is a feature that helps reduce admin work by replacing the normal actions administrators take in case of disk failure or any other issue that requires reseeding of database. In this article, we will be talking about this feature and how to use this feature. We will also mention an Exchange repair tool that can help recover data from corrupted databases.

Free Download For Windows
Free Download For Windows
Table of Content arrow

    InDatabase Availability Group (DAG)setup in Exchange Server, you have a failover and replication system. In case of a disk failure or database corruption, you may need to replace the drives and reseed the data from the source. To reseed the data, there is a feature calledAutoReseed。This function was introduced first in Exchange Server 2013.

    When the data drive is failed which is holding the mailbox database copy, the Exchange Administrator would have to do the following:

    • Repair the drive or replace the damaged hard drives
    • Setup of the volume
    • Remove the database from the Database Availability Group (DAG)Re-instate the database in the Database Availability Group (DAG)
    • Seed the data from the source database

    The AutoReseed feature will automatically seed the databases once the drive is available, thus reducing the admin work. Let’s see how to use the AutoReseed feature.

    How to Use the AutoReseed Function?

    TheAutoReseedfunction uses the Windows Server operating system where you can mount a drive as a folder on the operating system drive. Although there is a separate drive on a separate volume, instead of giving it a drive letter, you will give it a folder path. You cannot have the mailbox databases stored on a separate drive. For the feature to work, you need to have the drive mounted as a folder.

    Let’s understand this by way of an example. Here, we are creating a 1 GB drive to illustrate the process.

    • There is a disk with no partition or volume (see the below image). So, right-click on the unallocated space and click onNewSimpleVolume
    New Simple Volume
    • ClickNext
    • Select the desired space and clickNext
    • Now, click on theMount in the following empty NTFS folderoption.
    Mount in the following empty NTFS folder
    • Click onBrowse
    • Set the desired location and clickNext
    Mount in the following empty NTFS folder location
    • Proceed with the format options and clickNext
    • ClickFinish。You will notice that the drive doesn’t have a drive letter.
    Mount in the following empty NTFS folder Drive Letter
    • If you browse to the set location, you will see the location as a folder (in this example, it is C:\MailboxLocation).
    NTFS folder Drive Letter set location

    Setting up the AutoReseed function

    First, you need to configure the root paths or the databases and volumes. To do so, you need to use theSet-DatabaseAvailabilityGroupcommand。The default locations areC:\ExchangeDatabasesandC:\ExchangeVolumes

    To change the root path for the database, you need to run the following command.

    Set-DatabaseAvailabilityGroup -AutoDagDatabasesRootFolderPath " "

    To change the root path for the database

    To change the default volume, you need to run the below command.

    Set-DatabaseAvailabilityGroup -AutoDagVolumesRootFolderPath " "

    To change the default volume of DAG

    You can use the following command to configure theAutoReseedsetting for theDatabase Availability Group (DAG), configured with 4 databases per volume.

    Set-DatabaseAvailabilityGroup -AutoDagDatabaseCopiesPerVolume

    Set DatabaseAvailabilityGroup to configure the AutoReseed setting for the Database Availability Group

    Now, you need to mount the volumes for the databases with the volumes that will be used as spare. It is recommended to mount the volumes with specific numbers as this will help to identify the volumes easily (see the below example).

    C:\MailboxLocation\Volumes\Volume1
    C:\MailboxLocation\Volumes\Volume2
    C:\MailboxLocation\Volumes\Volume3

    In the database location, you need to create the databases folders (see the example below).

    C:\MailboxLocation\Databases\DB01
    C:\MailboxLocation\Databases\DB02
    C:\MailboxLocation\Databases\DB03
    C:\MailboxLocation\Databases\DB04

    Since you’re setting up different hard drives for each database, you need to mount these drives as the location. You can use the following command. This needs to be done for each drive.

    Mountvol.exe \\?\Volume

    setting up different hard drives for each database

    你可以通过运行以下通讯GUIDand.

    GWMI -namespace root\cimv2 -class win32_volume | FL -property DriveLetter, DeviceID

    GUID cmd

    Now, you need to create the folders under each database that will store the data. You need to also create the log and database files (see the examples below).

    md C:\MailboxLocation\Databases\DB01\DB01.db
    md C:\MailboxLocation\Databases\DB01\DB01.log

    This will create the folders needed. You need to repeat the process for all the databases.

    Lastly, you need to create the databases. For this, you can run theNew-MailboxDatabasecommandin theExchange Management Shell (EMS)

    New-MailboxDatabase -Name -Server -LogFolderPath -EdbFilePath

    Run the New MailboxDatabase command in the Exchange Management Shell

    You need to repeat this for all the databases.

    To verify that the changes have been successful and the auto-reseed has been configured, you can use the following command to get the information of the databases.

    Get-DatabaseAvailabilityGroup | Format-List *auto*

    get the information of the databases

    To Conclude

    When you have a full redundant system, you assume that nothing will stop the system or there is no loss of data in case something happens. However, things may still go wrong and there is always a point of failure. The EDB file may get corrupted for any reason. In such cases, you can use specializedExchange Recoveryapplications to Recover Exchange Database in any state and without a running Exchange Server. One such specialized application, which is on top of the market, isStellar Repair for Exchange。它可以快速、无complica恢复数据tions.

    WithStellar Repair for Exchange, you can open corrupted databases or orphaned databases with no size limit or version restriction. You can browse the data store after a quick or extensive scan. You can granularly export recovered database to PST and other file formats, or export directly to a live Exchange Server database or Office 365.

    progress
    76% of people found this article helpful

    WHY STELLAR®IS GLOBAL LEADER

    Why Choose Stellar?
    • 0M+

      Customers

    • 0+

      Years of Excellence

    • 0+

      R&D Engineers

    • 0+

      Countries

    • 0+

      PARTNERS

    • 0+

      Awards Received

    • TUV SUD ISO 27001
    • TUV SUD ISO 9001
    • NIST
    • HIPAA Verified