openzfs / zfs

OpenZFS on Linux and FreeBSD
https://openzfs.github.io/openzfs-docs
Other
10.57k stars 1.74k forks source link

arc_summary Error in proxmox #15490

Open awptechnologies opened 11 months ago

awptechnologies commented 11 months ago

i have replaced my boot drive by using sgdisk to configure the partitions to match old drive. create zfs snapshot. I then did a send and receive to new pool removed old disk and everything seemed perfect. It booted fine all my vms are there and working. My issue is with arc_summary i get this error: ZFS Subsystem Report Fri Nov 03 13:39:39 2023 Linux 6.2.16-19-pve 2.1.13-pve1 Machine: Earth (x86_64) 2.1.13-pve1

ARC status: HEALTHY Memory throttle count: 0

Error in sys.excepthook: Traceback (most recent call last): File "/usr/sbin/arc_summary", line 1034, in main() File "/usr/sbin/arc_summary", line 1028, in main section_callssection File "/usr/sbin/arc_summary", line 554, in section_arc meta = arc_stats['meta']


KeyError: 'meta'

Original exception was:
Traceback (most recent call last):
  File "/usr/sbin/arc_summary", line 1034, in <module>
    main()
  File "/usr/sbin/arc_summary", line 1028, in main
    section_calls[section](kstats)
  File "/usr/sbin/arc_summary", line 554, in section_arc
    meta = arc_stats['meta']
           ~~~~~~~~~^^^^^^^^
KeyError: 'meta'

If i run arc_summary -r it prints everything with no problem. Is this something that will be fixed with update or is there something i can do about this issue?
amotin commented 11 months ago

It looks like you are trying to run arc_summary from OpenZFS 2.2 on 2.1.13.

awptechnologies commented 11 months ago

how do i fix good sir when i do zfs --version i see zfs-2.2.0-pve1 zfs-kmod-2.1.13-pve1

amotin commented 11 months ago

Install user-space and kernel module from the same version.

awptechnologies commented 11 months ago

can you help me out with that i ran apt-get install zfs-dkms and did modprobe zfs but its still the same

awptechnologies commented 11 months ago

sorry never had to go this in depth with zfs

awptechnologies commented 11 months ago

@amotin is this correct

awptechnologies commented 11 months ago

Fixed it. I upgraded to 6.5 kernel and it's fixed. Seems like proxmox pushed update for user space before the actually kernel. When I manually installed kernel it worked instantly. Also I removed zfs-dkms. It didn't seem to need it

BrixSat commented 11 months ago

How to install: Ensure that either the pve repository is set up correctly. You can do so via CLI text-editor or using the web UI under Node -> Repositories