devstack pv丢失,vg存在,cinder-volume无法启动

在启动cinder-volume时遇到错误,发现pv丢失但vg仍然存在。解决方案包括查找vg的元数据配置,通过查看pvs、vgs及vg文件,定位到丢失的loop文件并使用dd命令映射,最后重启cinder-volume服务。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

启动cinder-volume报错:

Jul 22 10:56:28 localhost.localdomain cinder-volume[5678]: DEBUG cinder.utils [None req-4a46ae35-037a-4195-88a1-76bdd69416c8 None None] Failed attempt 5 {
  
  {(pid=5727) _print_stop /opt/stack/cinder/cinder/utils.py:802}}
Jul 22 10:56:28 localhost.localdomain cinder-volume[5678]: DEBUG cinder.utils [None req-4a46ae35-037a-4195-88a1-76bdd69416c8 None None] Have been at this for 31.961 seconds {
  
  {(pid=5727) _print_stop /opt/stack/cinder/cinder/utils.py:804}}
Jul 22 10:56:28 localhost.localdomain cinder-volume[5678]: ERROR cinder.volume.manager [None req-4a46ae35-037a-4195-88a1-76bdd69416c8 None None] Failed to initialize driver.: ProcessExecutionError: Unexpected error while running command.
Jul 22 10:56:28 localhost.localdomain cinder-volume[5678]: Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvchange -a y --yes -K stack-volumes-lvmdriver-1/stack-volumes-lvmdriver-1-pool
Jul 22 10:56:28 localhost.localdomain cinder-volume[5678]: Exit code: 5
Jul 22 10:56:28 localhost.localdomain cinder-volume[5678]: Stdout: u''
Jul 22 10:56:28 localhost.localdomain cinder-volume[5678]: Stderr: u"File descriptor 16 (/dev/urandom) leaked on lvchange invocation. Parent PID 6303: /usr/bin/python\n  WARNING: Device for PV WeE7pV-7sN7-oH2c-F2G0-B34y-zCo5-g5gvsZ not found or rejected by a filter.\n  Couldn't find device with uuid WeE7pV-7sN7-oH2c-F2G0-B34y-zCo5-g5gvsZ.\n  Refusing activation of partial LV stack-volumes-lvmdriver-1/stack-volumes-lvmdriver-1-pool.  Use '--activationmode partial' to override.\n"
Jul 22 10:56:28 localhost.localdomain cinder-volume[5678]: ERROR cinder.volume.manager Traceback (most recent call last):
Jul 22 10:56:28 localhost.localdomain cinder-volume[5678]: ERROR cinder.volume.manager   File "/opt/stack/cinder/cinder/volume/manager.py", line 465, in _init_host
Jul 22 10:56:28 localhost.localdomain cinder-volume[5678]: ERROR cinder.volume.manager     self.driver.check_for_setup_error()
Jul 22 10:56:28 localhost.localdomain cinder-volume[5678]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值