Bejelentkezés Microsoft-fiókkal
Jelentkezzen be, vagy hozzon létre egy fiókot.
Üdvözöljük!
Válasszon másik fiókot.
Több fiókja van
Válassza ki a bejelentkezéshez használni kívánt fiókot.
Angol
Sajnáljuk. Ez a cikk nem érhető el az Ön nyelvén.

Symptoms

Consider the following scenario:

  • You have a database with a defunct filegroup which you are trying to add to an Always On availability group (AG) in Microsoft SQL Server 2014, 2016 and 2017.

  • You are able to add the database to the primary replica and restore the full and log backups with NORECOVERY on the secondary replica without issue.

In this scenario, when you try to join the database to the availability group on the secondary replica with ALTER DATABASE <DatabaseName> SET HADR AVAILABILITY GROUP = <AGName> or use automatic seeding to configure secondary replica, you notice that errors 17207 and 5120 are reported for the data file in the defunct filegroup:

## spid##     Starting up database 'DatabaseName'.

## spid##     Error: 17207, Severity: 16, State: 1.

## spid##     FileMgr::StartSecondaryDataFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'FilePath'. Diagnose and correct the operating system error, and retry the operation.

## spid##     Error: 5120, Severity: 16, State: 5.

## spid##     Unable to open the physical file "FilePath". Operating system error 2: "2(The system cannot find the file specified.)".

You will also see the database go into Not Synchronizing/Recovery Pending mode on the secondary replica after the ALTER DATABASE command is executed.

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Resolution

This issue is fixed in the following cumulative updates for SQL Server:

About cumulative updates for SQL Server:

Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:

References

Learn about the terminology that Microsoft uses to describe software updates.

További segítségre van szüksége?

További lehetőségeket szeretne?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Hasznos volt ez az információ?

Mi volt hatással a felhasználói élményére?
Ha elküldi a visszajelzést, a Microsoft felhasználja azt a termékei és szolgáltatásai továbbfejlesztéséhez. Az informatikai rendszergazda képes lesz ezeket az adatokat összegyűjteni. Adatvédelmi nyilatkozat.

Köszönjük a visszajelzését!

×