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

Transaction cross 2 Always on availability groups with asynchronize mode

$
0
0

We have 2 AG each with on DB in it. the mode of the synchronization of those AG is Asynchronize.

What will happen in a case where a transaction crosses the boundary of a database.

Example SP on DB A deletes account records from DB B and inserts account records into DB A– in a single transaction.

what happens in a case of disaster to the copies in the DR site, will they be as it was before the begining of the transaction, or it could be that one DB will have half a trasaction commited on it?


Cross-DB transaction and Always on

$
0
0
   

I want to implement Always on from 1 primary server to a DR site on maby DBs, the AG will be one for each DB, and the synchronization mode for most of the AG will be synchronized. Failover will be done manually, and will always include all the DBs. we will never have some DBs active in one site, and others in the other site.

If a disaster will happen, in order to return to the primary, we are not expecting to use the auto recover of the mirror, but recreate the DB.

We have some cross-DBs transactions. My question is what will be if a disaster will happen in a middle of a cross DB transaction, will the transaction end or will rollback in both DBs, or could I find the DBs in a partial data lost situation. (meaning in one DB the command which was part of the transaction will end, and in the other will not exists).

I saw this article http://msdn.microsoft.com/en-us/library/ms366279(v=sql.110).aspx which worries me.

I have 2 scenarios:

1. Always on with synchronize mode on 2 seperate AG, both on the same server, replicas are to the same server, no automatic failover, when failover one AG, we fail over the other one as well. Each AG on one DB(i.e. DB A is under AG_A, DB B is under AG_B), I have a cross-database transaction. Can I be sure that the transaction will be on the same state on both replicas in the DR site, if a disaster happens in the middle of the cross DB transaction?

2. As above, but asynchronize mode. Will it keep the same state of the transaction on both replicas? will it help if I will have one AG to cover both DBs (when the mode is asynchronized)?

SSIS 2008 R2 in Cluster. Error

$
0
0

Hi guys

I need some help from you.

Sql 2008 R2 clusteer with 2 instances (VS are Virtual Names):

VS1/InstanceA

VS2/InstanceB

The cluster works fine without issues.

Problem:

I have configured the SS Integration Services in the cluster belonging to the VS2/Instance group.

I successfully connect to SSIS (from SQL Management Studio) by using the VS2 virtual name, but when I try to open the MSDB folder I get the error: Failed to retrieve... The SQL Server instance specified.... (A log error message).

Could you help me?

Thanks

SQL Server 2005 High Availability and Disaster Recovery options

$
0
0

Hi, We are are working on a High Availability & Disaster Recovery Planning solution for an application database which is on SQL Server 2005. What different options have we got to implement this for SQL Server 2005 and after we have everything setup how do we test the failover is working?

Thanks in advance.........


Ione

Database in recovery

$
0
0

Our server ran out of disk space during a stored procedure process. We were able to free up some space, stopped all SQL services, restarted all SQL services and now SQL Management Studio shows the database to be in recovery.  Is there a way to monitor this to ensure progress is being made and to estimate when it might complete?

 

License for backup testing server

$
0
0

I'd like to set up a system to test all our database backups. My plan is a dedicated server that would cycle through our backups and test them by restoring and running dbcc checkdb etc. It would raise an email alert if there was a problem. The server would not be serving up data to anyone.

We have several spare SQL licenses from our developers' MSDN subscriptions. Would an MSDN license cover this server or does this count as a production server? (I thought of the Express edition but some of our databases are too big.) Please advise. Thanks.

Mirroring Contained Database

$
0
0

I am using SQL Server 2012 and trying to configure database mirroring on a contained database. I have configured mirroring on other databases in the same environment without issue, but when I try to configure it on the contained database I get the following error.

Alter failed for Database ‘X’. (Microsoft.SqlServer.Smo)

Property DefaultLanguageName is not available for Database ‘[X]’. This property may not exist for this object or may not be retrievable due to insufficient access rights.

I am in the sysadmin role and have verified that  'contained database authentication' is turned on for both the principal and the mirror. What am I missing?


~M

How to fix:Availability replica is disconnected.

$
0
0

Hello,

I searched on MSDN,

  • Check if the port is conflicting, and if so, change the port number. Checked,the port is right. and firewall is disbled on both server.

  • Check the database mirroring endpoint configuration for the instances of the primary and secondary replica and update the mismatched configuration.Checked ,the configuraion should be right.

But my  replica still can not connect to alwayon.

What other should I check?


Always On second node security logins issue

$
0
0

Hello All,

I posted this in the CRM forums and haven't received any responses. It is really a SQL issue anyway. I am trying to configure an availability group for a new CRM 2013 environment.  I have a problem when trying to create the CRM groups security logins on the second SQL node. 

Here is the step from the technet installation guide (http://technet.microsoft.com/en-us/library/jj822357.aspx):

Start SQL Server Management Studio and connect to the secondary SQL Server replica (CRMNode2).

Expand the Security node, right-click Logins and then click New Login.

In the Login name box, click Search, make sure that Groups is included in the Select this object type (if not click Object Types and add it). Type DomainName\PrivReportingGroup, click Check Names, and when the name resolves correctly, click OK.

Click the User Mapping page and select the MSCRM_CONFIG database and all the OrganizationName_MSCRM databases, and then click OK on the Login - New dialog box to close and save the new login.

Repeat steps 2 through 4 for the following security groups.

ReportingGroup

SQLAccessGroup

When click on User Mapping I get the following error:

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

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

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

The target database ('Orgname_MSCRM') is in an availability group and is currently accessible for connections when the application intent is set to read only. For more information about application intent, see SQL Server Books Online. (Microsoft SQL Server, Error: 978)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=11.00.3339&EvtSrc=MSSQLServer&EvtID=978&LinkId=20476

Any help would be greatly appreciated.

Thanks

SQL Always On Database Availability Groups - Design Questions

$
0
0

Hi,

 I'm looking at setting up a 2 node AlwaysON database availability group using SQL EE and Windows 2012 WMware virtual machines as shown below:

sql01 - 2 NICs, 3 disks, 100 GB total storage
sql02 - 2 NICs, 3 disks, 100 GB total storage

I'm planning on performing the installation using the following settings:-

Mixed mode authentication (as my app uses SQL authentication)
The same domain service accounts on both servers

I have 3 questions on the setup:

1. I was going to use 2 different NICs, one for storage traffic and one for the cluster\client connections, however because I'm using a VM which sees all of the storage as local disk (i.e. I'm not using guest based ISCI), am I right in thinking that using 2 NICs on the VM is pointless?

2. When creating an AlwaysOn Database Availability Group there's an option to use a file share and specify that share for syncing of the availability replicas. Am I right in thinking that this replication is only used for the initial file sync? Or is it used continuously thereafter?

3. I'm planning on using a witness share for quorum purposes - how big does this share need to be? Presumably less than 100mb?

Thanks

Log shipping configuration from Sql 2008 R2 Enterprise to 2012 Standard

$
0
0

Hi,

My environment in DR sql version sql 2008 R2 (Enterprise edition)

Production :sql 2012 (Standard edition)


I want to configure logshipping from sql 2008 R2 enterprise to 2012 standard

is it possible configure the logshipping...?

Thanks in advance...



How to protect (take backups) SQL 2014 AAG databases from DPM 2012 R2 with RU2

$
0
0

We have just upgraded / replaced our SQL Server plattform in the following way:

SQL Servers:

  1. 3 Servers running Windows 2008 R2 + SQL Server 2012 CU9
  2. Upgraded to SQL 2014 so the system databases were up to the latest level
  3. Removed all AlwaysOn AAG, destroyed cluster etc
  4. Then total reinstall of all servers with Windows 2012 R2 + fresh install of SQL 2014
  5. Replaced the fresh system databases with the old upgraded databases
  6. Upgraded SQL 2014 With CU2
  7. Re-setup a New cluster and AlwaysOn. All SQL Servers are running fine

DPM 2012 R2 With RU2:

  1. Removed all previous backups of both AAG, Bare Metal etc related to the old servers.
  2. Uninstall the DPM agents 
  3. Reinstalled agents after the 3 new serves where ready
  4. Added Bare Metal backup. Works fine.
  5. Added SQL Server backup of databases not part of any AAGs. Works fine.
  6. Then comes the problem: I try to add protection of the new AAG's in DPM. I can see the new cluster and the AAG's, but when I try expand each Group, nothing shows up. It takes around 20 sec or so after I try to expand.

Any clue about what can be wrong?

Per

SQL 2000 Server Instance - what objects stored on the file system

$
0
0
For SQL Server 2000, what objects and/or metadata are stored on the file system (if any) such that they can be backed up to tape from the file system and restored in the event of disaster?  For example, where are DTS packages stored?  How about log files?  When it comes to protecting objects such as server-level logins, I'm aware of need to script or otherwise document everything.  Again, just concerned with potential file system stuff for now.  Thanks.

SharePoint Database Run out Space in a AlwaysOn Availability Group

$
0
0

I have a situation where I have two servers in SQL Server 2012 R2 AlwaysOn Availability Group. One is primary and the other one being secondary.  I am only running SharePoint Database on it.

Problem:  I have run out of space on the primary server and about to run out of space at the secondary server.  I have tried shrinking database transaction log files, but it returns an error that it cannot be shrunk as the database is in the AlwaysOn Availability Group.

Questions:

1.  Several forums suggest that databases need to taken out of AlwaysOn Availability Group in order for the shrinking to work properply?  is that correct?  if so, what is procedure, I would appreciate step by step guidance.  Thanks.

2.  Would it have any impact on the database if it is taken out of availability group and then added back?

Error setting up AG between 1 primary and 2 secondaries

$
0
0

Setting up AlwaysOn AG from Primary to 2 secondary replicas. Both async.

Primary to replica1 works fine and completed setup.
Primary to replica2 gives below errors.

On primary (LABSVR6)
--------------
A connection timeout has occurred while attempting to establish a connection to availability replica 'LABSVR8' with id [99F3037B-D00A-4421-AA3E-0E1FEAD28CDA]. Either a networking or firewall issue exists, or the endpoint address provided for the replica is not the database mirroring endpoint of the host server instance.


On Replica2 (LABSVR8)
--------------
A connection timeout has occurred while attempting to establish a connection to availability replica 'LABSVR6' with id [B3F0C0F0-3742-4607-89F7-88197334E802]. Either a networking or firewall issue exists, or the endpoint address provided for the replica is not the database mirroring endpoint of the host server instance.

And when trying to join manually through Management Studio, it says:

Failed to join the instance 'LABSVR8' to the availability group 'SQLAG'. (Microsoft.SqlServer.Management.SDK.TaskForms)
Failed to join local availability replica to availability group 'SQLAG'.  The operation encountered SQL Server error 41106 and has been rolled back.  Check the SQL Server error log for more details.  When the cause of the error has been resolved, retry the ALTER AVAILABILITY GROUP JOIN command. (Microsoft SQL Server, Error: 41158)

Both using same domain service account for startup - which is anyways added with SYSADMIN.
Primary to replica1 is working fine.
Primary to replica2 is having above problem when joining.

Any suggestions?

TIA


Database in Suspended Mode

$
0
0
Hi,

I faced this problem suddenly when i was trying some indexes on a local dummy table(using 'sa' user id) on DB COSMOS. After working around indexes i saved the file and closed Query Analyzer. On relogging again with 'sa' user Id i faced the following problem "A connection was successfully established but then an error occured during the login process.(provider : Shared Memory Provider, error:0 - No process is on the other end of the pipe.) "

Then i logged in with Windows Authentication account. however i couldnt access DB COSMOS as it was put in Suspended Mode. On checking the event viewer i found below error

"SQL Server detected a logical consistency-based I/O error: incorrect checksum (expected: 0xb42e9a1f; actual: 0xb45a9f73). It occurred during a read of page (2:0) in database ID 7 at offset 0000000000000000 in file 'E:\COSMIC\COSMOS_log.ldf'.  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."

Well how the above error can be repaired. There are no backups of this db. I cannot run DBCC CHECKDB command for COSMOS as the same has been suspended.

Please give me the solution to above problem.

Thanks

Active/Active Cluster SQL Server 2008 R2 connectivity problems

$
0
0

Hi,

We have a 2 node Actice/Active Cluster as described here:

SqlServer Instance 1 = MSSQLSERVER

SqlServer Instance 2 = Instance2

As we know when we want to connect to the second instance, our web.config files in Application Servers must be changed to something likeIP\Instance2 or DNS\Instance2 which is too difficult for us to do.

The question is that is there any other way to connect to the Active/Active cluster?


How do i switch databases between sql server availability groups

$
0
0

Hello All,

How do i switch databases between sql server availability groups i have 2 availability groups and 4 servers 2 servers in each data center.

How do i switch databases between AG Groups few are primary on one server and few on another server do i need to backup and restore it separately?

Any Help ?  

Log shipping configuration without network share

$
0
0

Hi,

I need to configure log shipping in sql 2008R2 server. During the set up, the primary server is not able to add the backup file to the secondary server and it is throwing error. I am not able to configure log shipping without adding network share. Any idea on how this can be achieved?

Design Examples for SQL Server HA

$
0
0

Hi All,

We are presently planning to design a HA Environment in our company for Business Continuity. Can anyone share their experience / Server Implementation.

Thanks

Viewing all 4532 articles
Browse latest View live


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