File Server Role on WFCS 2-node, with single CSV - keep getting errors?

caustic meatloaf

Ars Legatus Legionis
13,859
Subscriptor
So, this seems to be happening more regularly - Basically, I check the health of the WFCS cluster, and on the CSV, the server is telling me I need to run CHKDSK to repair some volume errors. Why does this keep happening? Is there anything I can do to reduce or or eliminate this? When we were running on an old Netapp with a CIFS share, never had any kind of problem with volume errors or anything like that - I had assumed that a HA WFCS cluster hosting a file share would have behaved similarly.
 

ZPrime

Ars Legatus Legionis
18,847
Subscriptor++
the CSV is a specific volume on our Pure flash array that's attached to both VMs as an RDM disk on a shared SCSI bus in VMWare, so that WFCS sees it as a valid clusterable disk. As far as I can see, there haven't been any failovers that would have caused these issues.

Why would you not just map the LUN directly from the storage to the VM?

Per VMWare, (using an RDM) "Encapsulating disk information in a file allows vCenter Server to lock the LUN so that only one virtual machine can write to it at a time."
A CSV has its own locking / arbitration methods built in. If this RDM (sorry, I'm not super familiar with VMWare so I haven't used these) is affecting the locking on the LUN, that's going to be a problem.
 

caustic meatloaf

Ars Legatus Legionis
13,859
Subscriptor
I originally tried doing that, but It doesn't seem like VMWare allows that to work.

What I did, that worked, is 1)create volume on the pure array, 2)connect that volume to the ESX host group, 3)re-scan storage in VMWare, and then 4)edit settings on the VM, add RDM disk, and select the pointer that appears automatically in the list.


When I originally tried just attaching it to the VMs themselves, VMWare didn't find it as a disk that could be added - I had to add it to the hosts, and then it would see it as an RDM disk.

I do have iSCSI bus shared, multi-write, and WFCS itself will migrate the role from one node to the next, and only allow the volume to be "seen" and read/writeable by one node at a time- the active node. IF I log onto the secondary node, I don't see that disk since that role is not active on that node.
 

ZPrime

Ars Legatus Legionis
18,847
Subscriptor++
OK, let me make sure things are clear here.

You're using the term "CSV" - do you mean an actual Microsoft Cluster Shared Volume, disk formatted in CSVFS rather than NTFS (they're basically the same internally, but my point still stands)?

Or are you just using CSV as shorthand for "a disk accessible to the cluster"?

I ask because a proper CSV is always accessible to all nodes in the cluster. In Disk Management, it will show "Reserved" when a particular node is not the owner, but in normal CSV setups, the CSVs are all mounted under c:\ClusterStorage\xxx and are accessible by all nodes simultaneously, both read and write. The original intent was for Hyper-V clusters, and each cluster node generally has direct read/write access to the VHDXs associated with the VMs it is running, even if a particular node is not the "owner" of the CSV.

I believe MS has now expanded the usage of CSVs and is allowing it for file servers and SQL, but I don't have any direct experience with either of those scenarios. I do have a 7-node, 5-volume CSV-based 2016 Cluster running Hyper-V though. ;)

If you are truly using a CSV, and all of your nodes aren't able to simultaneously mount and R/W the CSV, that's a Big Problem(TM).
 

ZPrime

Ars Legatus Legionis
18,847
Subscriptor++
[url=http:/civis/viewtopic.php?p=36549403#p36549403:9sbbttut said:
caustic meatloaf[/url]":9sbbttut]
CSV in this case - an NTFS formatted, RDM attached volume that fails over between the two nodes.

What OS are your (virtualized) nodes running, 2016, 2012R2... older? (I should've asked this at the beginning, because MS Clustering has changed significantly over the years, especially in 2012 through 2016.)

In Disk Management, in the table at the top, the (shared) volume you are calling a "CSV" - the "File System" is listed as "NTFS"? Or is it actually CSVFS?

On Server 2012 and up, CSVFS volumes exist (which are still just NTFS or ReFS inside, but Windows calls them CSVFS throughout the UI) for "scale out file system" cluster duties, and a CSVFS volume is visible for regular file access, on all nodes. They don't map to drive letters like in the past, the CSVs get mounted under C:\ClusterStorage\[volname] and are simultaneously read/write to all nodes in the cluster. The various nodes will talk directly to the storage independent of each other, but one node is always the "coordinator" or "owner" of the disk resource (even though most of the time it doesn't do a whole lot and the nodes are just speaking straight to storage). This is a drastic change from how shared-storage clusters used to work in the Server 2000-2003 days... I think 2008/08R2 were more similar to 2k3, and this "everybody can yell at the storage all the time" thing is new in 2012, but don't hold me to that.

So again, if this is the type of cluster you have setup, but for some reason the nature of RDM volumes prevents the proper multi-node simultaneous access from happening (due to its own locking scheme?)... you're gonna have a bad time, at least as far as Windows thinks. But normally I would think that would also fail to "validate" when setting up the cluster or adding the volume to the cluster; you're not supposed to be able to get into a situation like that with a shared-storage disk that doesn't support the proper features.

If you just have a standard "plain old file share" cluster though... then you probably don't have a "real" Cluster Shared Volume at all (per Microsoft's definition), because CSVFS is for "Scale Out File Servers" or for VMs.

I'm just trying to wrap my head around what exactly you're dealing with before making educated guesses at problem source. ;)
 

caustic meatloaf

Ars Legatus Legionis
13,859
Subscriptor
[url=http:/civis/viewtopic.php?p=36549403#p36549403:23gobh0e said:
caustic meatloaf[/url]":23gobh0e]
CSV in this case - an NTFS formatted, RDM attached volume that fails over between the two nodes.

What OS are your (virtualized) nodes running, 2016, 2012R2... older? (I should've asked this at the beginning, because MS Clustering has changed significantly over the years, especially in 2012 through 2016.)

In Disk Management, in the table at the top, the (shared) volume you are calling a "CSV" - the "File System" is listed as "NTFS"? Or is it actually CSVFS?

On Server 2012 and up, CSVFS volumes exist (which are still just NTFS or ReFS inside, but Windows calls them CSVFS throughout the UI) for "scale out file system" cluster duties, and a CSVFS volume is visible for regular file access, on all nodes. They don't map to drive letters like in the past, the CSVs get mounted under C:\ClusterStorage\[volname] and are simultaneously read/write to all nodes in the cluster. The various nodes will talk directly to the storage independent of each other, but one node is always the "coordinator" or "owner" of the disk resource (even though most of the time it doesn't do a whole lot and the nodes are just speaking straight to storage). This is a drastic change from how shared-storage clusters used to work in the Server 2000-2003 days... I think 2008/08R2 were more similar to 2k3, and this "everybody can yell at the storage all the time" thing is new in 2012, but don't hold me to that.

So again, if this is the type of cluster you have setup, but for some reason the nature of RDM volumes prevents the proper multi-node simultaneous access from happening (due to its own locking scheme?)... you're gonna have a bad time, at least as far as Windows thinks. But normally I would think that would also fail to "validate" when setting up the cluster or adding the volume to the cluster; you're not supposed to be able to get into a situation like that with a shared-storage disk that doesn't support the proper features.

If you just have a standard "plain old file share" cluster though... then you probably don't have a "real" Cluster Shared Volume at all (per Microsoft's definition), because CSVFS is for "Scale Out File Servers" or for VMs.

I'm just trying to wrap my head around what exactly you're dealing with before making educated guesses at problem source. ;)

Both boxes are running 2016, and under Disk Management, the shared drive is definitely showing as NFTS formatted. It's actually mapped to a drive letter, just like if it was a plain old VMDK disk. In WFCS, it pops up under Storage >> disks as Cluster Disk 1, GPT partition style. Node 1 is the owner, and I can navigate through that disk as E: in file explorer just like normal. On Node 2, it appears under Disk Manager, but does not appear under File Explorer as a navigable drive.

In VMWare, disk compatibility mode is physical, sharing is multi-writer. Same settings on the other node's VMWare disk settings for this disk. No validation issues when I originally created the cluster - it detected the disk perfectly fine (once I'd added it to both boxes, and also allowed the alternate box to manage it via Server Manager).

I'll see if I can whip up a paint diagram tonight :)
 

ZPrime

Ars Legatus Legionis
18,847
Subscriptor++
[url=http:/civis/viewtopic.php?p=36553361#p36553361:24rvhyyn said:
Dilbert[/url]":24rvhyyn]
I know this won't help you but DFS is best for HA file services.

Indeed. WSFC (windows scaleout file cluster? I always saw it as "SOFS" - scale out file server/service... but who knows with microsoft) is meant more to be a "Backend" than anything.

But it seems like what the bitter, bitter meatloaf is doing is akin to the old-school Server2000 / 2003 shared disk file server. These days, this setup is more of a PITA than anything (especially when you're virtualized) and I'd also highly recommend just running DFS instead... but I'm guessing that's not an option due to capacity? Single shared volume is easier on your SAN than two copies of all the files (as you'd have with DFS)... unless your SAN is deduping all of it I guess?