LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-22-2018, 04:53 PM   #1
User9
Member
 
Registered: Mar 2016
Location: Boston
Distribution: Arch Linux, Debian, Ubuntu Server, FreeBSD, FreeNAS
Posts: 53

Rep: Reputation: Disabled
Question OpenZFS on Linux and BSD zdb command gives space map refcount mismatch


I recently found the zdb command and after running it showed these errors.

Code:
user@Hostname:~# zdb -d zfs_pool
Dataset mos [META], ID 0, cr_txg 4, 16.8M, 189 objects
Dataset zfs_pool/test2 [ZPL], ID 106, cr_txg 166647, 30.0G, 7 objects
Dataset zfs_pool/test [ZPL], ID 131, cr_txg 166799, 30.0G, 7 objects
Dataset zfs_pool/test4 [ZPL], ID 157, cr_txg 175795, 1.45M, 7 objects
Dataset zfs_pool/test3 [ZPL], ID 151, cr_txg 175783, 2.51M, 7 objects
Dataset zfs_pool [ZPL], ID 21, cr_txg 1, 96.0K, 8 objects

Verified large_blocks feature refcount is correct (2)
space map refcount mismatch: expected 98 != actual 58
Note: Datasets have been removed from code text to keep it simple.

This was run on Ubuntu Server 17.10 (4.13.0-21-generic #24-Ubuntu) and ZFS 0.6.5.11-1
Also on a zfs pool that has barely been used and was created about 4 months ago with brand new
WD Re4 drives(312 Hours so far). And never been any errors on zpool scrub.

Is this "space map refcount mismatch" bad ?


After finding this out I ran it on a Completely different system running FreeNAS-11.1-RELEASE

Code:
[user@Hostname2 ~]# zdb -d -U /data/zfs/zpool.cache -C NAS_Pool
Dataset NAS_Pool/jails [ZPL], ID 188, cr_txg 5408, 128K, 7 objects
Dataset NAS_Pool/Backups [ZPL], ID 103, cr_txg 2988, 128K, 11 objects
Dataset NAS_Pool [ZPL], ID 21, cr_txg 1, 140K, 12 objects
Verified large_blocks feature refcount of 0 is correct
Verified sha512 feature refcount of 0 is correct
Verified skein feature refcount of 0 is correct
space map refcount mismatch: expected 66 != actual 42
Note: Datasets and some text have been removed from code text to keep it simple

This was run a fairly new pool with very little use and never any scrub errors too.

Searching the net it seems like this maybe a problem in ZFS or the zdb program itself.
Anyone know what this is ? If its bad how can it be prevented ?

Does your pool give you any errors ?

Last edited by User9; 01-24-2018 at 09:06 PM.
 
Old 01-24-2018, 09:00 PM   #2
User9
Member
 
Registered: Mar 2016
Location: Boston
Distribution: Arch Linux, Debian, Ubuntu Server, FreeBSD, FreeNAS
Posts: 53

Original Poster
Rep: Reputation: Disabled
To clarify what I mean by "maybe a problem in ZFS" I'm referring to this . . .
https://github.com/zfsonlinux/zfs/issues/3111
Anyone know about this ? It worries me that something that is supposed to be as bullet proof as ZFS has seemingly/maybe had this problem sense around 2015 ?

Also found this which seems to say it might not matter if the numbers are low or close enough.
https://www.reddit.com/r/zfs/comment...the_space_map/


Can anyone confirm either way, Is this bad or does it not matter ?
Have you checked your zpools ?

Last edited by User9; 01-24-2018 at 09:17 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux: No space left on device while df command shows lot of free space LXer Syndicated Linux News 0 08-26-2013 02:50 PM
Why? Why SetPageReserved is needed when map a kernel space to user space? osdev Linux - Kernel 9 03-10-2013 06:16 PM
Map kernel physical space to user space zvivered Linux - Embedded & Single-board computer 2 12-11-2009 06:18 AM
Can I use linux swap space with BSD? thedeadhead *BSD 1 08-30-2005 11:52 AM
Hard disk space mismatch nrhughes Linux - Hardware 2 03-18-2005 10:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration