You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
waitForOpBackoffSteps=flag.Int("wait-op-backoff-steps", 100, "Steps for wait for operation backoff")
68
64
waitForOpBackoffCap=flag.Duration("wait-op-backoff-cap", 0, "Cap for wait for operation backoff")
69
65
70
-
enableDeviceInUseCheck=flag.Bool("enable-device-in-use-check-on-node-unstage", true, "If set to true, block NodeUnstageVolume requests until the specified device is not in use")
71
-
deviceInUseTimeout=flag.Duration("device-in-use-timeout", 30*time.Second, "Max time to wait for a device to be unused when attempting to unstage. Exceeding the timeout will cause an unstage request to return success and ignore the device in use check.")
maxConcurrentFormat=flag.Int("max-concurrent-format", 1, "The maximum number of concurrent format exec calls")
75
68
concurrentFormatTimeout=flag.Duration("concurrent-format-timeout", 1*time.Minute, "The maximum duration of a format operation before its concurrency token is released")
76
69
77
-
maxConcurrentFormatAndMount=flag.Int("max-concurrent-format-and-mount", 1, "If set then format and mount operations are serialized on each node. This is stronger than max-concurrent-format as it includes fsck and other mount operations")
78
-
formatAndMountTimeout=flag.Duration("format-and-mount-timeout", 1*time.Minute, "The maximum duration of a format and mount operation before another such operation will be started. Used only if --serialize-format-and-mount")
79
-
fallbackRequisiteZonesFlag=flag.String("fallback-requisite-zones", "", "Comma separated list of requisite zones that will be used if there are not sufficient zones present in requisite topologies when provisioning a disk")
80
-
enableStoragePoolsFlag=flag.Bool("enable-storage-pools", false, "If set to true, the CSI Driver will allow volumes to be provisioned in Storage Pools")
81
-
enableHdHAFlag=flag.Bool("allow-hdha-provisioning", false, "If set to true, will allow the driver to provision Hyperdisk-balanced High Availability disks")
82
-
enableDataCacheFlag=flag.Bool("enable-data-cache", false, "If set to true, the CSI Driver will allow volumes to be provisioned with data cache configuration")
83
-
nodeName=flag.String("node-name", "", "The node this driver is running on")
70
+
maxConcurrentFormatAndMount=flag.Int("max-concurrent-format-and-mount", 1, "If set then format and mount operations are serialized on each node. This is stronger than max-concurrent-format as it includes fsck and other mount operations")
71
+
formatAndMountTimeout=flag.Duration("format-and-mount-timeout", 1*time.Minute, "The maximum duration of a format and mount operation before another such operation will be started. Used only if --serialize-format-and-mount")
72
+
fallbackRequisiteZonesFlag=flag.String("fallback-requisite-zones", "", "Comma separated list of requisite zones that will be used if there are not sufficient zones present in requisite topologies when provisioning a disk")
73
+
enableStoragePoolsFlag=flag.Bool("enable-storage-pools", false, "If set to true, the CSI Driver will allow volumes to be provisioned in Storage Pools")
74
+
enableControllerDataCacheFlag=flag.Bool("enable-controller-data-cache", false, "If set to true, the CSI Driver will allow volumes to be provisioned with data cache configuration")
75
+
enableNodeDataCacheFlag=flag.Bool("enable-node-data-cache", false, "If set to true, the CSI Driver will allow volumes to be provisioned with data cache configuration")
76
+
nodeName=flag.String("node-name", "", "The node this driver is running on")
84
77
85
78
multiZoneVolumeHandleDiskTypesFlag=flag.String("multi-zone-volume-handle-disk-types", "", "Comma separated list of allowed disk types that can use the multi-zone volumeHandle. Used only if --multi-zone-volume-handle-enable")
86
79
multiZoneVolumeHandleEnableFlag=flag.Bool("multi-zone-volume-handle-enable", false, "If set to true, the multi-zone volumeHandle feature will be enabled")
klog.V(2).Infof("Setting up data cache for node %s", nodeName)
381
+
isAlreadyRaided, err:=driver.IsRaided()
382
+
iferr!=nil {
383
+
klog.V(2).Infof("============================== Errored while scanning for available LocalSSDs err:%v; continuing Raiding ==============================", err)
384
+
} elseifisAlreadyRaided {
385
+
klog.V(2).Infof("============================== Local SSDs are already RAIDed. Skipping Datacache setup ==============================")
0 commit comments