SQL Server Error 1534: Extent Not Found Fix
In this article
SQL Server error 1534 means the storage engine cannot find an extent in the shared extent directory, which usually points to a corrupted or inconsistent database file rather than a simple configuration mistake. The fastest safe path is to check the SQL Server error log and the affected database's consistency first, then restore from a known-good backup or run a repair only after you have a verified backup. Do not run DBCC CHECKDB with a repair option until you have a full backup and, ideally, a copy of the suspect files.
What You'll Need
- Administrative access to the SQL Server instance and the Windows machine hosting it.
- A recent full backup of the affected database, plus any log backups needed to reach the current point in time.
- SQL Server Management Studio (SSMS) or another client that can run T-SQL against the instance.
- Free disk space on the drive that holds the database files and the backup destination.
- Access to the SQL Server error log and, if possible, the Windows Event Viewer on the server.
- Permission to stop and start the SQL Server service if a restart is required.
Step-by-Step
- Capture the exact error context. Open SSMS, connect to the instance, and look at the SQL Server error log (Management > SQL Server Logs, or the log file in the instance's LOG folder). Note the database name, the file name, the page or extent reference, and the time. Error 1534 often appears alongside other messages such as 823, 824, or 825; those companion messages tell you whether the problem is I/O, page checksum, or allocation metadata. Write them down before you change anything.
- Confirm which database is affected. Run
SELECT name, state_desc, user_access_desc FROM sys.databases;and check whether the database is online, suspect, or in recovery. If the database is marked suspect, do not try to bring it online by detaching and reattaching until you have a backup; detach and attach can make a corrupted file harder to recover. - Take a full backup immediately if the database is accessible. In SSMS, right-click the database, choose Tasks > Back Up, select Full, and write to a new file on a different physical drive if possible. If the database is not accessible, copy the .mdf and .ldf files to a safe location before any repair attempt. A file copy is not a substitute for a backup, but it preserves the evidence.
- Run a consistency check in read-only mode. Execute
DBCC CHECKDB ('YourDatabaseName') WITH NO_INFOMSGS, ALL_ERRORMSGS;without a repair option. Read the output carefully: it will name the table, index, or allocation unit where the extent is missing. If CHECKDB cannot run because the database is suspect, move to the restore path in step 6. - Check the storage layer. Error 1534 can be triggered by a failing disk, a stale network path, or an antivirus filter driver interfering with file I/O. Run
chkdskon the volume only during a maintenance window, and check Windows Event Viewer for disk warnings. If the database files sit on a network share or a virtual disk, verify that the share or LUN is healthy and that SQL Server has consistent access. Fixing storage problems first prevents the same error from returning after a repair. - Restore from backup if corruption is confirmed. In SSMS, right-click Databases > Restore Database, choose the full backup and any log backups, and restore to a new database name first so you can validate the data before overwriting the original. After the restore, run
DBCC CHECKDBon the restored copy. If it is clean, you can rename or replace the original during a maintenance window. - Use repair only as a last resort and only with a backup in hand. If no backup exists and the data must be recovered, run
DBCC CHECKDB ('YourDatabaseName', REPAIR_ALLOW_DATA_LOSS);only after copying the files and accepting that pages may be dropped. Repair can remove rows or entire allocation units. For critical data, engage a professional recovery service rather than repeated repair attempts. - Verify and monitor after recovery. Run
DBCC CHECKDBagain, check the error log for new 1534 or 823/824 messages, and confirm that SQL Server Agent jobs and application connections work. Schedule regular CHECKDB runs and backup verification so the next extent problem is caught before it becomes an outage.
Common Mistakes
- Running
DBCC CHECKDB ... REPAIR_ALLOW_DATA_LOSSbefore taking a backup. Repair can delete data, and without a backup the loss is permanent. - Detaching and reattaching a suspect database as a first step. This can change file state and complicate recovery; restore or copy the files first.
- Ignoring companion errors. A 1534 paired with 823 or 824 usually means hardware or I/O, not just logical corruption; repairing the database without fixing the disk will not stop the error.
- Assuming the error is a SQL Server bug. In most cases the extent directory inconsistency comes from storage failure, abrupt shutdown, or a file that was copied while the database was online.
- Restoring over the live database before validating the backup. Always restore to a new name and run CHECKDB on the copy first.
Tips
- Keep the SQL Server error log and CHECKDB output together in a ticket; they make vendor or support escalation much faster.
- Store backups on a different physical volume from the database files so a single disk failure does not take out both.
- Run
DBCC CHECKDBon a regular schedule during low-usage windows; it detects extent and allocation problems early. - If the instance hosts multiple databases, check whether the error is isolated to one database or appears across several; multiple databases point to storage or instance-level problems.
- Document the exact file paths and drive letters before moving or restoring files; SQL Server stores physical paths in the metadata and a mismatch causes attach failures.
Troubleshooting
If CHECKDB reports that repair is not possible, or if the database remains suspect after a restart, do not repeat repair commands. Copy the .mdf and .ldf files to another location, then attempt a restore from the most recent backup. If no backup exists, contact Microsoft Support or a data recovery specialist and provide the error log, CHECKDB output, and file copies.
If the error returns immediately after a successful restore, the problem is likely outside the database: failing storage, a filter driver, or a network path. Run chkdsk on the volume during a maintenance window, update storage drivers, and temporarily exclude the database and backup folders from antivirus real-time scanning according to your security policy. If the instance is a failover cluster or availability group, check the health of the underlying disks on every node.
If you cannot start SQL Server at all, start it in minimal configuration mode (sqlservr.exe -m from an elevated command prompt in the instance's Binn folder) to allow a single administrator connection, then take a backup before any further changes. Stop and restart the service normally afterward.
Frequently Asked Questions
What does error 1534 actually mean?
It means SQL Server could not locate an extent in the shared extent directory, which is internal allocation metadata. In practice it signals corruption or inconsistency in the database files or the storage holding them.
Can I fix error 1534 without a backup?
Only with risk. Repair options may remove data, and without a backup the removed data cannot be recovered. Copy the database files first and consider professional recovery if the data is critical.
Is error 1534 always caused by a bad disk?
No. It can also follow an abrupt shutdown, a file copy made while the database was online, or a filter driver interfering with I/O. Check the error log for companion messages to narrow it down.
Should I run DBCC CHECKDB with REPAIR_REBUILD or REPAIR_ALLOW_DATA_LOSS?
Start with CHECKDB without a repair option. Use REPAIR_REBUILD only when CHECKDB recommends it and you have a backup. REPAIR_ALLOW_DATA_LOSS is a last resort because it can delete rows.
Will restarting SQL Server clear the error?
Sometimes a restart clears a transient state, but if the extent directory is inconsistent the error will return. Restart, then run CHECKDB to confirm whether corruption remains.
Does error 1534 affect other databases on the same instance?
It can if the cause is storage-level. Check every database with CHECKDB and review Windows Event Viewer for disk warnings on the volume holding the files.