I tried to set hard on sharedv4_mount_options
.
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: sc-px-auto-medium
provisioner: pxd.portworx.com
allowVolumeExpansion: true
parameters:
io_profile: "auto"
repl: "3"
priority_io: "medium"
sharedv4_mount_options: "actimeo=60,proto=tcp,retrans=2,hard,timeo=600,vers=3.0"
The volume created using this StorageClass would be set to both soft (default value) and hard.
root@kf2-0a-sv005:~# kubectl exec -n kube-system px-cluster-77b55e68-a3d6-4ecb-a23a-3c9425cfb7a1-j4mhd -- /opt/pwx/bin/pxctl volume inspect 950034661210170857
Defaulted container "portworx" out of: portworx, csi-node-driver-registrar
Volume : 950034661210170857
Name : pvc-1c885a6b-0a62-4359-bba5-266364dbe1b7
Size : 200 GiB
Format : ext4
HA : 3
IO Priority : MEDIUM
Creation time : Nov 22 05:52:25 UTC 2022
Shared : v4
Status : up
State : Attached: 567afddc-38c0-4073-b716-316e2187fa00 (172.31.0.8)
Last Attached : Nov 22 05:52:29 UTC 2022
Device Path : /dev/pxd/pxd950034661210170857
Labels : csi.storage.k8s.io/pv/name=pvc-1c885a6b-0a62-4359-bba5-266364dbe1b7,csi.storage.k8s.io/pvc/name=diobench-data-pvc,namespace=default,repl=3,csi.storage.k8s.io/pvc/namespace=default,io_profile=auto,priority_io=medium,pvc=diobench-data-pvc,sharedv4_mount_options=actimeo=60,proto=tcp,retrans=2,hard,timeo=600,vers=3.0
Mount Options : discard
Sharedv4 Client Mount Options : vers=3.0,actimeo=60,hard,proto=tcp,retrans=2,soft,timeo=600
Reads : 70
Reads MS : 58
Bytes Read : 491520
Writes : 2274
Writes MS : 11340
Bytes Written : 2344960000
IOs in progress : 0
Bytes used : 6.2 MiB
Replica sets on nodes:
Set 0
Node : 172.31.0.8 (Pool fe08965e-4fe2-47fb-8602-f0bb80f4846b )
Node : 172.31.0.7 (Pool 51859fed-eb04-42b8-b19a-63defce5e8d2 )
Node : 172.31.0.9 (Pool d5cb1924-2093-44e1-86a2-a958f46c4eec )
Replication Status : Up
Volume consumers :
- Name : diobench-58c47f68cf-vshvg (f814239d-ed77-4864-b8fb-b8607a99a2b8) (Pod)
Namespace : default
Running on : kf2-0a-sv008
Controlled by : diobench-58c47f68cf (ReplicaSet)