创建 cinder 卷时在 Controller 中执行 multipath -f 命令出错。
==============基础设施配置=================
[Openstack Controller01] <----------> [日立 SAN 存储(FC)]
=========================================================
===============cinder-volume.log(摘要)===============
copy_image_to_volume:异常(81247ms)链式异常#1回溯(最近一次调用最后一次):文件“/openstack/venvs/cinder-27.1.0/lib/python3.10/site-packages/cinder/volume/driver.py”,第 532 行,在 _detach_volume Connector.disconnect_volume(attach_info ['conn'] ['data'],文件“/openstack/venvs/cinder-27.1.0/lib/python3.10/site-packages/os_brick/utils.py”,第 185 行,在 trace_logging_wrapper 中结果 = f(* args,** kwargs)文件“/openstack/venvs/cinder-27.1.0/lib/python3.10/site-packages/os_brick/initiator/connectors/base.py”,第 78 行,在内部返回 f(* args, **kwargs)文件“/openstack/venvs/cinder-27.1.0/lib/python3.10/site-packages/os_brick/utils.py”,第 387 行,在 change_encrypted res = func(**call_args)文件“/openstack/venvs/cinder-27.1.0/lib/python3.10/site-packages/os_brick/initiator/connectors/fibre_channel.py”,第 392 行,在 disconnect_volume 中提高 exc # 类型:忽略 os_brick.exception.ExceptionChainer:链式异常 #1 回溯(最近一次调用最后一次):文件“/openstack/venvs/cinder-27.1.0/lib/python3.10/site-packages/os_brick/initiator/connectors/fibre_channel.py”,第 372 行,在 disconnect_volume 中self._linuxscsi.flush_multipath_device(mpath_path)文件“/openstack/venvs/cinder-27.1.0/lib/python3.10/site-packages/os_brick/initiator/linuxscsi.py”,第 383 行,在 flush_multipath_device 中 self._execute('multipath','-f',device_map_name,run_as_root = True,文件“/openstack/venvs/cinder-27.1.0/lib/python3.10/site-packages/os_brick/executor.py”,第 55 行,在 _execute 中 result = self.__execute(*args,**kwargs)文件“/openstack/venvs/cinder-27.1.0/lib/python3.10/site-packages/os_brick/privileged/rootwrap.py”,第 172 行,在执行返回中execute_root(*cmd,**kwargs) 文件“/openstack/venvs/cinder-27.1.0/lib/python3.10/site-packages/oslo_privsep/priv_context.py”,第 271 行,在 _wrap 中返回 self.channel.remote_call(name,args,kwargs,文件“/openstack/venvs/cinder-27.1.0/lib/python3.10/site-packages/oslo_privsep/daemon.py”,第 215 行,在 remote_call 中引发 exc_type(*result[2]) oslo_concurrency.processutils.ProcessExecutionError:运行命令时出现意外错误。 命令:multipath -f /dev/disk/by-id/dm-uuid-mpath-360060e802132f400506032f400000018 退出代码:1 Stdout:'' Stderr:'3043.060840 | 360060e802132f400506032f400000018-part2:map in use\n'
=============================================================
当我使用 lsblk 检查时,似乎无法删除多路径,因为创建的卷包含 lvm 信息。
===============lsblk 信息========= 名称 MAJ:MIN RM 大小 RO 类型 MOUNTPOINTS
loop0 7:0 0 111.9M 1 循环 /snap/lxd/24322
loop1 7:1 0 63.5M 1 循环 /snap/core20/2015
loop2 7:2 0 40.9M 1 循环 /snap/snapd/20290
sda 8:0 0 893.3G 0 磁盘
─sda1 8:1 0 512M 0部分
/启动/efi
└─sda2 8:2 0 892.7G 0 部分 /
nbd0 43:0 0 0B 0 磁盘
nbd1 43:32 0 0B 0 磁盘
nbd2 43:64 0 0B 0 磁盘
nbd3 43:96 0 0B 0 磁盘
nbd4 43:128 0 0B 0 磁盘
nbd5 43:160 0 0B 0 磁盘
nbd6 43:192 0 0B 0 磁盘
nbd7 43:224 0 0B 0 磁盘
360060e802132f400506032f400000018 253:0 0 41G 0 mpath ═─360060e802132f400506032f400000018-part1 253:1 0 1G 0 部分 └─360060e802132f400506032f400000018-part2 253:2 0 36G 0 部分
─vg_main-lv_root 253:3 0 32G 0 lvm
└─vg_main-lv_swap 253:4 0 4G 0 lvm
nbd8 43:256 0 0B 0 磁盘
nbd9 43:288 0 0B 0 磁盘
nbd10 43:320 0 0B 0 磁盘
nbd11 43:352 0 0B 0 磁盘
nbd12 43:384 0 0B 0 磁盘
nbd13 43:416 0 0B 0 磁盘
nbd14 43:448 0 0B 0 磁盘
nbd15 43:480 0 0B 0 磁盘
======================================================================
我想询问是否有办法创建没有 lvm 信息的 cinder 卷。
感谢您的帮助