配置示例 Sample of static pv. Path is templates/examples/filesystemvolumes/staticpv staticPv: enable: false clusterId: cluster1 clusterMode: true lunName: lun04 snapshots: Sample of static snapshot. snapshot should preprovisioned before staticSnapshot be enabled. Path is templates/examples/snapshots/staticsnapshot staticSnapshot: enable: false clusterId: cluster1 sourceLunName: lu1 snapshotName: s1 (2) 应用配置文件,在charts/csidriverstor下执行更新配置命令。 plaintext [root@k8smaster csidriverstor] helm upgrade stor ./ Release "stor" has been upgraded. Happy Helming! NAME: stor LAST DEPLOYED: Sun Apr 27 11:38:43 2025 NAMESPACE: default STATUS: deployed REVISION: 3 TEST SUITE: None NOTES: The Stor CSI Plugin has been published. The plugin image is: storcsidriver:1.5.1 The Stor Cluster Info is: [ { "clusterID": "stor1", "apiEndPointList": [ " " " ], "storProvider": "HBlock", "csiApiTimeout": 480 }, { "clusterID": "stor2", "apiEndPointList": [ " ], "storProvider": "HBlock", "csiApiTimeout": 480 } ] (3) 验证HBlock CSI是否已经可以正常启用:如果启用的样例成功建立pod,则表示HBlock CSI可以正常启用。如果快照和克隆卷创建成功,说明快照和克隆功能正常。 plaintext [root@k8smaster csidriverstor] kubectl get pod NAME READY STATUS RESTARTS AGE csistorplugincontroller79df7bf49cwr4tb 4/4 Running 0 62m csistorpluginnode4lzr9 2/2 Running 0 62m csistorpluginnodejx95c 2/2 Running 0 62m mycsiappblockdynamic 1/1 Running 0 18m snapshotcontroller0 1/1 Running 0 62m [root@k8smaster csidriverstor]