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

Does MS support SQL servers restored from VMWare snapshots?

$
0
0

First, pardon the constant referral to a VMWare product.  Everything else we are running is basically Microsoft...

A very useful feature of VMWare ESXi 4.1 (and earlier versions) is the ability to revert to a previous snapshot in case of problems such as a failed server update.  I had read that Microsoft will not support SQL or Exchange servers that were reverted to from a snapshot because the VMWare snapshot was not VSS-aware.  I have since found that version 4.1is VSS-aware if the conditions below are met.  I have not found any statement on Microsoft's site, however, confirming they support this.  

Can anyone confirm whether or not Microsoft will support the use of VMWare snapshots for SQL and Exchange servers running on VMWare 4.1?  

As mentioned, here are the criteria I had seen for getting a valid snapshot of a SQL or Exchange server:

  • The UUID attribute must be enabled. This is enabled by default on virtual machines created on ESX 4.1 hosts.
  • The virtual machine must use only SCSI disks. For example, application-consistent quiescing is not supported for virtual machines with IDE disks. There must as many free SCSI slots in the virtual machine as the number of disks. For example, if there are 8 SCSI disks on SCSI adapter 1, there are not enough SCSI slots free to perform application quiescing.
  • The virtual machine must not use dynamic disks.

 




Cluster Analysis Services

$
0
0

hi all , 

i have done installing sql server cluster 2014 and i want to add Analysis Service to current instance and i am getting error telling me this is clustered instance and you cant complete the installation .

any idea how to solve this issue /

ok with this design?

$
0
0

SQL2012 AAG contains two nodes.  It does not have Quorum witness (share or disk)configured .  serious wrong with this setup?

Thank you!

Is It Possible to Configure Log Shipping On a CDC Enabled Database?

$
0
0

Hi All,

Is It Possible to Configure Log Shipping On a CDC Enabled Database?

Please Suggest.


Grateful to your time and support. Regards, Shiva

Cluster network interface error in AO setup with HyperV machine

$
0
0

Hi friends.

Two node AO cluster setup.

I found errors frequently in cluster events at  logs as below

"Cluster network interface 'Node1 - 10.X.XXX.1' for cluster node 'Node1' on network 'Cluster Network 1' failed. 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 adapter. Also check for failures in any other network components to which the node is connected such as hubs, switches, or bridges."

How to fix this issues? is it missing any patch OS or cluster side?

Pls. suggest.

Thanks

Adding Logins on the Secondary Nodes

$
0
0

All,

We have an AAG environment. In order for the failover to be transparent we have to ensure that the login that is added in the Primary node is also added to the secondary node. Currently, we are adding the logins to the secondary node manually. Is there a way to automate this process so that a  Login added to the Primary node is automatically updated on the Secondary Node.

Thanks,

rgn

In Transaction Replication, the transactions are not moving from secondary replica to Subscriber When primary replica nodes are down

$
0
0

Hello,

Looking for your help on the Multi-Subnet - SQL Alwayson with transnational Replication setup. 

Bullet Point about environment

  1. Node1 and Node2 are part of VLAN 10.10.XX.XX VLAN
  2. Node3 and Node4 are part of VLAN 10.20.XX.XX VLAN
  3. Using all four nodes, I have configured multi-subnet  windows clustering “WINCLUST01”
  4. Using Node1&2, I've installed SQL clustered instance “2K12AGDB01”, it CANNOT failover to other 2 nodes (node3 & 4)
  5. Using Node3&4, I've installed SQL clustered instance “2K12AGDB02”, it CANNOT failover to other 2 nodes (node1 & 2)
  6. Configured Availability group (Listener) using both the VLAN 10.10 and10.20 (Just to remindIf node1 &2 both are down, after manual fail-over data can be read/written from other two nodes 3 & 4 using listener.)
  7. Setup 4 nodes SQL Clustered Replication instance “SQLRPL” which can failed over to any node for remote Distributor
  8. Have one subscriber server “Node5” (which is on in below table

What has been achieved?

  1. Windows Cluster “WINCLUST01” has been setup and failing over on other sub-net nodes without any error.
  2. Using node1 and node2, SQL Cluster “2K12AGDB01” has been configured successfully and working perfectly fine
  3. Using node3 and node4, SQL Cluster  “2K12AGDB02” has been configured successfully and working perfectly fine
  4. Configured Availability group (Listener) “AvailGroup01” ” has been configured successfully and working perfectly fine
  5. 4 node replication instance “SQLRPL” has been configured and working perfectly fine, it can be failed over to any nodes.
  6. All the linked Server has been configured with SQL “SA” login and test the connection they are working fine perfectly.
  7. Replication has been configured using Primary Replica “2K12AGDB01”
  8. Redirected Mode has been configured using Original primary replica "2K12AGDB01" & listener "AvailGroup01" successfully
  9. Data is moving from original publisher to Subscriber perfectly fine
  10.  After failing over Alwayson to secondary replica SQL Server instance “2K12AGDB02”, inserted data  is reaching to Subscriber server. There is no issue at all

Issues which I have been facing?

  1.  When I open the replication monitor on the primary replica, I am able to see Publication detail in the replication monitor but when I go to secondary replica and open the replication monitor, I can not see anything in the replication monitor. Even if i fail-over the Alwayson to secondary replica, I am not able to see anything into secondary replica replication monitor. Is it a normal behivour?
  2. As I wrote above point number-10 that when I insert data from Secondary Replica (after fail-over of AlwaysOn to secondary replica "2K12AGDB02"), the data is reaching to subscriber "node-5"- at this time original primary replica (2K12AGDB01) is available in ready-only mood. But when I bring down the primary replica instance "2K12AGDB01" (at this time, it is not available even with readonly option), No data is moving from Secondary replica "2K12AGDB02" to Subscriber"node-5"

Does it mean data will be only send from secondary replica to subscriber when primary replica is available?

Note: - I brought down the primary replica and inserted records from secondary replica, it is NOT reaching from secondary replica to subscriber (but the records are reaching to subscriber when primary replica is available as read-only). The most important things that I cannot see any job -  distribution or log reader agent are throwing any error or retrying. 

Please do let me know, if you need additional information to help me on this




Issue restoring a sql 2005 database with full text catalogs to sql 2012

$
0
0

We are trying to restore from a backup (.bak) of a sql 2005 database with full text catologs to sql 2012.

We are getting errors saying that the backup file context are different from what we are trying to restore to, even if we try to create a new database from the backup.

The new database is just a test database. The source is a production database with full cataologs.

The normal restore from a bak file does not seem to work.

We dont need the full text catalogs in the new database, but cannot change settings in the source production database.

Is there a way to take a backup of the sql 2005 database without the full text cataologs being included ? , without changing setting in the source database beforehand ?

Regards

Greg


Domain user permission required to access sql server on windows cluster

$
0
0

hi everyone,

i have successfully created windows cluster on windows 2008r2 Ent edition,and also was able to cluster sql server 2012 Ent edition on it  for two node active/passive cluster using administrator account as normal domain account. i am able to work in sql instance with this domain account as it by default has all the permission in active directory and also on sql server service.
so far so good.Now I want access sql server active node with new domain account that i created in active directory computers and users in my DC machine.I changes the nodes sql server service also on this new account which is sqltest\abc.

I am not able to access sql server with this account althogh I mapped as a login in sql server.what exact permissions i need to access sql server.


srm_2010

Do i need to move system databases?

$
0
0

Currently i have sql server 2008 R2 and i am planning to move to SQL SERVER 2014.

I am planning to do side by side upgrade.

so,

Steps 1:

i made a full backup of user databases on 2008R2, and restored on 2014.

Scripted out Jobs,alerts, operators, and crated on 2014

transfer logins using SP_Help_rev-login (msdn) to 2014

Created database mail, linked servers, Triggers on 2014.

Configured Replication(push- transnational ) on 2014 same as on 2008 R2(X)  ( from server X--Y  and X--Z )

my questions are : 

1.do i still need to backup master and msdb on 2008 R2  and restore on 2014?

2.also i have distributor database on 2008R2(X) , do i have to move the from 2008R2 to 2014?

please let me know 

Thanks in advance

Having trouble with gigantic LDF file

$
0
0

Microsoft SQL Server 2008 R2 on a Small Business Server 2011 Standard edition.

I have a small customer with a large LDF file. The MDF file is 1,5 GB and the LDF file is 97 GB. Heh. Hasn't been backed up (properly) in eight months.

I'm not a database administration expert, but what I did was taking a FULL DB backup, and then tried to shrink the LDF file; it went down to 92 GB.

As far as I know, so far, I need to backup the LDF file, to be able to truncate it, to be able to really shrink it. - Correct?

But if so, there's a new problem, namely, there's really no place to put 92 GB of data. I can transfer 92 GB of data, but I'm not able to map remotely to a folder from this server. (I'm working via Team Viewer.)

Any ideas? :-)

sql 2012 multi site clustering failing over

$
0
0

Hello,

I have setup a WSFC that contains 3 nodes ( node 1,2 belongs to subnet A and  node3 to subnet B), lets say node 1 is the primary host in the wsfc.

each node has their own sql server instance, that i configure an Availabitiy Group that will replicate between node1 and node 3), created an Availability Group Listener that will contain 2 vips for each subnet.

My question here and I am not sure if i missed something when setting up the Avalability Group. If i failover an Availability group from sql server from node 1 subnet a to nde 3 subnet b, then the listener will be on the vip that belongs to subnet b and the primary instance will be the one in node 3, but this wont cause the WSFC to move the primary host from node 1 to node 3.

so at this point dont see what is the dependecy between setting up the AG with WSFC. when fail over an AG doesn cause the primary host in wsfc to fail over as well.

i am hopping if somenoe can guide me on why availabity group relies on WSFC and how can i make it to depend so the primary host moves as well?

Differential backup much larger than my database/Full backup

$
0
0

I have a database that is just over 1.5GB and the Full backup that is 13GB not sure how this is since we have compression on for full backups and my other full backups are much smaller than there respective databases....

Now my full backup is taken every Sunday night and the differentials are taken every 6 hours after the full backup.  

Now I have been thrown into this DBA role with little to no experience just what I have picked up and read. So my understanding of backups are limited but what I think I understand is that we take a full backup and the differential only captures what changes in the database so my question is why is my database 1.5GB but my differential is 15.4GB? I have others database that are on the same instance and don't seem to have this problem. 

I also just noticed that we do not rebuild the index before a full backup like we do on other instances...



Multi site Aalwayson setup with different subnet?

$
0
0

Hi Friends.

OS - Windows 2012 R2 Standard Edition.

DB - SQL 2012 Enterprise edition

Total 3 nodes participates for AO setup, 2 Nodes for Local HA and 1 Node for another datacenter for DR. All the 3 Nodes are same domain name and member.

1. Local First 2 Nodes are same subnet XXX.XX.44.XX

2. DR Node another subnet XXX.XX.128.XX

Does it require to add two different IP address while creating cluster name? Not using shared disk SAN storage etc.. I am using Node majority quorum witness setting for failover. 

Failover Senario with Asynchronous status

$
0
0

hi all

i have availability group with  3 node

2 in prod env and other one in DR

all replica configure with Asynchronous status 

i would like to test fail-over

 first scenario prod env i would like to trying  shutdown primary server and move to replica in prod

i should move to replica prod from cluster service management or from SQL management studio

if i do it from cluster manager do you have power shell script for that

if i do it from SQL management studio i need the command

thx

asaf


I have split a partion but now it doesn't look good, I'm I missing something ?

$
0
0

Hi!

I have a SQL SERVER 2008 R2 with a datawarehouse db with 200 Gb with 2 partitioned tables with milions of records.

I have scripted this db and created a clean db in our lab env with the same structure but without records.

We want to try to split in our lab before going to production. The details are :

The partions are : P2006, P2007, P2008, P2009, P2010, P2011, P2012, P2013 , P2014

Each partion has 1 year except P2014 with year 2014 and year 2015 records.

The partion function is "as range left".

I need to move out (split)  the 2015 records from partion P2014 to a new partion P2015.

What I did is :

ALTER DATABASE MyDB
ADD FILEGROUP FG2015
GO

ALTER DATABASE MyDB
ADD FILE(
    NAME = 'MyLogicalFileName',
    FILENAME = 'C:\MyPhsyicalFile.ndf',
    SIZE = 1.5 GB,
    FILEGROWTH = 25%
)
TO FILEGROUP FG2015
GO

ALTER PARTITION SCHEME ps_DataAnual_dim_date_year
NEXT USED [P2015]
GO

ALTER PARTITION FUNCTION pf_DataAnual_dim_date_year()
SPLIT RANGE (16436)

(id 16346 correspond to 31-dec-2014)

The content of partion function is :

CREATE PARTITION FUNCTION [pf_DataAnual_dim_date_year](int) AS RANGE LEFT FOR VALUES (13514, 13879, 14245, 14610, 14975, 15340, 15706, 16071, 16436)
--GO

The content of partion scheme is :

CREATE PARTITION SCHEME [ps_DataAnual_dim_date_year] AS PARTITION [pf_DataAnual_dim_date_year] TO ([P2006], [P2007], [P2008], [P2009], [P2010], [P2011], [P2012], [P2013], [P2015], [P2014])

It does not look good. The order has been destroyed, please double check, I'm I missing something ?, Is it by design ?

Regards,

Miguel

Alwayson Error/information in errorlog

$
0
0

Hi All,

I found lots of information re AlwaysOn Availability group in errorlog, so complain from end user yet, although those are information only, but I don't see why the database is trying to change roles so often?

2015-11-15 03:10:59.70 spid182s    The availability group database "DatabaseA_SD019" is changing roles from "SECONDARY" to "SECONDARY" because the mirroring session or availability group failed over due to role synchronization. This is an informational message only. No user action is required.

2015-11-15 03:10:59.70 spid171s    State information for database 'DatabaseA_SD002' - Hardended Lsn: '(0:0:0)'    Commit LSN: '(0:0:0)'    Commit Time: 'Jan  1 1900 12:00AM'

2015-11-15 09:09:00.56 spid218s    The availability group database "DatabaseA " is changing roles from "SECONDARY" to "RESOLVING" because the mirroring session or availability group failed over due to role synchronization. This is an informational message only. No user action is required.

2015-11-15 09:09:00.57 spid331s    State information for database 'DatabaseA' - Hardended Lsn: '(24221:7322:1)'    Commit LSN: '(24221:7320:2)'    Commit Time: 'Nov 15 2015  2:08AM'

2015-11-15 09:10:07.07 spid130s    The availability group database "DatabaseA " is changing roles from "RESOLVING" to "SECONDARY" because the mirroring session or availability group failed over due to role synchronization. This is an informational message only. No user action is required.

2015-11-15 09:10:07.07 spid93s     State information for database 'DatabaseA' - Hardended Lsn: '(24221:7322:1)'    Commit LSN: '(24221:7320:2)'    Commit Time: 'Nov 15 2015  2:08AM'

2015-11-15 09:10:11.12 spid190s    AlwaysOn Availability Groups connection with primary database established for secondary database 'DatabaseA' on the availability replica 'SERVER-SSQL-1A\INSTANCE1' with Replica ID: {ae6f87ff-6e47-40e3-a239-7c395a571b16}. This is an informational message only. No user action is required.

I am running on Windows 2012 R2 and SQL Server as:

Microsoft SQL Server 2014 (SP1-CU3) (KB3094221) - 12.0.4427.24 (X64) 
Oct 10 2015 17:18:26 
Copyright (c) Microsoft Corporation
Enterprise Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: )

Cant create share

$
0
0

hi all , 

i have created SQL Cluster 2014 and i want to create shared folder on the Cluster Shared Volume and i am facing the below error : 



Logshipping failed

$
0
0

Dear all,

We have log shipping configured between two servers having SQL 2012 Enterprise editions. Since last few days logshipping failed on secondary server and the database mode also changed please see the below screenshot!

We also checked for these database files existing location drive was full, please let us now how to move the files to another drive.

Is it be possible to move the data and log files to another drive  for the above database modes?

Also kindly let us know how to remove or reconfigure log shipping for the above database modes. We tried to restore the database but getting error message like the drive is full, we also changed data and log file locations but still getting drive full error message.

Regards

K

VMs, availability groups and licensing

$
0
0

If I want to use SQL Server 2014 and availability groups and have a two logical processor vm, four nodes in total, only one being used in anger, I am correct in thinking that I need to license the vm hosting the primary replicas using 2 x 2 logical processors licensing packs ( min processors I can license for is 4 - or so I beleive ? ) and that providing I am not using any of the other instances in anger ( no backups, no report offloading etc ), the other instances only need to be covered by software assurance.

Could someone please confirm whether or not I am correct.

Viewing all 4689 articles
Browse latest View live