마구잡

NFS 2/3 버전의 스토리지 클래스 PVC 생성 불가 현상 본문

Kubernetes

NFS 2/3 버전의 스토리지 클래스 PVC 생성 불가 현상

MAGUJOB 2023. 11. 24. 16:59
반응형

개요

NFS CSI 드라이버를 사용하던 클러스터의 볼륨들이 생성이 되지 않고 비정상 동작을 한다.

알고보니 NFS 버전이 낮아진것 ( 모종의 긴 이유가 있지만 생략 )

 

요즘은 대부분 NFS 4 버전을 쓰기때문에 이런 이슈가 벌어질 경우가 없고 심지어 3버전을 사용한다고 해당 이슈가 무조건 발생은 아니라 찾기 힘들었던 이슈였다.

 

이슈

[root@geon-wn1 containerd]# systemctl status rpc-statd.service
● rpc-statd.service - NFS status monitor for NFSv2/3 locking.
   Loaded: loaded (/usr/lib/systemd/system/rpc-statd.service; static; vendor preset: disabled)
   Active: inactive (dead)

 

위 데몬이 inactive인 상태여서 벌어진 이슈

해당 데몬은 nfs3 버전에서 사용되며 볼륨의 충돌이나 복구에 사용된다고 한다. 

 

데몬 재시작

[root@geon-wn1 containerd]# systemctl start rpc-statd.service

[root@geon-wn1 containerd]# systemctl status rpc-statd.service
● rpc-statd.service - NFS status monitor for NFSv2/3 locking.
   Loaded: loaded (/usr/lib/systemd/system/rpc-statd.service; static; vendor preset: disabled)
   Active: active (running) since Fri 2023-11-24 16:58:30 KST; 15s ago
  Process: 3513229 ExecStart=/usr/sbin/rpc.statd (code=exited, status=0/SUCCESS)
 Main PID: 3513230 (rpc.statd)
    Tasks: 1 (limit: 100328)
   Memory: 964.0K
   CGroup: /system.slice/rpc-statd.service
           └─3513230 /usr/sbin/rpc.statd

Nov 24 16:58:30 geon-wn1 systemd[1]: Starting NFS status monitor for NFSv2/3 locking....
Nov 24 16:58:30 geon-wn1 rpc.statd[3513230]: Version 2.3.3 starting
Nov 24 16:58:30 geon-wn1 rpc.statd[3513230]: Flags: TI-RPC
Nov 24 16:58:30 geon-wn1 rpc.statd[3513230]: Initializing NSM state
Nov 24 16:58:30 geon-wn1 systemd[1]: Started NFS status monitor for NFSv2/3 locking..

 

이후 PVC, PV의 상태를 확인한다.

 

 

반응형

'Kubernetes' 카테고리의 다른 글

Kubernetes Binary 설치 - 1  (0) 2024.02.19
Harbor Image Size 체크 스크립트  (0) 2024.01.30
POD 이미지 pull rate limit 늘리기  (2) 2023.11.24
kubelet 데몬 동작  (1) 2023.11.24
containerd 다운그레이드  (3) 2023.11.21