2022-05-17 13:27:09 |
Satish Patel |
description |
Openstack Release: Wallaby
OS Distro: Ubuntu 20.04
After rebooting infra node encounter following error:
root@ostack-ams-infra-1-3:~# journalctl -u var-lib-machines.mount -f
May 16 18:23:13 ostack-ams-infra-1-3.example.net mount[1026]: mount: /var/lib/machines: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
May 16 18:23:13 ostack-ams-infra-1-3.example.net systemd[1]: Mounting Virtual Machine and Container Storage (Compatibility)...
May 16 18:23:13 ostack-ams-infra-1-3.example.net systemd[1]: var-lib-machines.mount: Mount process exited, code=exited, status=32/n/a
May 16 18:23:13 ostack-ams-infra-1-3.example.net systemd[1]: var-lib-machines.mount: Failed with result 'exit-code'.
May 16 18:23:13 ostack-ams-infra-1-3.example.net systemd[1]: Failed to mount Virtual Machine and Container Storage (Compatibility).
# filesystem type is ext4
root@ostack-ams-infra-1-3:~# file /var/lib/machines.raw
/var/lib/machines.raw: Linux rev 1.0 ext4 filesystem data, UUID=b2c7accf-c3bb-4ab0-9301-371a099de544 (extents) (64bit) (large files) (huge files)
# In var-lib-machines.mount systemd has wrong filesystem Type (Type: btrfs).
root@ostack-ams-infra-1-3:~# cat /lib/systemd/system/var-lib-machines.mount
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
# This unit is required for pre-240 versions of systemd that automatically set
# up /var/lib/machines.raw as loopback-mounted btrfs file system. Later
# versions don't do that anymore, but let's keep minimal compatibility by
# mounting the image still, if it exists.
[Unit]
Description=Virtual Machine and Container Storage (Compatibility)
ConditionPathExists=/var/lib/machines.raw
[Mount]
What=/var/lib/machines.raw
Where=/var/lib/machines
Tyep=btrfs
Options=loop
# Solution
Workaround is to change Type=ext |
Openstack Release: Wallaby
OS Distro: Ubuntu 20.04
After rebooting infra node encounter following error:
root@ostack-ams-infra-1-3:~# journalctl -u var-lib-machines.mount -f
May 16 18:23:13 ostack-ams-infra-1-3.example.net mount[1026]: mount: /var/lib/machines: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
May 16 18:23:13 ostack-ams-infra-1-3.example.net systemd[1]: Mounting Virtual Machine and Container Storage (Compatibility)...
May 16 18:23:13 ostack-ams-infra-1-3.example.net systemd[1]: var-lib-machines.mount: Mount process exited, code=exited, status=32/n/a
May 16 18:23:13 ostack-ams-infra-1-3.example.net systemd[1]: var-lib-machines.mount: Failed with result 'exit-code'.
May 16 18:23:13 ostack-ams-infra-1-3.example.net systemd[1]: Failed to mount Virtual Machine and Container Storage (Compatibility).
# filesystem type is ext4
root@ostack-ams-infra-1-3:~# file /var/lib/machines.raw
/var/lib/machines.raw: Linux rev 1.0 ext4 filesystem data, UUID=b2c7accf-c3bb-4ab0-9301-371a099de544 (extents) (64bit) (large files) (huge files)
# In var-lib-machines.mount systemd has wrong filesystem Type (Type: btrfs).
root@ostack-ams-infra-1-3:~# cat /lib/systemd/system/var-lib-machines.mount
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
# This unit is required for pre-240 versions of systemd that automatically set
# up /var/lib/machines.raw as loopback-mounted btrfs file system. Later
# versions don't do that anymore, but let's keep minimal compatibility by
# mounting the image still, if it exists.
[Unit]
Description=Virtual Machine and Container Storage (Compatibility)
ConditionPathExists=/var/lib/machines.raw
[Mount]
What=/var/lib/machines.raw
Where=/var/lib/machines
Tyep=btrfs
Options=loop
# Solution
Workaround is to change Type=ext4 |
|