我正在使用csi-driver-host-path-https://github.com/kubernetes-csi/csi-driver-host-path克隆现有卷。为此,由于我需要将卷置于同一存储类中,因此我使用以下配置创建了其示例存储类csi-hostpath-sc
,
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: csi-hostpath-sc
provisioner: hostpath.csi.k8s.io
reclaimPolicy: Delete
volumeBindingMode: Immediate
allowVolumeExpansion: true
但是当我旋转mssql pod时,我需要克隆它会产生以下错误,
2020-11-06 09:46:34.62 Server Microsoft SQL Server 2017 (RTM-CU22) (KB4577467) - 14.0.3356.20 (X64)
Aug 20 2020 22:33:27
Copyright (C) 2017 Microsoft Corporation
Developer Edition (64-bit) on Linux (Ubuntu 16.04.7 LTS)
2020-11-06 09:46:34.64 Server UTC adjustment: 0:00
2020-11-06 09:46:34.64 Server (c) Microsoft Corporation.
2020-11-06 09:46:34.65 Server All rights reserved.
2020-11-06 09:46:34.66 Server Server process ID is 36.
2020-11-06 09:46:34.66 Server Logging SQL Server messages in file '/var/opt/mssql/log/errorlog'.
2020-11-06 09:46:34.67 Server Registry startup parameters:
-d /var/opt/mssql/data/master.mdf
-l /var/opt/mssql/data/mastlog.ldf
-e /var/opt/mssql/log/errorlog
2020-11-06 09:46:34.68 Server Error: 17113, Severity: 16, State: 1.
2020-11-06 09:46:34.68 Server Error 87(The parameter is incorrect.) occurred while opening file '/var/opt/mssql/data/master.mdf' to obtain configuration information at startup. An invalid startup option might have caused the error. Verify your startup options, and correct or remove them if necessary.
mssql docker映像为mcr.microsoft.com/mssql/server:2017-latest
我使用minikube作为kubernetes集群,还尝试增加内存。
对此需要一些帮助。谢谢