Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

DB went to inaccessable mode and it's in restoring stats after remove from AG group.

$
0
0

Hi All,

I am facing the issue with DB after remove it from AG group.

1) I removed the DB from AG through GUI.

2) run the restore database db_name with recovery on secondary replica to make the DB online.

3) but getting below error. (Msg 3104, Level 16, State 1, Line 1
RESTORE cannot operate on database 'XXX' because it is configured for database mirroring or has joined an availability group. If you intend to restore the database, use ALTER DATABASE to remove mirroring or to remove the database from its availability group.
Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.)

4) Then i ran the alter database xxx set partner off. got below error.

Msg 945, Level 14, State 2, Line 2
Database 'XXX' cannot be opened due to inaccessible files or insufficient memory or disk space.  See the SQL Server errorlog for details.

5) db is not allowing the alter command.

Msg 5052, Level 16, State 1, Line 2
ALTER DATABASE is not permitted while a database is in the Restoring state.

Pleae let me know how to trouble shoot the isse.

Thanks In advance,


rup


Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>