Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ZFS] Persistent 'warning'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pakjebakmeel
n00b
n00b


Joined: 13 Feb 2012
Posts: 48

PostPosted: Fri Oct 25, 2013 6:04 am    Post subject: [ZFS] Persistent 'warning' Reply with quote

I've got something weird on both of my ZFS pools which I think might actually be a bug but I'm not sure, maybe someone can comment:

Code:

  pool: storage
 state: ONLINE
   see: http://zfsonlinux.org/msg/ZFS-8000-EY
  scan: scrub repaired 0 in 4h7m with 0 errors on Fri Oct 25 00:43:11 2013
config:

        NAME                        STATE     READ WRITE CKSUM
        storage                     ONLINE       0     0     0
          raidz1-0                  ONLINE       0     0     0
            scsi-20004d927fffff810  ONLINE       0     0     0
            scsi-20004d927fffff800  ONLINE       0     0     0
            scsi-20004d927fffff820  ONLINE       0     0     0
            scsi-20004d927fffff850  ONLINE       0     0     0
            scsi-20004d927fffff840  ONLINE       0     0     0
            scsi-20004d927fffff830  ONLINE       0     0     0

errors: No known data errors


Note the line " see: http://zfsonlinux.org/msg/ZFS-8000-EY "; apparently this means that either the hostid changed or the pool was previously imported on a system with a different hostid. Strange is that this message should be paired with an OFFLINE pool that has a warning, in my case there is no warning. There is also no action for the admin to perform, the pool is ONLINE and working. Just this line remains, as if the error occurred and got fixed but the URL hint remains 'stuck'. I've performed the actions mentioned on the zfsonlinux.org page but the message is still there.

I've exported and imported the pools again but no avail. Exported the pools, changed the hostid in /etc/hostid and imported them. No avail.

Hostid is properly detected and persistent over reboots it seems:

Code:

[    3.214737] ZFS: Loaded module v0.6.2-1, ZFS pool version 5000, ZFS filesystem version 5
[    3.535504] SPL: using hostid 0x0be8ae99


The article says that when this gets raised the ZFS filesystems are not available and they need to be forcefully imported but this is not the case which makes me think it might just be a bug?

Any tips? Clues?
Back to top
View user's profile Send private message
pakjebakmeel
n00b
n00b


Joined: 13 Feb 2012
Posts: 48

PostPosted: Mon Dec 02, 2013 2:38 pm    Post subject: Reply with quote

A quick update on this, I've 'upgraded' my Z1 pool to a Z2 pool by moving the data off and re-creating the pool. Even after completely destroying the old Z1 pool and re-creating a new Z2 the warning is still present.

:roll:

Code:

  pool: storage
 state: ONLINE
   see: http://zfsonlinux.org/msg/ZFS-8000-EY
  scan: none requested
config:

        NAME                        STATE     READ WRITE CKSUM
        storage                     ONLINE       0     0     0
          raidz2-0                  ONLINE       0     0     0
            scsi-20004d927fffff800  ONLINE       0     0     0
            scsi-20004d927fffff810  ONLINE       0     0     0
            scsi-20004d927fffff820  ONLINE       0     0     0
            scsi-20004d927fffff830  ONLINE       0     0     0
            scsi-20004d927fffff840  ONLINE       0     0     0
            scsi-20004d927fffff850  ONLINE       0     0     0

errors: No known data errors
Back to top
View user's profile Send private message
pakjebakmeel
n00b
n00b


Joined: 13 Feb 2012
Posts: 48

PostPosted: Fri Jan 31, 2014 9:23 am    Post subject: Reply with quote

Code:

gentoo zfs # zdb | grep hostid
    hostid: 199798425
    hostid: 199798425


According to zdb my hostid is decimal 199798425, this translates into hexadecimal 0x0be8ae99. This is what SPL reports to have found during boot too:

Code:

gentoo ~ # dmesg | grep hostid
[    3.556193] SPL: using hostid 0x0be8ae99


So if my hostid is detected as 0x0be8ae99 by SPL and zdb reports the same ID, why the mismatch. Well this might have something to do with it:

Code:

gentoo zfs # hostid
ebe8ae99


That is weird, it seems that when I change /etc/hostid the hostid binary returns a different hostid so it seems to be the active source for the hostid. However, the hostid detected by SPL during bootup is different from what is set in /etc/hostid.

Could it be that SPL is loaded and uses a different source for the hostid and later the actual hostid is set from /etc/hostid causing the mismatch? To get rid of the warning I have now converted the hostid detected by SPL and stuck that into /etc/hostid and the message has disappeared. The hostid command now returns the same hostid as SPL detects and it's happy now:

Code:

gentoo ~ # hostid
0be8ae99


Code:

errors: No known data errors

  pool: storage
 state: ONLINE
  scan: scrub canceled on Thu Jan 30 11:03:37 2014
config:

        NAME                                          STATE     READ WRITE CKSUM
        storage                                       ONLINE       0     0     0
          raidz2-0                                    ONLINE       0     0     0
            ata-WDC_WD30EZRX-00DC0B0_WD-WMC1T1429505  ONLINE       0     0     0
            ata-WDC_WD30EZRX-00DC0B0_WD-WMC1T1248064  ONLINE       0     0     0
            ata-WDC_WD30EZRX-00DC0B0_WD-WMC1T1035352  ONLINE       0     0     0
            ata-WDC_WD30EZRX-00DC0B0_WD-WMC1T0999727  ONLINE       0     0     0
            ata-WDC_WD30EZRX-00DC0B0_WD-WMC1T1625883  ONLINE       0     0     0
            ata-WDC_WD30EZRX-00DC0B0_WD-WMC1T1157517  ONLINE       0     0     0

errors: No known data errors


I've used this to convert the hostid --> /etc/hostid: http://fazlearefin.blogspot.nl/2013/03/set-hostid-etchostid-of-linux-hosts.html

Any clues what's going on here?

- Why does SPL not detect a slightly different hostid?
- Why do they differ ever so slightly? (0be8ae99 vs ebe8ae99)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum