We run MariaDB 10.4.8 with the parameter datadir as network resource (UNC-Path)
Our configuration:
---------------------------------------------------------------------
|
[mysqld]
|
datadir = //STA-WS001/MariaDBData/Data
|
port = 3306
|
innodb_buffer_pool_size = 2033M
|
character-set-server = utf8
|
[client]
|
port = 3306
|
plugin-dir = C:/Program Files/MariaDB 10.4/lib/plugin
|
---------------------------------------------------------------------
|
The mariadb-error-log shows the following entries as soon a new InnoDB-table is created ("CREATE TABLE ..."):
2019-12-09 16:20:30 36 [ERROR] InnoDB: Operating system error number 3 in a file operation.
|
2019-12-09 16:20:30 36 [ERROR] InnoDB: The error means the system cannot find the path specified.
|
2019-12-09 16:20:30 36 [ERROR] InnoDB: File \\.\\\STA-WS001\MariaDBData: 'CreateFile()' returned OS error 203.
|
If we set "innodb_file_per_table = OFF" the problem is not showing up.
{"report":{"fcp":945.5,"ttfb":308.39999985694885,"pageVisibility":"visible","entityId":81029,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"1675d198-6d34-4f51-9505-702ce82420ad","navigationType":0,"readyForUser":1029.5999999046326,"redirectCount":0,"resourceLoadedEnd":677.1999998092651,"resourceLoadedStart":315.89999985694885,"resourceTiming":[{"duration":45.700000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":315.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":315.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":361.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":45.89999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":316.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":316.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":362.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":173.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":316.39999985694885,"connectEnd":316.39999985694885,"connectStart":316.39999985694885,"domainLookupEnd":316.39999985694885,"domainLookupStart":316.39999985694885,"fetchStart":316.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":365.69999980926514,"responseEnd":490.2999999523163,"responseStart":380.89999985694885,"secureConnectionStart":316.39999985694885},{"duration":302.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":316.59999990463257,"connectEnd":364.7999999523163,"connectStart":364.7999999523163,"domainLookupEnd":364.7999999523163,"domainLookupStart":364.7999999523163,"fetchStart":316.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":365,"responseEnd":619.5,"responseStart":378.69999980926514,"secureConnectionStart":364.7999999523163},{"duration":62.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":316.7999999523163,"connectEnd":316.7999999523163,"connectStart":316.7999999523163,"domainLookupEnd":316.7999999523163,"domainLookupStart":316.7999999523163,"fetchStart":316.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":366.19999980926514,"responseEnd":379.69999980926514,"responseStart":378.09999990463257,"secureConnectionStart":316.7999999523163},{"duration":63.799999952316284,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":317,"connectEnd":317,"connectStart":317,"domainLookupEnd":317,"domainLookupStart":317,"fetchStart":317,"redirectEnd":0,"redirectStart":0,"requestStart":367.59999990463257,"responseEnd":380.7999999523163,"responseStart":379.89999985694885,"secureConnectionStart":317},{"duration":67.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":317.19999980926514,"connectEnd":317.19999980926514,"connectStart":317.19999980926514,"domainLookupEnd":317.19999980926514,"domainLookupStart":317.19999980926514,"fetchStart":317.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":368.69999980926514,"responseEnd":385,"responseStart":384.19999980926514,"secureConnectionStart":317.19999980926514},{"duration":49.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":317.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":317.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":367.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":70,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":317.59999990463257,"connectEnd":317.59999990463257,"connectStart":317.59999990463257,"domainLookupEnd":317.59999990463257,"domainLookupStart":317.59999990463257,"fetchStart":317.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":369.7999999523163,"responseEnd":387.59999990463257,"responseStart":386.39999985694885,"secureConnectionStart":317.59999990463257},{"duration":51.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":317.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":317.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":369.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":75.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":317.89999985694885,"connectEnd":317.89999985694885,"connectStart":317.89999985694885,"domainLookupEnd":317.89999985694885,"domainLookupStart":317.89999985694885,"fetchStart":317.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":373.59999990463257,"responseEnd":393.19999980926514,"responseStart":390.69999980926514,"secureConnectionStart":317.89999985694885},{"duration":353.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":322,"connectEnd":322,"connectStart":322,"domainLookupEnd":322,"domainLookupStart":322,"fetchStart":322,"redirectEnd":0,"redirectStart":0,"requestStart":506.69999980926514,"responseEnd":675.7999999523163,"responseStart":670.5999999046326,"secureConnectionStart":322},{"duration":351,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":326.19999980926514,"connectEnd":326.19999980926514,"connectStart":326.19999980926514,"domainLookupEnd":326.19999980926514,"domainLookupStart":326.19999980926514,"fetchStart":326.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":509.7999999523163,"responseEnd":677.1999998092651,"responseStart":671.3999998569489,"secureConnectionStart":326.19999980926514},{"duration":125.70000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":622.8999998569489,"connectEnd":622.8999998569489,"connectStart":622.8999998569489,"domainLookupEnd":622.8999998569489,"domainLookupStart":622.8999998569489,"fetchStart":622.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":714.6999998092651,"responseEnd":748.5999999046326,"responseStart":747.8999998569489,"secureConnectionStart":622.8999998569489}],"fetchStart":0,"domainLookupStart":55,"domainLookupEnd":109,"connectStart":109,"connectEnd":128,"secureConnectionStart":117,"requestStart":128,"responseStart":308,"responseEnd":326,"domLoading":312,"domInteractive":1096,"domContentLoadedEventStart":1096,"domContentLoadedEventEnd":1156,"domComplete":2465,"loadEventStart":2465,"loadEventEnd":2465,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1067.5},{"name":"bigPipe.sidebar-id.end","time":1068.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1068.3999998569489},{"name":"bigPipe.activity-panel-pipe-id.end","time":1070.5999999046326},{"name":"activityTabFullyLoaded","time":1173.3999998569489}],"measures":[],"correlationId":"6604cd2161390a","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":107,"dbReadsTimeInMs":9,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
An easy workaround seem to be to create a symbolic link (with mklink) pointing to the UNC path, and use it as datadir.
Can you attach the full error log , please? Just for my curiosity, why would you use remote SMB pathfor the database? That seems a lot of network and SMB overhead, for every IO