Skip to content

Commit

Permalink
Merge pull request #777 from mowangdk/feature/start_hotplugin
Browse files Browse the repository at this point in the history
Start vfhp hotplugin & Fix shared disk yaml
  • Loading branch information
mowangdk committed May 25, 2023
2 parents 190081c + 3c6ab9a commit f4a6b33
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 28 deletions.
3 changes: 2 additions & 1 deletion build/lib/amd64-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ if [ "$run_oss" = "true" ] || [ "$run_disk" = "true" ]; then
fi
# takes 10s
output=`${HOST_CMD} iohub-vfhp-helper -s`
if [[ $str == *"backend support auto vf hotplug."* ]]; then
if [[ $output == *"backend support auto vf hotplug."* ]]; then
echo "backend support auto vf hotplugin"
${HOST_CMD} sudo service iohub-vfhp-helper start
else
echo "backend not support auto vf hotplugin"
Expand Down
3 changes: 2 additions & 1 deletion build/lib/arm64-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ if [ "$run_disk" = "true" ] || [ "$run_oss" = "true" ]; then
fi
# take 10s
output=`${HOST_CMD} iohub-vfhp-helper -s`
if [[ $str == *"backend support auto vf hotplug."* ]]; then
if [[ $output == *"backend support auto vf hotplug."* ]]; then
echo "backend support auto vf hotplugin"
${HOST_CMD} sudo service iohub-vfhp-helper start
else
echo "backend not support auto vf hotplugin"
Expand Down
17 changes: 0 additions & 17 deletions examples/disk/shared-disk/pv.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion examples/disk/shared-disk/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spec:
accessModes:
- ReadWriteMany
volumeMode: Block
storageClassName: csi-disk
storageClassName: alicloud-disk-essd-multi-attach-wait
resources:
requests:
storage: 20Gi
15 changes: 7 additions & 8 deletions examples/disk/shared-disk/storageclass.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
allowVolumeExpansion: true
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: csi-disk
provisioner: diskplugin.csi.alibabacloud.com
name: alicloud-disk-essd-multi-attach-wait
parameters:
zoneId: cn-hangzhou-b
regionId: cn-hangzhou
fsType: ext4
type: san_ssd
readOnly: "false"
reclaimPolicy: Retain
type: cloud_essd
multiAttach: "true"
provisioner: diskplugin.csi.alibabacloud.com
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer

0 comments on commit f4a6b33

Please sign in to comment.