Bug 3474 - [anolis8.8][min iso][aarch64] dev-mapper-ao\x2dswap.swap服务启动失败
Summary: [anolis8.8][min iso][aarch64] dev-mapper-ao\x2dswap.swap服务启动失败
Status: RESOLVED WONTFIX
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: Images&Installations (show other bugs) Images&Installations
Version: 8.8
Hardware: All Linux
: P2-High S2-major
Target Milestone: ---
Assignee: gaochang
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-15 01:05 UTC by anolislw
Modified: 2023-01-09 16:08 UTC (History)
3 users (show)

See Also:


Attachments
4.18/4.19 内核pagesize对比 (901.46 KB, image/png)
2022-12-25 23:16 UTC, gaochang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description anolislw alibaba_cloud_group 2022-12-15 01:05:30 UTC
Description of problem:
在aarch64的物理机上,使用anolis-8.8-aarch64-minimal.iso利用xml启动虚拟机,系统安装成功启动后dev-mapper-ao\x2dswap.swap服务启动失败
iso: https://mirrors.openanolis.cn/anolis/8.8/isos/BETA/aarch64/anolis-8.8-aarch64-minimal.iso

Errot infp:
[root@8 ~]# systemctl --failed
  UNIT                       LOAD   ACTIVE SUB    DESCRIPTION
● dnf-makecache.service      loaded failed failed dnf makecache
● dev-mapper-ao\x2dswap.swap loaded failed failed /dev/mapper/ao-swap

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

2 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
[root@8 ~]#
[root@8 ~]# uname -r
4.18.0-372.32.1.an8_6.aarch64
[root@8 ~]# cat /etc/anolis-release
Anolis OS release 8.8


安装时装机选择的信息:
语言	引导	内核	        软件选择
中文	第一	4.18.0 RHCK	服务器(右侧有勾选)


Steps to Reproduce:
1.使用该iso通过xml启动安装虚拟机
2.systemctl --failed
Comment 1 anolislw alibaba_cloud_group 2022-12-17 23:25:30 UTC
使用anolis-8.8-aarch64-dvd.iso xml安装虚拟机,安装配置:选择如下配置,成功启动系统后,dev-mapper-ao\x2dswap.swap服务启动失败
---------------------------
iso: anolis-8.8-aarch64-dvd.iso
架构:aarch64	
语言:中文	
内核:4.18.0 RHCK	
软件选择:服务器(右侧不选)
------------------------
[root@an88-dvd011-aarch64 ~]# systemctl --failed
  UNIT                       LOAD   ACTIVE SUB    DESCRIPTION
● dev-mapper-ao\x2dswap.swap loaded failed failed /dev/mapper/ao-swap

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

1 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
[root@an88-dvd011-aarch64 ~]# hostname -I
192.168.122.59
[root@an88-dvd011-aarch64 ~]# uname -r
4.18.0-372.32.1.an8_6.aarch64
[root@an88-dvd011-aarch64 ~]# cat /etc/anolis-release
Anolis OS release 8.8
[root@an88-dvd011-aarch64 ~]# hostname -I
192.168.122.59
Comment 2 gaochang alibaba_cloud_group 2022-12-25 23:16:31 UTC
Created attachment 570 [details]
4.18/4.19 内核pagesize对比

服务失败是由于4.18版本安装完成后无法mount swap分区导致,mount 失败则是由于安装过程中mkswap所使用的pagesize和安装后不同,pagesize是从内核中取值。4.18是64K,而4.19/5.10则是4K,所以无法mount,如图
使用5.10的installer安装4.18必然会遇到该问题,使用兼容模式安装程序则理论上不会出现该问题。
该问题仅影响arm架构
Comment 3 gaochang alibaba_cloud_group 2022-12-25 23:18:19 UTC
该问题与内核间的变动相关,并且仅与4.18相关,因此仅记入known issue,不修复
Comment 4 gaochang alibaba_cloud_group 2023-01-09 16:08:15 UTC
补充,仅lvm有影响,使用standard partition 不会出现该问题