Unable to upgrade host from RHV 4.4.1 to 4.4.10 with message: "Logical Volume "var_crash" already exists in volume group "rhvh""
Issue
- Host upgrade fails from 4.4.1 to 4.4.10 with an error:
2022-08-08 08:09:05,285 [DEBUG] (MainThread) Creating /var/crash as {'size': '10G', 'attach': True}
2022-08-08 08:09:05,285 [DEBUG] (MainThread) Calling: (['vgs', '--noheadings', '--ignoreskippedcluster', '@imgbased:pool', '-o', 'lv_full_name'],) {'stderr': <_io.TextIOWrapper name='/dev/null' mode='w' encoding='UTF-8'>, 'close_fds': True}
2022-08-08 08:09:05,486 [DEBUG] (MainThread) Returned: b'rhvh/pool00'
2022-08-08 08:09:05,486 [DEBUG] (MainThread) Calling: (['vgs', '--noheadings', '--ignoreskippedcluster', '@imgbased:volume', '-o', 'lv_full_name'],) {'stderr': <_io.TextIOWrapper name='/dev/null' mode='w' encoding='UTF-8'>, 'close_fds': True}
2022-08-08 08:09:05,670 [DEBUG] (MainThread) Calling: (['lvcreate', '--thin', '--virtualsize', '10G', '--name', 'var_crash', 'rhvh/pool00'],) {'close_fds': True, 'stderr': -2}
2022-08-08 08:09:05,837 [DEBUG] (MainThread) Exception! b' Logical Volume "var_crash" already exists in volume group "rhvh"\n'
2022-08-08 08:09:05,837 [DEBUG] (MainThread) Calling: (['umount', '-l', '/etc'],) {'close_fds': True, 'stderr': -2}
2022-08-08 08:09:05,853 [DEBUG] (MainThread) Calling: (['umount', '-l', '/tmp/mnt.hos9l'],) {'close_fds': True, 'stderr': -2}
2022-08-08 08:09:05,876 [DEBUG] (MainThread) Calling: (['rmdir', '/tmp/mnt.hos9l'],) {'close_fds': True, 'stderr': -2}
2022-08-08 08:09:05,880 [ERROR] (MainThread) Failed to migrate etc
Traceback (most recent call last):
File "/tmp/tmp.rbFE0CWu6b/usr/lib/python3.6/site-packages/imgbased/plugins/osupdater.py", line 102, in on_new_layer
check_nist_layout(imgbase, new_lv)
File "/tmp/tmp.rbFE0CWu6b/usr/lib/python3.6/site-packages/imgbased/plugins/osupdater.py", line 331, in check_nist_layout
v.create(t, paths[t]["size"], paths[t]["attach"])
File "/tmp/tmp.rbFE0CWu6b/usr/lib/python3.6/site-packages/imgbased/volume.py", line 63, in create
vol = thinpool.create_thinvol(volname, size)
File "/tmp/tmp.rbFE0CWu6b/usr/lib/python3.6/site-packages/imgbased/lvm.py", line 369, in create_thinvol
self.lvm_name])
File "/tmp/tmp.rbFE0CWu6b/usr/lib/python3.6/site-packages/imgbased/utils.py", line 337, in lvcreate
return self.call(["lvcreate"] + args, **kwargs)
File "/tmp/tmp.rbFE0CWu6b/usr/lib/python3.6/site-packages/imgbased/utils.py", line 325, in call
stdout = command.call(*args, **kwargs)
File "/tmp/tmp.rbFE0CWu6b/usr/lib/python3.6/site-packages/imgbased/command.py", line 14, in call
return subprocess.check_output(*args, **kwargs).strip()
File "/usr/lib64/python3.6/subprocess.py", line 356, in check_output
**kwargs).stdout
File "/usr/lib64/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['lvcreate', '--thin', '--virtualsize', '10G', '--name', 'var_crash', 'rhvh/pool00']' returned non-zero exit status 5.
Environment
- Red Hat Virtualization 4.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.