-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are differences in sparse files of PVC clones on different operating systems #572
Comments
After my testing, CentOS Stream 8 and CentOS Stream 9 are normal, and Ubuntu 22 and Debian 12 are also the same as CentOS 7The following is the process of cloning and copying sparse files using CentOS Stream 8 and CentOS Stream 9 centos stream 8[root@host1 csi-hostpath-data]# du -sh ./*
[root@host1 csi-hostpath-data]# kubectl get pvc centos stream 9[root@host1 ~]# cd /var/lib/csi-hostpath-data/
[root@host1 csi-hostpath-data]# kubectl get pvc |
csi-hostpath version: v1.15.0 |
v1.15.0 version : When I clone PVC, if the source PVC data is large, I will not copy sparse files on CentOS 7, but the entire PVC data. Here is my operation record
[root@host1 csi-hostpath-data]# du -sh ./*
13G ./30ddc477-9b4e-11ef-8bac-426f9cf00e68
4.0K ./state.json
[root@host1 csi-hostpath-data]# kubectl get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
kubevirt-centos7-compress-init-host1.rongqin.edu Bound pvc-69756e7c-2ed3-4146-8d00-c0a4ec2655cd 40Gi RWX host1.rongqin.edu 6m9s
[root@host1 csi-hostpath-data]# cat <<EOF | kubectl apply -f -
[root@host1 csi-hostpath-data]# kubectl get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
kubevirt-centos7-compress-init-host1.rongqin.edu Bound pvc-69756e7c-2ed3-4146-8d00-c0a4ec2655cd 40Gi RWX host1.rongqin.edu 6m18s
test Pending host1.rongqin.edu 1s
[root@host1 csi-hostpath-data]# du -sh ./*
290M ./0f91de54-9b4f-11ef-8bac-426f9cf00e68
13G ./30ddc477-9b4e-11ef-8bac-426f9cf00e68
4.0K ./state.json
[root@host1 csi-hostpath-data]# du -sh ./*
858M ./0f91de54-9b4f-11ef-8bac-426f9cf00e68
13G ./30ddc477-9b4e-11ef-8bac-426f9cf00e68
4.0K ./state.json
[root@host1 csi-hostpath-data]# du -sh ./*
1.4G ./0f91de54-9b4f-11ef-8bac-426f9cf00e68
13G ./30ddc477-9b4e-11ef-8bac-426f9cf00e68
4.0K ./state.json
[root@host1 csi-hostpath-data]# kubectl describe pvc test
Name: test
Namespace: default
....................
Events:
Type Reason Age From Message
Warning ProvisioningFailed 8s host1.rongqin.edu_csi-hostpathplugin-host1-0_7fb228c5-4d0c-412d-a8a4-6a6336185068 failed to provision volume with StorageClass "host1.rongqin.edu": rpc error: code = DeadlineExceeded desc = context deadline exceeded
Normal Provisioning 7s (x2 over 18s) host1.rongqin.edu_csi-hostpathplugin-host1-0_7fb228c5-4d0c-412d-a8a4-6a6336185068 External provisioner is provisioning volume for claim "default/test"
Normal ExternalProvisioning 1s (x4 over 18s) persistentvolume-controller waiting for a volume to be created, either by external provisioner "host1.rongqin.edu" or manually created by system administrator
[root@host1 csi-hostpath-data]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
[root@host1 csi-hostpath-data]# uname -a
Linux host1.rongqin.edu 6.9.7-1.el7.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 27 10:58:15 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: