SQL cluster questions

Status
Not open for further replies.

hawkbox

Ars Legatus Legionis
13,914
Subscriptor
So we're looking at doing a SQL 2014 cluster to replace all of our standalone SQL boxes everywhere, mathematically it makes sense, but I'm running into issues with our environment and my googling hasn't given me a solution I'm fully grasping or comfortable with.

So we have

NFS Shared Storage
vSphere 5.5u2
Server 2012R2

We're looking at a 3 node cluster, is there a way I can make this work? It looks to me like NFS is screwing me right now, if necessary I can probably provision an iSCSI target but if realistically possible I'd prefer not too. If necessary I can move up my patching to 6.0 schedule as well, I'm just trying to figure out if these is even a viable option right now.

Thoughts? Details I missed that are needed to give an opinion?
 

hawkbox

Ars Legatus Legionis
13,914
Subscriptor
[url=http:/civis/viewtopic.php?p=30197165#p30197165:39id34ac said:
Arbelac[/url]":39id34ac]If you are doing SQL2014 Enterprise, you could do an AlwaysOn cluster with no shared storage.

There are some 'nothing shared' options with Win2012+ and SQL2012+.

Really now. I haven't seen anything about that in my searching. The plan is a 2014 Enterprise cluster, it's just figuring out what I need to do to make it happen.
 

Arbelac

Ars Tribunus Angusticlavius
7,719
[url=http:/civis/viewtopic.php?p=30197465#p30197465:31h0cw10 said:
hawkbox[/url]":31h0cw10]
[url=http:/civis/viewtopic.php?p=30197165#p30197165:31h0cw10 said:
Arbelac[/url]":31h0cw10]If you are doing SQL2014 Enterprise, you could do an AlwaysOn cluster with no shared storage.

There are some 'nothing shared' options with Win2012+ and SQL2012+.

Really now. I haven't seen anything about that in my searching. The plan is a 2014 Enterprise cluster, it's just figuring out what I need to do to make it happen.

This should get you started:

https://www.mssqltips.com/sqlservertip/ ... d-storage/

I did a bunch of investigation on this for doing SQL HA on cloud offerings.
 

Barmaglot

Ars Legatus Legionis
11,783
Subscriptor
[url=http:/civis/viewtopic.php?p=30197121#p30197121:8dpwr1j1 said:
Sagan :][/url]":8dpwr1j1]If you want full SQL clustering, the only option AFAIK is shared disk, so iSCSI would be the easiest solution. Windows iSCSI is pretty trivial to setup.

Besides AlwaysOn, you can also use SMB3 for shared storage. There are a few caveats - for instance, with a clustered instance, the GUI for backup/restore doesn't work anymore, you have to use T-SQL - but I've been running a two-node SQL 2014 Standard cluster on NetApp SMB3 for over a year now, without significant issues. Cluster failover is noticeably faster than iSCSI, as it doesn't need to offline and online all the LUNs - just shut down the instance on one node and bring it up on the other. Edit: Although in SQL 2014, that last part can also be dealt with by using CSVFS.
 

hawkbox

Ars Legatus Legionis
13,914
Subscriptor
[url=http:/civis/viewtopic.php?p=30197719#p30197719:1j21o57g said:
Barmaglot[/url]":1j21o57g]
[url=http:/civis/viewtopic.php?p=30197121#p30197121:1j21o57g said:
Sagan :][/url]":1j21o57g]If you want full SQL clustering, the only option AFAIK is shared disk, so iSCSI would be the easiest solution. Windows iSCSI is pretty trivial to setup.

Besides AlwaysOn, you can also use SMB3 for shared storage. There are a few caveats - for instance, with a clustered instance, the GUI for backup/restore doesn't work anymore, you have to use T-SQL - but I've been running a two-node SQL 2014 Standard cluster on NetApp SMB3 for over a year now, without significant issues. Cluster failover is noticeably faster than iSCSI, as it doesn't need to offline and online all the LUNs - just shut down the instance on one node and bring it up on the other. Edit: Although in SQL 2014, that last part can also be dealt with by using CSVFS.

That was what I was attempting to build, but it looks like I'm probably up the creek on that. I might have to build a Scale-Out FS to do an SMB configuration for this. It's going to be annoying but I shouldn't have any major trouble making it work.
 

Sagan :]

Ars Legatus Legionis
18,659
Subscriptor
[url=http:/civis/viewtopic.php?p=30197719#p30197719:3mb122ox said:
Barmaglot[/url]":3mb122ox]
[url=http:/civis/viewtopic.php?p=30197121#p30197121:3mb122ox said:
Sagan :][/url]":3mb122ox]If you want full SQL clustering, the only option AFAIK is shared disk, so iSCSI would be the easiest solution. Windows iSCSI is pretty trivial to setup.

Besides AlwaysOn, you can also use SMB3 for shared storage. There are a few caveats - for instance, with a clustered instance, the GUI for backup/restore doesn't work anymore, you have to use T-SQL - but I've been running a two-node SQL 2014 Standard cluster on NetApp SMB3 for over a year now, without significant issues. Cluster failover is noticeably faster than iSCSI, as it doesn't need to offline and online all the LUNs - just shut down the instance on one node and bring it up on the other. Edit: Although in SQL 2014, that last part can also be dealt with by using CSVFS.
Hmm, good to know, we are planning on doing something very similar to hawkbox next year but where going skip cluster and just manually spread out the databases, cluster on SMB3 might be easy enough to build instead...
 

abj

Ars Legatus Legionis
18,700
Subscriptor
[url=http:/civis/viewtopic.php?p=30200019#p30200019:37kj8jdd said:
PaveHawk-[/url]":37kj8jdd]One thing with AAGs, I have a vague recollection that they're not supported with NFS - same as DAGs.

I think it may have been on a call with MS Support, but I'll dig through my emails.
The KB from vmware that I linked above actually says it will work, I just didn't look at the non shared section.
SQL AlwaysOn Availability Group is supported on NFS with SQL 2012 and SQL 2014 in Windows Server 2012 R2 on vSphere 6. But still no NFS DAG support.
 
[url=http:/civis/viewtopic.php?p=30200045#p30200045:k23yb0qy said:
abj21[/url]":k23yb0qy]
[url=http:/civis/viewtopic.php?p=30200019#p30200019:k23yb0qy said:
PaveHawk-[/url]":k23yb0qy]One thing with AAGs, I have a vague recollection that they're not supported with NFS - same as DAGs.

I think it may have been on a call with MS Support, but I'll dig through my emails.
The KB from vmware that I linked above actually says it will work, I just didn't look at the non shared section.
SQL AlwaysOn Availability Group is supported on NFS with SQL 2012 and SQL 2014 in Windows Server 2012 R2 on vSphere 6. But still no NFS DAG support.

Yeah, I saw that - but having had VMware support tell me that Exchange DAG was supported on NFS, it doesn't fill me with confidence even if their own tech articles say otherwise.
 

hawkbox

Ars Legatus Legionis
13,914
Subscriptor
So I'm playing with a general file server cluster right now and damn, either I'm thick or people are misusing the term "No shared storage SMB 3.0 cluster". Cause everything I'm seeing shows that the disks still have to be shared in the background. I'd like to test this out using some local disk mapped to the VMs to see what I can do about the NFS limitation I have but jesus christ it looks like it's not even possible.
 

hawkbox

Ars Legatus Legionis
13,914
Subscriptor
[url=http:/civis/viewtopic.php?p=30224197#p30224197:39y33bkz said:
Barmaglot[/url]":39y33bkz]It requires a shared JBOD DAS as opposed to a full-on SAN array, yes. In Server 2016 you'll be able to do realtime synchronous replication between two separate volumes.

Ok that explains it. Damn people make a lot of assumptions when they talk about this. If I'm buying a shared DAS I might as well buy a proper array, at least I'll get some benefits out of it.
 

hawkbox

Ars Legatus Legionis
13,914
Subscriptor
[url=http:/civis/viewtopic.php?p=30224263#p30224263:1ta7d716 said:
Barmaglot[/url]":1ta7d716]An MD1200/1220/3060 shelf plus a few SAS HBAs is a whole lot cheaper than a 'proper array' though.

Yeah but that basically completely neuters the value of this whole prospect. I suppose if you want to kludge together some kind of lab environment on cheap equipment this would be fine, but when I already have VMware hosts and shared storage I can't see why I would want to entertain this.

I literally don't understand the value proposition here.
 
[url=http:/civis/viewtopic.php?p=30224541#p30224541:3m90pnf1 said:
hawkbox[/url]":3m90pnf1]
[url=http:/civis/viewtopic.php?p=30224263#p30224263:3m90pnf1 said:
Barmaglot[/url]":3m90pnf1]An MD1200/1220/3060 shelf plus a few SAS HBAs is a whole lot cheaper than a 'proper array' though.

Yeah but that basically completely neuters the value of this whole prospect. I suppose if you want to kludge together some kind of lab environment on cheap equipment this would be fine, but when I already have VMware hosts and shared storage I can't see why I would want to entertain this.

I literally don't understand the value proposition here.

JBOD/RAID on each host for local storage to enable AAGs across unshared storage, in order to provide higher performance and availability.

At least, thats my guess what Barmaglot is alluding to.
 

hawkbox

Ars Legatus Legionis
13,914
Subscriptor
[url=http:/civis/viewtopic.php?p=30227087#p30227087:htr7u28u said:
PaveHawk-[/url]":htr7u28u]
[url=http:/civis/viewtopic.php?p=30224541#p30224541:htr7u28u said:
hawkbox[/url]":htr7u28u]
[url=http:/civis/viewtopic.php?p=30224263#p30224263:htr7u28u said:
Barmaglot[/url]":htr7u28u]An MD1200/1220/3060 shelf plus a few SAS HBAs is a whole lot cheaper than a 'proper array' though.

Yeah but that basically completely neuters the value of this whole prospect. I suppose if you want to kludge together some kind of lab environment on cheap equipment this would be fine, but when I already have VMware hosts and shared storage I can't see why I would want to entertain this.

I literally don't understand the value proposition here.

JBOD/RAID on each host for local storage to enable AAGs across unshared storage, in order to provide higher performance and availability.

At least, thats my guess what Barmaglot is alluding to.

I read it as a SAS connector to each host from a shared JBOD, I hope I'm wrong. I'm still trying to figure out how to do a proper SQL cluster without shared shared storage for availability. I didn't think it was this damned hard.
 

Barmaglot

Ars Legatus Legionis
11,783
Subscriptor
[url=http:/civis/viewtopic.php?p=30227959#p30227959:147upqb3 said:
hawkbox[/url]":147upqb3]
I read it as a SAS connector to each host from a shared JBOD, I hope I'm wrong. I'm still trying to figure out how to do a proper SQL cluster without shared shared storage for availability. I didn't think it was this damned hard.

You read it right - here's a design document from Dell:

http://en.community.dell.com/cfs-file/_ ... 00_v1.docx

Without shared storage of some sort, you're stuck with database mirroring (with standard license) or availability groups (with enterprise).
 

hawkbox

Ars Legatus Legionis
13,914
Subscriptor
[url=http:/civis/viewtopic.php?p=30228077#p30228077:3t2wxe1w said:
Barmaglot[/url]":3t2wxe1w]Um, that's because if you're setting up an SQL cluster, then you need shared storage to begin with, unless you're running availability groups with enterprise.

http://blogs.technet.com/b/canitpro/arc ... group.aspx

That's what I want to do. Ok I had found that one and missed the part about not needing it. I think I may have accidentally set this up properly.

Thankfully.

Thanks the sanity check. Now to see if I can get SQL to cooperate.
 

hawkbox

Ars Legatus Legionis
13,914
Subscriptor
[url=http:/civis/viewtopic.php?p=30228249#p30228249:1b8r9jnb said:
Barmaglot[/url]":1b8r9jnb]Keep in mind that when you do windows failover clustering without shared storage (as is in AlwaysOn groups), you need a file share witness to act as quorum.


Already have it. I'm fine with that, I just got lost in the weeds of 800 conflicting examples of how to set this up. If this works fantastic. If not I'll bitch and complain.
 
[url=http:/civis/viewtopic.php?p=30224263#p30224263:1jhrqmu3 said:
Barmaglot[/url]":1jhrqmu3]An MD1200/1220/3060 shelf plus a few SAS HBAs is a whole lot cheaper than a 'proper array' though.


Just to clarify this for those reading- MD1200/1220/3060 is not "shared storage". You cannot connect these to more than 1 host. While they do have dual SAS channels, you cannot connect them to 2 separate hosts.

I think Barmaglot meant hanging these off EACH host, not getting one and connecting several hosts to them.
 

Barmaglot

Ars Legatus Legionis
11,783
Subscriptor
Negative, with Storage Spaces and SAS drives you can connect a single MD1200 to two hosts. They have to be clustered, but that's the only currently available way to achieve HA with Storage Spaces. You can do more than two hosts if the shelves have sufficient ports (I think MD3060e has four, but not sure) or if you use SAS switches (assuming the vendor qualified them, which Dell hasn't, but others have). With Windows Server 2012 R2, you can also get shelf-level redundancy if you have enough shelves (IIRC, two for two-way mirroring, five for three-way mirroring), but they still have to be connected to all the hosts in the cluster. You can also run Hyper-V on the same servers running the storage, turning it into a sort-of hyper-converged infrastructure.
 

abj

Ars Legatus Legionis
18,700
Subscriptor
On a totally unhelpful note I talked to a Nutanix engineer yesterday. They made us watch a marketing presentation before showing us Star Wars, part of the presentation claimed that they were the only hyper converged solution that has official support for SQL and Exchange. When I asked the engineer in the bar after the movie how support works sense they present storage as NFS, he told me for SQL and Exchange the present disks directly to the VMs instead of going through the shared NFS pool.
 

hawkbox

Ars Legatus Legionis
13,914
Subscriptor
[url=http:/civis/viewtopic.php?p=30321949#p30321949:3jv7h3k6 said:
abj21[/url]":3jv7h3k6]On a totally unhelpful note I talked to a Nutanix engineer yesterday. They made us watch a marketing presentation before showing us Star Wars, part of the presentation claimed that they were the only hyper converged solution that has official support for SQL and Exchange. When I asked the engineer in the bar after the movie how support works sense they present storage as NFS, he told me for SQL and Exchange the present disks directly to the VMs instead of going through the shared NFS pool.

I'm curious how that works since the entire point of the NFS pool is to make it seamless across multiple hosts. But amusingly after I got the damned thing working I found some fantastic documentation on how to build exactly what I was doing, but on a Nutanix. Which is close enough in principle to have been very useful to me, at month ago. :facepalm:
 

abj

Ars Legatus Legionis
18,700
Subscriptor
After doing a bit more reading I think I have the wrong idea about Nutanix, I blame the fact that my conversation took place in a bar. But it looks like the Nutanix Storage Fabric as the call it can present storage how ever you like, and the actual config that they have certified now requires Hyper-V and the storage being presented as SMB3, with support for other hypervisors using iSCSI coming real soon now.
 
Status
Not open for further replies.