-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xDisk and xDiskAccessPath: Add -UseLargeFRS option for Format-Volume #122
Comments
Hi @codykonior - this sounds like a pretty great feature and shouldn't be too difficult to add. The biggest risk with using FSUtil to pull the "Bytes Per FileRecord Segment" label is localized. @johlju - I don't suppose you have a Swedish version of Windows Server 2012 R2 running that you can execute this command on to see if the labels are localized? I'm also not sure if this would work on Nano Server, so I'll need to check on this. If all the above are fine then this should be able to implemented pretty easily. Thank you for providing the great info BTW! |
I think I have one in my lab at home - I will check when I get home. |
Windows Server 2012 R2 Swedish:
|
I thought that Swedish is not a big language, and most Swedish companies run the English version except on some Citrix deployments where Swedish might be used. Windows Server 2012 R2 Spanish:
So this might be the same for Chinese, Arabic, etc. |
Awesome! Thanks @johlju for looking this up. This doesn't rule out using Are we sure none of this information is surfaced anywhere else? CIM, registry, through .NET Framework calls? |
The order of these could potentially work for languages that reads from left to right. But languages that read from right to left might show this differently. Not sure. As you says, it’s very risky. But maybe you could use the localization to find the correct string to read/search for. I googled quickly while I was testing this but couldn’t find any other method. But that was a really fast search. I was surprised there is no other way to find this. Fsutil must find this somehow, but maybe it’s not information that’s found in .Net Framework. |
Thanks for having a bit of a look around at this @johlju - I suspect that this could be something that is read straight out of the disk/volume information on the disk. So it might be possible to read the disk volume information and decode it - but this isn't something I'd want to do. There is one other possible solution: do not evaluate this parameter in the |
@PlagueHO Yes, reasonably if Yet another option would be to use the above method to evaluate the property in Also, it should only check this for NTFS disks since ReFS does not have this property.
|
Details of the scenario you tried and the problem that is occurring:
When formatting drives (and mount points) for SQL Server a common best practice is to use a Format-Volume parameter -UseLargeFRS. Can this be added as an option on the resource?
The DSC configuration that is using the resource (as detailed as possible):
xDisk and xDiskAccessPath.
Version of the Operating System and PowerShell the DSC Target Node is running:
N/A
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
N/A
Other
I'm not sure if this is important for you but this is only for NTFS formats on Windows Server 2012 and above. You can't check the current status of a disk over WMI/CIM but you can check it locally with fsutil.
The text was updated successfully, but these errors were encountered: