Description of problem: aarch iso 镜像: GA 所有镜像 boot.iso mini.iso dvd.iso 分区方式:自动LVM分区 内核: 4.18 安装后: [root@localhost ~]# dmesg -l err,warn -T [一 6月 20 23:22:38 2022] ACPI: SRAT not present [一 6月 20 23:22:38 2022] ARM_SMCCC_ARCH_WORKAROUND_1 missing from firmware [一 6月 20 23:22:38 2022] ACPI: SRAT not present [一 6月 20 23:22:38 2022] ACPI PPTT: No PPTT table found, CPU and cache topology may be inaccurate [一 6月 20 23:22:38 2022] KASLR disabled due to lack of seed [一 6月 20 23:22:41 2022] cacheinfo: Unable to detect cache hierarchy for CPU 0 [一 6月 20 23:22:42 2022] sr 0:0:0:1: Power-on or device reset occurred [一 6月 20 23:22:44 2022] printk: systemd: 27 output lines suppressed due to ratelimiting [一 6月 20 23:22:44 2022] Unable to find swap-space signature [root@localhost ~]# 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@localhost ~]# free -h total used free shared buff/cache available Mem: 15Gi 495Mi 14Gi 26Mi 407Mi 13Gi Swap: 0B 0B 0B [root@localhost ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 862M 0 rom vda 252:0 0 20G 0 disk ├─vda1 252:1 0 600M 0 part /boot/efi ├─vda2 252:2 0 1G 0 part /boot └─vda3 252:3 0 18.4G 0 part ├─ao-root 253:0 0 16.4G 0 lvm / └─ao-swap 253:1 0 2G 0 lvm 执行操作后,可用. [root@localhost ~]# swapon /dev/ao/swap swapon: /dev/mapper/ao-swap:交换格式 页大小 不匹配。(使用 --fixpgsz 来重新对它初始化。) [ 66.891270] Unable to find swap-space signature swapon: /dev/mapper/ao-swap:swapon 失败: Invalid argument [root@localhost ~]# swapon --fixpgsz /dev/ao/swap swapon: /dev/mapper/ao-swap:交换格式 页大小 不匹配。 swapon: /dev/mapper/ao-swap:正在重新初始化交换区。 mkswap: /dev/mapper/ao-swap:警告,将擦除旧的 swap 签名。 正在设置交换空间版本 1,大小 = 2 GiB (2147418112 个字节) 无标签,UUID=2ccfd086-8f76-4817-a281-680a8058c79c [ 82.663281] Adding 2097088k swap on /dev/mapper/ao-swap. Priority:-2 extents:1 across:2097088k FS [root@localhost ~]# free -h total used free shared buff/cache available Mem: 15Gi 493Mi 14Gi 26Mi 407Mi 13Gi Swap: 2.0Gi 0B 2.0Gi [root@localhost ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 862M 0 rom vda 252:0 0 20G 0 disk ├─vda1 252:1 0 600M 0 part /boot/efi ├─vda2 252:2 0 1G 0 part /boot └─vda3 252:3 0 18.4G 0 part ├─ao-root 253:0 0 16.4G 0 lvm / └─ao-swap 253:1 0 2G 0 lvm [SWAP] [root@localhost ~]#
问题补充. 是在用iso 启动虚拟机的时候,才会有这个问题. 在我目前能用的arm物理机上,是这样的. x86上没有问题. 只有arm的rhck上有这个问题.另外,qcow2的镜像包中也没有这个问题.
使用compatible mode安装rhck内核。rhck开启了64k页表
使用compatible mode安装rhck内核,swap激活状态正常.