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

SQL Server 2012 Std SP1 failover cluster installation failure "not supported WOW64"

$
0
0

Hey, guys!

Trying to setup SQL Server 2012 Std SP1 failover cluster on Windows Server 2012 Std.

I installed feature "Failover Clustering" and as part of it WOW64. When I am trying to remove WOW64, Windows asks me if I want to remove "Failover Clustering" feature.

I install all using http://clusteringformeremortals.com/2013/01/05/clustering-sql-server-2012-on-windows-server-2012-step-by-step/

Now on step "Setup Support Rules" I see failed role WOW64:

"SQL Server Setup is not supported in WOW64. This setup program can be run only on a 32-bit system."

How come? 2012 is 64bit and SQL Server should be also 64 bits, no?

Thanks in advance!


DTC and SQL Server

$
0
0

Hi,

I need to create a SQL Server 2012 active-active failover cluster.

The questions are:

Do I need to create the DTC service in the cluster?

If yes,

How many DTC services I need to create?

Thanks in advance!

database performance stats Pre Release

$
0
0

We are going to do a major release in our application,

the client wants to know the database stats Before and after the promotion,

client wants to see how is going to be the performance effected,

what kind of stats need to be pulled out of database?


k

SQL Server 2005 .mdf File Corruption

$
0
0

Hello All,

We have a huge problem and we need your help.

We have Microsoft Dynamics CRM Server and SQL Server 2005 .

We were facing a bad performance in the Server and then Suddenly i did a restart for the Server and after that the windows is not booting.

so i did a windows repair and then the windows started successfully but SQL Server not working anymore.

so i took a copy of the MDF & LDF Files of the DB and attempt to attach them to a different SQL SERver instance in another Server but Suddenly i got this error:-

 

TITLE: Microsoft SQL Server Management Studio
------------------------------

Attach database failed for Server 'ServerName\InstanceName'.  (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.4035.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Attach+database+Server&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

SQL Server detected a logical consistency-based I/O error: incorrect pageid (expected 1:511232; actual 0:0). It occurred during a read of page (1:511232) in database ID 28 at offset 0x000000f9a00000 in file 'E:\CRM Dbs\Org_MSCRM.mdf'.  Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.
Could not open new database 'Org_MSCRM'. CREATE DATABASE is aborted. (Microsoft SQL Server, Error: 824)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=824&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------

What do you Think? We don't have a recent Backup of the Database ( Last backup was over 7 months ago Unfortunately )

Cluster Fail-over - Failed to bring secondary node online ??

$
0
0

Hi

Server : Windows server 2008

DB Server : SQL Server 2008 (SP1)

 

Here are the series of events which happened.

1.) Event ID: 1135

Cluster node 'XYZ' was removed from the active failover cluster membership. The Cluster service on this node may have stopped. This could also be due to the node having lost communication with other active nodes in the failover cluster. Run the Validate a Configuration wizard to check your network configuration. If the condition persists, check for hardware or software errors related to the network adapters on this node. Also check for failures in any other network components to which the node is connected such as hubs, switches, or bridges.

2.) Event ID: 1049

     Cluster IP address resource 'SQL IP Address 1 (XYZ)' cannot be brought online because a duplicate IP address '10.9.8.113' was detected on the network.  Please ensure all IP addresses are unique.

3.) Event ID: 1069

     Cluster resource 'SQL IP Address 1 (XYZ)' in clustered service or application 'SQL Server (MSSQLSERVER)' failed.

4.) Event ID: 1049

     Cluster IP address resource 'Cluster IP Address' cannot be brought online because a duplicate IP address '10.9.8.112' was detected on the network.  Please ensure all IP addresses are unique.

5.) Event ID: 1069

    Cluster resource 'Cluster IP Address' in clustered service or application 'Cluster Group' failed.

6.) Event ID: 1066

Cluster disk resource 'Cluster Disk 25' indicates corruption for volume '\\?\Volume{88552e6f-aea2-11df-9790-0026b92fffa7}'. Chkdsk is being run to repair problems. The disk will be unavailable until Chkdsk completes. Chkdsk output will be logged to file 'C:\Windows\Cluster\Reports\ChkDsk_ResCluster Disk 25_Disk16Part1.log'. Chkdsk may also write information to the Application Event Log.

7.) Event ID : 1066

Cluster disk resource 'Cluster Disk 26' indicates corruption for volume '\\?\Volume{88552e05-aea2-11df-9790-0026b92fffa7}'. Chkdsk is being run to repair problems. The disk will be unavailable until Chkdsk completes. Chkdsk output will be logged to file 'C:\Windows\Cluster\Reports\ChkDsk_ResCluster Disk 26_Disk4Part1.log'. Chkdsk may also write information to the Application Event Log.

8.) Event ID: 1049

 (Same message as point 2)

9.) Event ID: 1069

     (Same message as point 3)

10.) Event ID : 1049

(same message as point 4)

11.) Event ID :1069 

       (same message as point 5)

12.) Event ID :1205

    The Cluster service failed to bring clustered service or application 'Cluster Group' completely online or offline. One or more resources may be in a failed state. This may impact the availability of the clustered service or application.

13.) Event ID: 1069

      Cluster resource 'Cluster Disk 17' in clustered service or application 'SQL Server (MSSQLSERVER)' failed.

14.) Event D : 1049

      (same message as point 2)

15.) Event ID: 1069

Cluster resource 'SQL IP Address 1 (XYZ)' in clustered service or application 'SQL Server (MSSQLSERVER)' failed.

16.) Event ID : 1205

 The Cluster service failed to bring clustered service or application 'SQL Server (MSSQLSERVER)' completely online or offline. One or more resources may be in a failed state. This may impact the availability of the clustered service or application.

 

first of all,I went through all the logs, and could not find the reason for fail-over initialization. There should be some thing logged why the failover happened? secondly after failover the service was not coming online due to duplicate IP address detection. later when we try  to manually bring the service online from cluster management it comes online successfully. i dont understand how would duplicate IP address get resolved when we start manually.

Lastly we see few errors related to physical disk resource between failover retries, is this could be the correlated to failover error ? Please help to troubleshoot these errors, i am not so good at clustering and Thanks for your help in advance....:)

Thanks

Mushtaq

 

 

 

 

 

 

 

 

 

 

Differences between clusters, mirroring, replication and AlwaysOn at a very high level

$
0
0

I'm trying to get my head around these technologies (clusters, database mirroring, replication and AlwaysOn) at a high level. Please confirm if my understanding is correct and fill in the holes where needed.

First, a Widows Server failover cluster is two or more server nodes sharing a common SAN. The two or more servers appear as one server on the network. If a physical box fails another node is there to prevent any interruption of service.

A SQL Server cluster is an installed instance of SQL server on each cluster node, appearing as one instance of SQL Server on the network. The database(s) filegroups are located on the SAN. This arrangement provides can provide continuous service if a SQL server goes down but does not offer production if the SAN fails.

So far, so good?

Database mirroring is a SQL server technology which maintains a copy of a database on a different SQL Server instance. If the storage hosting a database goes down, mirroring is the technology that allows for (in some configurations) uninterrupted service. It seems as if, if mirroring is implemented that service could be protected if the server goes down if the mirrored SQL instance is on another host. So is SQL Server mirroring a less sophisticated (poor man's) SQL Server cluster?

From my reading, the implication is that replication is a "better" technology than mirroring (there certainly are more options). But if this is true, why? What protections does replication offer that mirroring doesn't? (Mirroring seems to offer very high reliability.)

Is AlwaysOn technology only installed on Windows Server clusters. Is it the brand name for SQL Server clusters? Or does it offer some protections or features beyond a SQL Server Cluster?

I know books are written on this. Really appreicate a high level clarification to help me understand what I'm reading.

Thanks.


Karl Thompson

No clustered disks available

$
0
0

We just finished up putting together a windows 2012 cluster using a single shared volume.  I went today to build the SQL cluster and got an error stating that "No clustered disks available" when doing the install.  We have a single volume that shows as a CSVFS disk in the failover cluster manager but SQL server is unable to find the volume.  The other odd thing is the disk shows offline in disk management and will not allow me to place it online.  Any suggestions would be greatly appreciated.

Thanks.

Cannot add disk to cluster

$
0
0

I have used the SAN (HP P4000) software to create a snapshot of a database volume on one server and am attempting to use the snapshot as a disk on another server, a Windows 2012, SQL Server 2012 Enterprise failover cluster. I connect the new disk to the cluster with iscsi, bring it online, clear the readonly, hidden & shadowcopy flags but when I try to add it to the cluster available storage it does not appear in the list of disks that can be added.

The SAN snapshot process uses VSS to quiesce the databases and if I go through the same process but turn off the option to use VSS when creating the snapshot then everything works just fine. However, turning off VSS is not an option going forward for obvious reasons.

It would appear that VSS is doing something to the volume that clustering does not like but after hours of trial and error I cannot find any way to make the volume acceptable to the cluster. Has anyone found a workaround for this?


Including the system databases along with user databases for db integrity checks and building of reindexes

$
0
0

We have a maintenance plans which checks for the database integrity and rebuilding of indexes
of all user databases excluding the system databases of master, model, and msdb. Since the system
databases are having metadata about other databases is there any problem in including the
above databases along with the other user databases in the maintenance plans for integrity
checks and rebuilding of indexes? Also while building the indexes what are the overheads in time
if we are keeping the indexes online or is there any advantage in keeping the indexes not in online while rebuilding the indexes?

maintenance plan overwrites backups

$
0
0

I am in SQL Server 2005 SP2 64 bit Standard Edition and created a maintenance plan to delete backup files that are older than 24 hours.  It looks in a particular folder for the bak extension to do this.  The second task in the plan is to write the backup.  Below is the code for that.  The problem I am having is that the plan is overwriting the differential backups every time it runs.  What I am trying to do is have it write the back 24 times, once each hour, and then delete the file when it is over 24 hours old and write a new backup.  This allows me to keep one full backup, running from a different SQL Agent job and 24 differentials.  Why is my maintenance plan over writing the differential every time?

declare @f sysname
set @f=N'\\stlbackup01\SQLBackups\InstanceName\InstanceName_diffbackup_'+replace(convert(nvarchar,getdate(),100), ':', '_')+N'.bak'

BACKUP DATABASE [MyDB] TO  DISK =@f
WITH DIFFERENTIAL
,NOFORMAT
, INIT
,  NAME = N'MyDB-Differential Database Backup'
, SKIP
, NOREWIND
, NOUNLOAD
,  STATS = 10


Lee Markum

Always On availability groups between Windows Azure regions

$
0
0

Hello.

I want to configure SQL Server Always On availability groups between Windows Azure virtual machines in different regions. One machine would be in a data center in Europe and one in Asia. Is that even possible? Cannot seem to find much information about Always On cross-region. I have looked into mirroring instead but I need both databases to be readable.

Thanks!

/Niklas

sqlpackage.exe is generating non-executable drop default constraint command.

$
0
0

I'm using sqlpackage.exe to generate differential script for update between different database versions (database projects, .dacpac files), so I'm not running it against existing Sql Server database instance. The problem is that in source project in one table I'm having a column with a default constraint without a name. I'm not changing those constraints nor the columns having those ones. I'm changing the table name, and I remove one column and add new one with different name and type.

What the sqlpackage is generating are, of course, command to rename the code, commands to drop those defaults (those are wrong), and small part of commands removing and adding the columns by creating new table and moving data to the new one and removing old table (but that is OK and out of scope of that problem).

So the changes looks more less like that:

Source table (key def ommitted):

CREATE TABLE SourceTable (
    [Id]          INT           IDENTITY (1, 1) NOT NULL,
    [Column1]      NVARCHAR (50) NOT NULL,
    [Column2] XML           NULL,
    [Column3]    INT           DEFAULT ((0)) NOT NULL,
    [Column4] VARCHAR (50)  DEFAULT ('') NOT NULL
);

Target Table (key def ommited)

CREATE TABLE TargetTable (
    [Id]          INT           IDENTITY (1, 1) NOT NULL,
    [OtherColumn]      INT NOT NULL,
    [Column2] XML           NULL,
    [Column3]    INT           DEFAULT ((0)) NOT NULL,
    [Column4] VARCHAR (50)  DEFAULT ('') NOT NULL
);

On the [OtherColumn] would be created a foreign key.

The generated script is as fallows (removed unnecessary code):

EXECUTE sp_rename @objname = N'[SourceTable]', @newname = N'TargetTable', @objtype = N'OBJECT';

ALTER TABLE [dbo].[TargetTable DROP CONSTRAINT ; <--fails

ALTER TABLE [dbo].[TargetTable] DROP CONSTRAINT ; <--fails

BEGIN TRANSACTION;

SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;

SET XACT_ABORT ON;

CREATE TABLE [dbo].[tmp_ms_xx_TargetTable] (
    [Id]          INT           IDENTITY (1, 1) NOT NULL,
    [OtherColumn]      INT NOT NULL,
    [Column2] XML           NULL,
    [Column3]    INT           DEFAULT ((0)) NOT NULL,
    [Column4] VARCHAR (50)  DEFAULT ('') NOT NULL
    CONSTRAINT [tmp_ms_xx_constraint_PK_TargetTable] PRIMARY KEY CLUSTERED ([Id] ASC)
);

ALTER TABLE [dbo].[tmp_ms_xx_TargetTable]
    ADD CONSTRAINT [SD_TargetTable_6f675e5ba33c4641889f7ad1c05f3be1] DEFAULT 0 FOR [TaskTypeID];

IF EXISTS (SELECT TOP 1 1 
           FROM   [dbo].[TargetTable])
    BEGIN
        SET IDENTITY_INSERT [dbo].[tmp_ms_xx_TargetTable] ON;
        INSERT INTO [dbo].[tmp_ms_xx_TargetTable] ([Id], [Column2], [Column3], [Column4])
        SELECT   [Id],
                 [SchedulerID],
                 [Issuer],
                 [Details],
                 [TaskMessage],
                 [Duration],
                 [StopMessage]
        FROM     [dbo].[TargetTable]
        ORDER BY [Id] ASC;
        SET IDENTITY_INSERT [dbo].[tmp_ms_xx_TargetTable] OFF;
    END

ALTER TABLE [dbo].[tmp_ms_xx_TargetTable] DROP CONSTRAINT [SD_TargetTable_6f675e5ba33c4641889f7ad1c05f3be1];

DROP TABLE [dbo].[TargetTable];

EXECUTE sp_rename N'[dbo].[tmp_ms_xx_TargetTable]', N'TargetTable';

EXECUTE sp_rename N'[dbo].[tmp_ms_xx_constraint_PK_TargetTable]', N'PK_TargetTable', N'OBJECT';

COMMIT TRANSACTION;

I don't know how to avoid generation of the code:

ALTER TABLE [dbo].[TargetTable DROP CONSTRAINT ; 

Is it some bug? I know that the default constraint in source table should have a name, but now it is to late for that. Any ideas how to solve this?


AlwaysOn High Availability

$
0
0

Hi,

I have configured AlwaysON HighAvailabilty features for one of the database on my environment. When I do manual failover to secondary (replica)node. Post manual failover, application will not be able to connect through Availability Group Listeners name.

Should I take any extra care before/after doing failover. Help me to sort the issue.

Thanks

Raghu

Error: Specified cast is not valid. (SqlManagerUI)

$
0
0

My environment is:

Operating System: Windows 7 Pro (32bit), Finnish

I use Virtual PC including in Windows 7

Operating system in Virtual PC: Windows Server 2008 Standard.

SQL Sever 2008 R2

Under SQL Server Management Studio,

I have a database backup file created by different user in same environment (Virtual PC + Windows Server2008 + SQL Server 2008 R2)

When I try to restore a Database from backup file I get following message:

TITLE: Microsoft SQL Server Management Studio
------------------------------

Specified cast is not valid. (SqlManagerUI)

------------------------------
BUTTONS:

OK
------------------------------

What I made wrong ?

 

 

Powershell script to check SQL 2012 AlwaysOn before patching

$
0
0

In our environment, we are running Microsoft Systems Operations Manager for patching. I'm looking for powershell script to check my SQL 2012 AlwaysOn status before kicking of the patches. Here is a senario:

I have three node cluster (A,B,C) with multi subnet cluster. A and B is in Primary DC and C is in DR DC. Currently, A is a primary replica and B,C are secondary replicas. Here is a patching schedule:

3RD Weekend of the month:

2am – A

4am – B

From this schedule, it would cause SQL 2012 AlwaysOn rollover twice and we don't want that. What we really want is to have a powershell script to check and patch the 2nd Replica (B) then patch primary replica(A). In this senario, it would cause AlwaysOn to rollover only once.

Please help.

Thanks,

KongDBA


Cannot connect to failover instance via AG listener in Azure

$
0
0

Hi,

I have 2 SQL nodes participating in Availability Group in Azure.Both the nodes are in same subnet and are in synchronous commit mode.To enable client connectivity, I created an AG Listener and was able to connect with the primary active replica via Availability Listener.

But as soon as I failover to the new node, client is not able to connect  to the new Primary active replica.To debug the issue I tried to connect the SQL node using SSMS, I am receiving error "No network path found........". As soon as i failover back to the old node.I am able to connect via listener.

Can somebody tell me How the listener actually works and why it is not able to point to the fail-over node.

Thanks

Manish

SQL Server login errors, SQL Always On

$
0
0

We recently set up a SQL Server 2012 Always On cluster.

Now we are receiving the following login error randomly throughout the day:

Login failed for user 'S-1-9-3-1964395612-1151207475-2536745398-1881170461.'. Reason: Could not find a login matching the name provided. [CLIENT: X.X.X.X]

I can't find any reason for this, in fact the same application that throws the error will usually load with just a refresh of the web page. This error is usually followed by:

The client was unable to reuse a session with SPID XXX, which had been reset for connection pooling. The failure ID is 5. This error may have been caused by an earlier operation failing. Check the error logs for failed operations immediately before this error message.

In the SQL Error logs I also see:

Error 18456, Severity 14, State 8
Error 18056, Severity 14, State 5

They seem to be related, but I can't pin down the exact cause for the error. All of the apps specify the database name in the connection string and have the correct username and password.

I did find something very similar to the problem we're seeing posted here:

http://connect.microsoft.com/SQLServer/feedback/details/772069/login-failure-with-connection-pooling-in-contained-db-after-connection-has-added-contained-user

According to this article it's a bug, but I haven't really been able to verify that. Plus if it was reported almost a year ago why wouldn't have already been fixed?

The error seems to occur at random and only when I am using the database user that has been "converted" to a contained user. I have other databases that are not part of the cluster and they seem to be 100% free of this error. In every case we've tracked so far the application throwing the error can be re-launched/refreshed and the error goes away.

Can anyone help me resolve this issue?

Thanks,

Eric

2012 SQL analysis services no clustered disks error

$
0
0

I'm trying to put set up the first node of a cluster and when I have "analysis services" checked, I get the error "no clustered disks available."  We have a 1GB quorum, and 3 TB Clustered Shared Volume that is owned by the node that I'm trying to do the install.  We are planning on using SMB for all the database files.

When I run Get-ClusterSharedVolume, it returns Cluster Disk 2 and state is online.

Thanks.



Scalable shared databases VS Active secondary replicas

$
0
0

Hi-

I'm trying to wrap my head around the differences between scalable shared databases vs Active secondary replicas in SQL 2012. Can anyone point out the pros vs cons for each of these solutions?

Here is what I'm trying to accomplish. We've a massive database (~ 10 TB page compressed) and we'd like this data to be available for multiple instances without duplicating this data. Scalable shared databases is one solution, but I see all the literature for SQL2012 pushing towards Active secondaries and I'm not sure about the differences between them.

Also, we need to use SIMPLE recovery model for our databases, we cannot afford FULL recovery mode. What are my options?

Thanks,
Saptagiri

SQL Server 2012 Load Balancing

$
0
0

Hi,

Is it possible to create an Active/Active SQL server 2012 cluster using built-in SQL and Windows Server 2012 tools?

If not , what are our alternatives


Regards

Viewing all 4689 articles
Browse latest View live




Latest Images