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

HA Cluster and memory allocation

$
0
0

I am trying to find some information regarding the following scenario but am struggling..so any help greatly appreciated. If you have two SQL nodes in an active/active cluster. Node A has 256GB RAM and hosts a Database with no memory reservation set in SQL. Node B also has 256GB and is hosting a SQL Database with RAM set to a max of 128GB. If node B fails and the smaller Database needs to fail over to Node A, will this work? Will SQL reallocate memory nicely on node A or will failover be denied?

Cheers


Monitoring AlwaysOn HA setup with HyperV

$
0
0

Hi friends.

I have configured AlwaysOn HA setup with HyperV environments without shared disk and using quorum voting in file share witness.

1. I want to monitor AlwaysOn HA setup and AO Group database on daily basis.

2. To configure email alerts for proactive monitoring if unusual events occur.

Please provide suggestions and scripts for monitoring in that AO setup as well as AO group database 

Thanks

Availability Groups and Sql 2014 Std edition?

$
0
0

I always read that in sql 2014 Availability groups are only available in the Enterprise or BI editions.  Accepted but today I installed sql 2014 Standard and found a folder (in SSMS) called  "Always On High Availability". Please clarify which editions of Sql 2014 support Availability groups?

TIA,

edm2

scaleout technologies for higly transactional online application system

$
0
0

Hi Export,

I have few questions and need enterprise level solutions.

1. what are the technologies available in Microsoft stack for  higlly transactional online application system. assume this application available online business and more than million of connections are connected to the application.

2  how to do session load are balance what type of , load balancer  systems use.

3 in SQL Server level what kind of HA solutions would offered to this.

  assume connections are need to distributed among servers depend on the load of the server. ex if SQL server A got 50k users, SQL Server B got 1.5M connections, SQL Server C got 1.7M connections. therefore connections need to allocated round robin Patten among servers 

regards

ashwan

Secondary Replica have two MDF files

$
0
0

Hi, I'm a junior DBA. I have a problem now, I'm using SQL server 2012 enterprise.

I have two windows servers with sql server. I have configured always between these servers,


Now my problem is in primary server every database have one MDF file one and one LDF file. But in secondary server I can see two mdf files.

IE:
In Primary Db
db name : mydb,
db files : mydb.mdf and mydb_log.ldf.

in secondary:
db name : mydb,
db files : mydb.mdf, MYDB_DATA.mdf and mydb_log.ldf.

My question is how this MYDB_DATA.mdf came?

Urgent: Ask your advice!

$
0
0
Hi all,

We have SQl 2012 always on configured on 4 nodes (2 physical and 2 virtual) on a different subnet
only one instance.  somehow, cluster failovered quite often.  always point to
physical node lost connection to virutal nodes.  got event 1135 and 1177.
we changed CrossSubnetThreshold: 20 and SameSubnetThreshold: 10
Do you have SQL 2012 always set on a cluster which involves physical and virtual nodes? any issues?
we checked network team and mentioned no connection issue.  but, in the cluster log, it mentioned that
lost packets.

Can anyone share and advise?

Thank you for your help

AlwaysOn failover cluster and active sessions failover senario

$
0
0

Hi Expert,
I need a advice.
1. in alwasON fail over cluster, Once fail over to secondary replica, what will happen to connected session in primary node? can the session fail over to secondary seamlessly or need to re-login. what happen committed transactions which has not write to disk.
2. Assume I have always on cluster with three nodes, if primary fails, how second node make write/ read mode.
3. after fail over done to 2nd secondary node what mode in production(readonly or read write).
4. how to rollback to production primary ,will change data in secondary will get updated in primary

regards
ashwan

one server principal and DB principal gets broken after failover

$
0
0

Hi All,

All other databases/principals are fine, somehow every time failover will break one mapping for a particular database, the database does exists in the alwayson availability group.

Any Ideas?


Estimate database restore time

$
0
0

Hi, I have 2 sql servers with alwayson. In my secondary replica I need to move one database from one drive to another drive.
So my plan is
1.Suspend data movement
2.remove database from secondary replica
3.remove database from Primary replica
4.Drop the DB from secondary
5.Take a full and log backup from primary
6.Restore with no recovery it in secondary( it's named instance)
7.Add to alwayson
Now my team ask how much time will take to restore (for getting downtime).
In primary, the db size - 15gb.
So is there any way to calcute restore time, before restore it?
And also guide me to done this

Estimate database restore time

$
0
0

Hi, I have 2 servers <g class="gr_ gr_54 gr-alert gr_gramm Punctuation multiReplace" data-gr-id="54" id="54">with .</g> In my secondary I need to move one database from one drive to another drive.
So my plan is
1.Suspend data movement
2.remove <g class="gr_ gr_58 gr-alert gr_gramm Grammar only-ins doubleReplace replaceWithoutSep" data-gr-id="58" id="58">database</g> from <g class="gr_ gr_59 gr-alert gr_gramm Grammar only-ins replaceWithoutSep" data-gr-id="59" id="59">secondary</g> replica
3.remove <g class="gr_ gr_57 gr-alert gr_gramm Grammar only-ins doubleReplace replaceWithoutSep" data-gr-id="57" id="57">database</g> from Primary replica
4.Drop the DB from secondary
5.Take a full and log backup from primary
6.Restore with no recovery it in secondary( it's named instance)
7.Add to <g class="gr_ gr_60 gr-alert gr_spell ContextualSpelling ins-del multiReplace" data-gr-id="60" id="60">alwayson</g>
Now my team ask how much time will take to restore (for getting downtime).
In primary, the size - 15gb.
So is there any way to restore time, before it?
And also guide me to done this

<g class="gr_ gr_55 gr-alert gr_spell ContextualSpelling" data-gr-id="55" id="55">sqlalwaysonreplica</g> <g class="gr_ gr_56 gr-alert gr_spell ContextualSpelling" data-gr-id="56" id="56">dbcalcuterestore</g>


SQL restore "The log or differential backup cannot be restored because no files are ready to rollforward"

$
0
0

I missed the ability to restore based on a time (10/23 6pm) due to our purge cycle in our production environment, but I was able to obtain the 10/18 full backup, the 10/23 differential backup, and the 4, 10/23 trans. log backups.  I moved all the fore mentioned files to a staging environment, and now I am trying to restore all of the files to 10/23 6pm and I get "The log or differential backup cannot be restored because no files are ready to rollforward" error

Thanks in advance for any help!


John Chendorain

Need to change replica role from unknown to primary

$
0
0

Hi,

We just had to rebuild our listeners and AG groups.

Everything is now synching correctly and appears to be fine...when I recieved this message in an eamil:

There is currently no Replica defined as an ONLINE PRIMARY for the following Availability Group: 
eVips


Same message for our other AG group.

I can't find any info on this error and everything appears to working fine. I checked the config on the groups and it looks correct. 

I know that this needs to say primary and not 'unknown' for the role.

How can I change without rebuilding everything?

 


qeqw

AlwaysOn High Availability Recommended Architecture

$
0
0

Hi All,

   I have this Scenario where:

Primary Data Center

         (1)Primary replica: DB1(ACTIVE) andDB2(ACTIVE) | DB3(PASSIVE) DB4(PASSIVE) using synchronous-commit

         (2)Primary replica: DB1(PASSIVE) andDB2 (PASSIVE) | DB3(ACTIVE) DB4(ACTIVE) using synchronous-commit 

Disaster Recovery Data Center

         (1)Secondary replica: DB1(PASSIVE)DB2 (PASSIVE), DB3(PASSIVE), DB4(PASSIVE)using asynchronous-commit

 

Will there be any issue with this kind of setup for alwayson availabilit group?

Thanks in Advance,

Qanna

            


AG Database in Reverting / In Recovery State

$
0
0

Hi,

We have an issue with a 3 node SQL 2012 Always on availability group. Normal operation is node 1 (primary replica) with node 2 and node 3 as secondary replicas.

After some patching, SQL wasn't running on node 1 hence the AG flipped over to node 2. This went unnoticed for some time and the transaction log for one of the AG databases became full on node 2 and node 3. (I think this is because it couldn't commit the transactions on node 1 so couldn't truncate it's t-log?) The DB is using synchronous replication btw.

So I started SQL on node 1 and flipped the AG back to node 1 (with a data loss warning but I accepted this).

Now the issue is that on node 2 and 3, the DB in question is stuck in a "Reverting / In Recovery" State. I've tried various commands such as ALTER DATABASE SET ONLINE, RESTORE DATABASE WITH RECOVERY etc but these fail stating unable to obtain a lock on the DB.

The weird thing is that on node 1 the state of the DB is "synchronised".

Does anyone know how to resolve this issue on node 2 and 3? I've left them overnight (in case they were rolling back transactions, the DB is fairly large) but nothing seems to have happened.

I'm thinking the only solution might be to remove the DB from the AG in node 2 and 3 and add it back in again, ie recreate the replication?

Many Thanks,

Phil

SQL always on

$
0
0

Hello

i am preparing for always on with multiple instant .

is there any consideration with multiple instant ?

with each instant shall i create new availability group ? 

Need help please


MCP MCSA MCSE MCT MCTS CCNA


Multiple Instances and AlwaysOn Availability Groups

$
0
0

Hi,

I have 2 SQL Servers: A & B
Each has 2 instances and each instance is part of an database AlwaysOn Availability Group

Server A - instance 1, AlwaysOn Group1 & instance2, AlwaysOn Grroup2
Server B- instance 1, AlwaysOn Group 1 & instance2, AlwaysOn Grroup2

I configured 2 AlwaysOn groups, which worked for a brief amount of time:

Server A - had instance 1 (primary) and instance 2 (secondary)
Server B - had instance 1 (secondary) and instance 2 (primary)

However after a few minutes, Server A instance 1 (secondary) changed to the not synchronized state and I'm struggling to add Server A instance 1 as a replica in AlwaysOnGroup1

Can someone tell me if I'm doing something wrong? Can I have 2 instances participating in separate AlwaysOn Database Availability Groups on the same server?

I'm wondering maybe the configuration is failing because one server holds a primary and the other a secondary - perhaps each server should hold only a primary or secondary?

Thanks

How to fix the error in my database?

$
0
0

Hi,

 

I have a database. I can attach it to SQL Server with Management Studio and perform query on the tables. But when I run the following commands:

 

ALTER DATABASE UFDATA_008_2013 SET SINGLE_USER;

DBCC CHECKDB('UFDATA_008_2013',  REPAIR_REBUILD);

 

I will get the following errors:

 

Msg 8921Level 16State 1Line # 3

Check terminated. A failure was detected while collecting facts. Possibly tempdb out of space or a system table is inconsistent. Check previous errors.

Msg 605Level 21State 3Line # 3

Attempt to fetch logical page (1:209549) in database 6 failed. It belongs to allocation unit 72057600521535488 not to 281474979397632.

 

I then try with the following commands by switch to emergency mode and invoke checkdb with REPAIR_ALLOW_DATA_LOSS, but still get the above error messages:

 

ALTER DATABASE UFDATA_008_2013 SET EMERGENCY;

ALTER DATABASE UFDATA_008_2013 SET SINGLE_USER;

DBCC CHECKDB('UFDATA_008_2013',  REPAIR_ALLOW_DATA_LOSS);

ALTER DATABASE UFDATA_008_2013 SET MULTI_USER;

 

How to fix the problem? I do NOT have a backup of the database.

 

Thank you very much.

Trying to re-create MSDB. Can't Start SQLServer using Trace flag 3608

$
0
0

Hi Guys,

I need an advise regarding MSDB re-creation.

this week we've experienced an electric problem causing forced shutdown to the SQL server.

after the server started, I noticed that the MSDB is in SUSPECT mode.

I read from several Forums on how to recover this state and since I don't have DB backup and would like to avoid uninstall & reinstall the SQL server. there was a suggestion for start the SQL server via SQLServr.exe using Trace flag 3608, which allows me to detach the MSDB and re-create it using the instmsdb.sql

My problem is that when I try to start the SQLServer with the trace flag, I get stuck on meesage :

"Server software Usage Metrics is disabled."

the command I was using is:

"SQLServr.exec -c -T3608 -s MyInstance"

Please advise,

Eli,

SQL 2014 Managed Backup to Azure Smart Admin issues?

$
0
0

I enabled e-mail notifications on our Azure managed backup out

of SQL 2014 with this:


Use msdb

Go

EXEC smart_admin.sp_set_parameter @parameter_name =

'SSMBackup2WANotificationEmailIds', @parameter_value =

'enter_your_email_here'


and it e-mails me every 15 minutes which is driving me nuts, but

I am not familiar with very many SQL commands.


Any idea how to either disable it, or change it to only e-mail

me once every 24 hours?


It sends me this exact e-mail and nothing ever changes...

Smartadmin health check report

Datetime

Instance name

Storage errors

Sql errors

Credential errors

Other errors

Deleted or invalid backup files

Number of backup loops

Number of retention loops

Oct 27 2015 1:15PM

SQL1

0

0

0

0

0

2

2

SQL Always Listener Clarification

$
0
0

Hello,

I am trying to build a DR for a sharepoint 2013 environment. My design consists of 2 SQL (2012 SP2) nodes in the main site and 2 nodes in the DR site and each site a sharepoint farm will be installed

I want to create an always on  availability group consisting of 2 replicas (including the nodes existing on the main site) maintaining the config database and the administration database and another availability group consisting of 2 replicas (including one node on main site and one node on DR site) maintaining the content database.

The issue I am facing that M trying to configure the same listener having the sameVNN name for both availability groups but having different IP and the I am getting the below error.

Is it feasible what M doing  please help me to sort out this issue or an alternative method?

Thanks in advance.

Viewing all 4532 articles
Browse latest View live


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