carina icon indicating copy to clipboard operation
carina copied to clipboard

宿主机重启导致vg卷处于未激活状态

Open antmoveh opened this issue 1 year ago • 0 comments

What happened:

What you expected to happen:

How to reproduce it:

Anything else we need to know?:

Environment:

  • CSI Driver version:
  • Kubernetes version (use kubectl version):
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

节点上存在挂载的Carina创建的lvm存储卷,并且挂载到容器内中使用,此时将宿主机重启,Pod无法启动,存储卷无法挂载成功

  1. 此时进入carina-node容器内,执行vgs vgdisplay指令可用观察到vg卷处于未激活状态
  2. 执行vgchange -ay vg-name 即可激活,此次存储卷恢复正常
  3. 优化建议,在carina-node启动时检查宿主机上vg卷是否激活,未激活情况下执行激活指令

antmoveh avatar Apr 13 '23 05:04 antmoveh