Open
Description
Hi.
I deploy linstor-csi-1.19 (try 1.17 too) in my k8s cluster
Add workers in linstor cluster
root@pve-3:~# linstor n l
╭────────────────────────────────────────────────────────────────╮
┊ Node ┊ NodeType ┊ Addresses ┊ State ┊
╞════════════════════════════════════════════════════════════════╡
┊ aisk8swr01t ┊ SATELLITE ┊ 192.168.129.43:3366 (PLAIN) ┊ Online ┊
┊ aisk8swr02t ┊ SATELLITE ┊ 192.168.129.44:3366 (PLAIN) ┊ Online ┊
┊ aisk8swr03t ┊ SATELLITE ┊ 192.168.129.45:3366 (PLAIN) ┊ Online ┊
┊ pve-1 ┊ SATELLITE ┊ 192.168.129.4:3366 (PLAIN) ┊ Online ┊
┊ pve-2 ┊ SATELLITE ┊ 192.168.129.5:3366 (PLAIN) ┊ Online ┊
┊ pve-3 ┊ SATELLITE ┊ 192.168.129.6:3366 (PLAIN) ┊ Online ┊
╰────────────────────────────────────────────────────────────────╯
I create storage-class and pvc
PVC is created, then I see 'linstor v l' and pvc has status upToDate
root@pve-3:~# linstor v l -r pvc-7815c841-361f-4f7d-8ca1-a7e2dd06fea1
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
┊ Node ┊ Resource ┊ StoragePool ┊ VolNr ┊ MinorNr ┊ DeviceName ┊ Allocated ┊ InUse ┊ State ┊
╞═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╡
┊ pve-1 ┊ pvc-7815c841-361f-4f7d-8ca1-a7e2dd06fea1 ┊ drbdhddpool1 ┊ 0 ┊ 1033 ┊ /dev/drbd1033 ┊ 244 KiB ┊ Unused ┊ UpToDate ┊
┊ pve-2 ┊ pvc-7815c841-361f-4f7d-8ca1-a7e2dd06fea1 ┊ drbdhddpool1 ┊ 0 ┊ 1033 ┊ /dev/drbd1033 ┊ 279 KiB ┊ Unused ┊ UpToDate ┊
┊ pve-3 ┊ pvc-7815c841-361f-4f7d-8ca1-a7e2dd06fea1 ┊ drbdhddpool1 ┊ 0 ┊ 1033 ┊ /dev/drbd1033 ┊ 110 KiB ┊ Unused ┊ UpToDate ┊
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
BUT, i create pod with pvc and i have a problem,
In pods logs i see the following
MountVolume.SetUp failed for volume "pvc-7815c841-361f-4f7d-8ca1-a7e2dd06fea1" : rpc error: code = Internal desc = NodePublishVolume failed for pvc-24f506d3-7ef8-4219-901b-801cab7f6dda: failed to stat source device: stat : no such file or directory
In second pod
Multi-Attach error for volume "pvc-7815c841-361f-4f7d-8ca1-a7e2dd06fea1" Volume is already used by pod(s) nginx-test-1-7c8699d678-972rn
But I also tried to create a pod with 1 replication, the same error with mounting
Status also changed in linstor
root@pve-3:~# linstor v l -r pvc-7815c841-361f-4f7d-8ca1-a7e2dd06fea1
╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
┊ Node ┊ Resource ┊ StoragePool ┊ VolNr ┊ MinorNr ┊ DeviceName ┊ Allocated ┊ InUse ┊ State ┊
╞═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╡
┊ aisk8swr01t ┊ pvc-7815c841-361f-4f7d-8ca1-a7e2dd06fea1 ┊ DfltDisklessStorPool ┊ 0 ┊ 1033 ┊ None ┊ ┊ Unused ┊ Diskless ┊
┊ pve-1 ┊ pvc-7815c841-361f-4f7d-8ca1-a7e2dd06fea1 ┊ drbdhddpool1 ┊ 0 ┊ 1033 ┊ /dev/drbd1033 ┊ 261 KiB ┊ Unused ┊ UpToDate ┊
┊ pve-2 ┊ pvc-7815c841-361f-4f7d-8ca1-a7e2dd06fea1 ┊ drbdhddpool1 ┊ 0 ┊ 1033 ┊ /dev/drbd1033 ┊ 279 KiB ┊ Unused ┊ UpToDate ┊
┊ pve-3 ┊ pvc-7815c841-361f-4f7d-8ca1-a7e2dd06fea1 ┊ drbdhddpool1 ┊ 0 ┊ 1033 ┊ /dev/drbd1033 ┊ 261 KiB ┊ Unused ┊ UpToDate ┊
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
root@pve-3:~# drbdsetup status pvc-7815c841-361f-4f7d-8ca1-a7e2dd06fea1
pvc-773e2201-2ef4-436e-a464-b84dd048e84e role:Secondary
disk:UpToDate
aisk8swr01t connection:Connecting
pve-1 role:Secondary
peer-disk:UpToDate
pve-2 role:Secondary
peer-disk:UpToDate
root@pve-3:~# linstor r l -r pvc-7815c841-361f-4f7d-8ca1-a7e2dd06fea1
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
┊ ResourceName ┊ Node ┊ Port ┊ Usage ┊ Conns ┊ State ┊ CreatedOn ┊
╞═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╡
┊ pvc-7815c841-361f-4f7d-8ca1-a7e2dd06fea1 ┊ aisk8swr01t ┊ 7033 ┊ ┊ ┊ Unknown ┊ ┊
┊ pvc-7815c841-361f-4f7d-8ca1-a7e2dd06fea1 ┊ pve-1 ┊ 7033 ┊ Unused ┊ Connecting(aisk8swr01t) ┊ UpToDate ┊ 2023-05-02 15:11:21 ┊
┊ pvc-7815c841-361f-4f7d-8ca1-a7e2dd06fea1 ┊ pve-2 ┊ 7033 ┊ Unused ┊ Connecting(aisk8swr01t) ┊ UpToDate ┊ 2023-05-02 15:11:01 ┊
┊ pvc-7815c841-361f-4f7d-8ca1-a7e2dd06fea1 ┊ pve-3 ┊ 7033 ┊ Unused ┊ Connecting(aisk8swr01t) ┊ UpToDate ┊ 2023-05-02 15:11:11 ┊
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
my manifests
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: k8s-linstor-hdd
provisioner: linstor.csi.linbit.com
allowVolumeExpansion: true
parameters:
linstor.csi.linbit.com/placementCount: "3"
linstor.csi.linbit.com/storagePool: drbdhddpool1
linstor.csi.linbit.com/resourceGroup: drbdhdd1
DrbdOptions/Disk/disk-flushes: "no"
DrbdOptions/Disk/md-flushes: "no"
DrbdOptions/Net/max-buffers: "8000"
DrbdOptions/Net/max-epoch-size: "8000"
DrbdOptions/Net/sndbuf-size: "2000000"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-test
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: k8s-linstor-hdd
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-test-1
spec:
replicas: 2
selector:
matchLabels:
app: nginx12
template:
metadata:
labels:
app: nginx12
spec:
volumes:
- name: data
persistentVolumeClaim:
claimName: pvc-test
containers:
- image: nginx:1.12
name: nginx
ports:
- containerPort: 80
volumeMounts:
- name: data
mountPath: "/etc/nginx/conf.d/"
Metadata
Assignees
Labels
No labels
Activity