Как запустить Сервер MSSQL с поврежденного образцового дб

По-видимому, пароль пользователя, не присутствующего, абсолютно необходим для дешифрования. Следовательно Ваша единственная опция состоит в том, чтобы искать решение, которое создает резервную копию зашифрованных файлов, и используйте это для обоих пользователей. Это имеет преимущество, что по-видимому конфиденциальная информация также шифруется на резервных носителях - который может быть важным, если Вы передаете его вокруг места (для прилегающего объекта).

Я не знаком с ecryptfs, но он кажется, что файлы являются стандартными файлами при просмотре базовой файловой системой (в предположении ext3).

Так, 1) 'исходный' каталог, который содержит зашифрованные данные на самом деле где-то в другом месте, и затем смонтированный так, чтобы незашифрованная версия появилась в местоположении, которое Вы дали - в этом случае Вы могли просто получить зашифрованные данные от исходного местоположения. Часть документации человечности предполагает, что незашифрованные частные файлы - то, что Вы видите в/home/.ecryptfs/A/Private, и их зашифрованные дубликаты на самом деле присутствуют в/home/.ecryptfs/A/.Private. Если так, и Вы используете rsync, у Вас будет зашифрованный.Private каталог для обоих пользователей так или иначе, и для ясности Вы могли использовать исключить опции rsync предотвратить резервное копирование незашифрованного каталога Private.

2) С другой стороны, Вы подвергаете сомнению, читает немного как вся папка (или B) шифруется, и возможно unecrypted и зашифрованные версии монтируются в том же местоположении. Если так, могли Вам попробовать что-то нравится, монтируют, что-o ro - связывают/home/.ecryptfs/A/mnt/encryptedA, который предоставил бы другую точку доступа каталогу A через/mnt/encryptedA. Если бы это было сделано то перед пользовательским входом в систему затем возможно Вы сохранили бы доступ к зашифрованной версии через/mnt/encryptedA даже, в то время как/home/.ecryptda/A предоставляет доступ к незашифрованной версии. Я не знаю, будет ли это работать - необходимо было бы просто попробовать его и видеть.

3
задан 21 June 2012 в 00:01
2 ответа

Это было фактически исправлено некоторое время (еще в июле 2012 г.) назад с помощью платный звонок в службу поддержки от Microsoft.

Поскольку это получило так много просмотров, я решил добавить отредактированную версию нашего «электронного сообщения» о звонке в Microsoft.

Размещена ссылка на pastebin: http://pastebin.com/QqNz7xYd

Надеюсь, эта информация поможет кому-нибудь с этой проблемой


Problem Description:
=============================
You Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64)  default instance on SERVERNAME server and you were trying to start the SQL SERVER service which was failing to start.


Analysis\Troubleshooting:
=============================

We checked the SQLS SERVER ERRORLOG

===========================
2012-06-20 19:33:41.48 Server      Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64)
 Apr  2 2010 15:48:46
 Copyright (c) Microsoft Corporation
Enterprise Edition (64-bit) on Windows NT 6.0 <X64> (Build 6001: Service Pack 1)

2012-06-20 19:33:41.50 Server      (c) Microsoft Corporation.
2012-06-20 19:33:41.50 Server      All rights reserved.
2012-06-20 19:33:41.50 Server      Server process ID is 2596.
2012-06-20 19:33:41.51 Server      System Manufacturer: 'HP', System Model: 'ProLiant DL360 G5'.
2012-06-20 19:33:41.51 Server      Authentication mode is MIXED.
2012-06-20 19:33:41.51 Server      Logging SQL Server messages in file 'D:\Mssql\Data\MSSQL10_50.MSSQLSERVER\MSSQL\Log\ERRORLOG'.
2012-06-20 19:33:41.51 Server      This instance of SQL Server last reported using a process ID of 2816 at 6/20/2012 6:10:15 PM (local) 6/20/2012 10:10:15 PM (UTC). This is an informational message only; no user action is required.
2012-06-20 19:33:41.51 Server      Registry startup parameters:
  -d D:\Mssql\Data\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\master.mdf
  -e D:\Mssql\Data\MSSQL10_50.MSSQLSERVER\MSSQL\Log\ERRORLOG
  -l D:\Mssql\Data\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\mastlog.ldf
2012-06-20 19:33:41.56 Server      SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
2012-06-20 19:33:41.56 Server      Detected 4 CPUs. This is an informational message; no user action is required.
2012-06-20 19:33:41.65 Server      Using locked pages for buffer pool.
2012-06-20 19:33:41.88 Server      Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.
2012-06-20 19:33:42.33 Server      Node configuration: node 0: CPU mask: 0x000000000000000f:0 Active CPU mask: 0x000000000000000f:0. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required.
2012-06-20 19:33:42.49 spid7s      Starting up database 'master'.
2012-06-20 19:33:42.86 spid7s      Resource governor reconfiguration succeeded.
2012-06-20 19:33:42.86 spid7s      SQL Server Audit is starting the audits. This is an informational message. No user action is required.
2012-06-20 19:33:42.87 spid7s      SQL Server Audit has started the audits. This is an informational message. No user action is required.
2012-06-20 19:33:42.87 spid7s      FILESTREAM: effective level = 0, configured level = 0, file system access share name = 'MSSQLSERVER'.
2012-06-20 19:33:43.02 spid7s      SQL Trace ID 1 was started by login "sa".
2012-06-20 19:33:43.03 spid7s      Starting up database 'mssqlsystemresource'.
2012-06-20 19:33:43.05 spid7s      The resource database build version is 10.50.1600. This is an informational message only. No user action is required.
2012-06-20 19:33:43.24 spid10s     Starting up database 'model'.
2012-06-20 19:33:43.24 spid7s      Server name is 'SERVERNAME'. This is an informational message only. No user action is required.
2012-06-20 19:33:43.27 spid10s     The database 'model' is marked RESTORING and is in a state that does not allow recovery to be run.
2012-06-20 19:33:43.28 spid10s     Error: 927, Severity: 14, State: 2.
2012-06-20 19:33:43.28 spid10s     Database 'model' cannot be opened. It is in the middle of a restore.
2012-06-20 19:33:43.36 spid10s     Could not create tempdb. You may not have enough disk space available. Free additional disk space by deleting other files on the tempdb drive and then restart SQL Server. Check for additional errors in the event log that may indicate why the tempdb files could not be initialized.
2012-06-20 19:33:43.36 spid10s     SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.
===========================

From ERRORLOG we can see that SQL SERVER trying to bring model database online but since model database in recovery state hence we were unable to run database recovery.

We also know that whenever SQL SERVER start we recreate TEMPDB database by coping the content from model database.

Now since model database didn’t started hence TEMPDB startup also failed which is one of critical system database and this caused SQL SERVER service to failed


Solution:
=====================================
·         To fix this issue we started SQL SERVER EXE with following parameter from command prompt


SQLSERVR.EXE -c -T3608

·         Then after we detached model database using following T-SQL


sp_detach_db model

·         Then after we attach the model database using following T-SQL


================================
USE MASTER
GO
CREATE DATABASE MODEL
      ON (FILENAME = 'C:\PROGRAM FILES\MICROSOFT SQL SERVER\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\MODEL.MDF')
      FOR ATTACH ;
================================

·         After that SQL SERVER service came online successfully
3
ответ дан 3 December 2019 в 06:13

Can you start the sql service by bypassing the autorecover?

net start mssqlserver /f /m /t3608

then try to recover the model?

sqlcmd -e 
restore database 
model go

edit: found this link as well, which goes into more depth and is probably more accurate..

1
ответ дан 3 December 2019 в 06:13

Теги

Похожие вопросы