查看问题详情

编号项目分类查看权限最后更新
0000327Anolis OS 7Generalpublic2021-11-22 16:15
报告员anolis_account 分派给geliwei-ali  
优先级low严重性minor出现频率always
状态 assigned处理状况open 
平台aarch64操作系统Anolis OS操作系统版本7.7
标题0000327: [Anolis OS 7.7][aarch64]dmesg check,GPT:Primary header thinks Alt. header is not at the end of the disk
描述开机启动后,dmesg日志中有如下warning日志:
[Wed Oct 13 15:34:31 2021] GPT:Primary header thinks Alt. header is not at the end of the disk.
[Wed Oct 13 15:34:31 2021] GPT:83886079 != 136314879
[Wed Oct 13 15:34:31 2021] GPT:Alternate GPT header not at the end of the disk.
[Wed Oct 13 15:34:31 2021] GPT:83886079 != 136314879
[Wed Oct 13 15:34:31 2021] GPT: Use GNU Parted to correct GPT errors.

[Wed Oct 13 15:34:35 2021] FAT-fs (vda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.


[重现概率]
必现

[重现环境]
# uname -a
Linux VM20210425-1 4.19.91-24.8.an7.aarch64 #1 SMP Sat Sep 18 16:58:48 CST 2021 aarch64 aarch64 aarch64 GNU/Linux

[root@VM20210425-1]# cat /etc/os-release
NAME="Anolis OS"
VERSION="7.7"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="7.7"
PRETTY_NAME="Anolis OS 7.7"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugs.openanolis.cn/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vdb 253:16 0 200G 0 disk
vda 253:0 0 65G 0 disk
├─vda4 253:4 0 34.8G 0 part /
├─vda2 253:2 0 1G 0 part /boot
├─vda3 253:3 0 4G 0 part
└─vda1 253:1 0 200M 0 part /boot/efi

# df -lh
Filesystem Size Used Avail Use% Mounted on
devtmpfs 7.6G 0 7.6G 0% /dev
tmpfs 7.6G 4.0K 7.6G 1% /dev/shm
tmpfs 7.6G 25M 7.6G 1% /run
tmpfs 7.6G 0 7.6G 0% /sys/fs/cgroup
/dev/vda4 35G 5.8G 30G 17% /
/dev/vda2 1014M 158M 857M 16% /boot
/dev/vda1 200M 8.0M 192M 4% /boot/efi
tmpfs 1.6G 0 1.6G 0% /run/user/0
tmpfs 1.6G 0 1.6G 0% /run/user/1357317

问题重现步骤安装arm版本虚拟机后,进入环境,执行命令:dmesg -l warn -T
标签没加标签.

活动

Shiloong

2021-10-28 10:46

开发人员   ~0000544

请问这是新镜像的首次启动就有这个问题吗?
看报错是镜像的分区表有问题, 可能是分区挂载后没有正确 unmount, 或 unmount 失败导致的.

如果是镜像首次启动就报错, 那需要检查一下镜像制作过程有没有异常了.
@jacobwang

Shiloong

2021-10-28 10:48

开发人员   ~0000545

https://access.redhat.com/solutions/3369881
---
Since these messages are being printed that would indicate that the filesystem was not cleanly unmounted either because the system crashed or some other unknown reasons.

josephqi

2021-11-18 15:06

开发人员   ~0000746

GPT 规范要求磁盘末尾有备用 GPT Header,否则在 efi 分区校验报错:
efi_partition
|-find_valid_gpt
    |-compare_gpts

但从目前看只是 warning,不影响整体校验流程。
gpt_warning.png (153,116 字节)   
gpt_warning.png (153,116 字节)   

josephqi

2021-11-18 15:21

开发人员   ~0000747

结合问题描述信息:
[Wed Oct 13 15:34:31 2021] GPT:83886079 != 136314879

vda 253:0 0 65G 0 disk
├─vda4 253:4 0 34.8G 0 part /
├─vda2 253:2 0 1G 0 part /boot
├─vda3 253:3 0 4G 0 part
└─vda1 253:1 0 200M 0 part /boot/efi

gpt 分区信息记录的是 40G,但实际磁盘有 65G,所以初步看是镜像 dd 有问题。

问题历史

日期 用户名 字段 更改
2021-10-13 16:48 anolis_account 新建问题
2021-10-19 12:35 geliwei-ali 分派给 => Shiloong
2021-10-19 12:35 geliwei-ali 状态 新建 => 已分配
2021-10-28 10:46 Shiloong 注释已添加: 0000544
2021-10-28 10:48 Shiloong 注释已添加: 0000545
2021-11-17 10:43 Shiloong 分派给 Shiloong => josephqi
2021-11-17 10:43 Shiloong 优先级 中 => 低
2021-11-18 15:06 josephqi 注释已添加: 0000746
2021-11-18 15:06 josephqi 添加了以下文件:: gpt_warning.png
2021-11-18 15:21 josephqi 注释已添加: 0000747
2021-11-22 16:15 josephqi 分派给 josephqi => geliwei-ali