zdb on imported pool

Status
Not open for further replies.

warriorcookie

Explorer
Joined
Apr 17, 2017
Messages
67
Long story short. After setting up my freenas and creating the pool, I did a complete re-install/restore and imported the zfs pool so I could get familiar with recovering from a major failure.

When trying to check ashift, I discovered the following:

zdb

Shows only the boot pool.

zdb -U /data/zfs/zpool.cache

Shows all pools except boot.


Is there a step I missed when importing the pool? What needs to be done?


System:
T3500 x5650, 24g DDR3 ECC, FreeNAS-11.0-U2
ESXI 6.5 (10g RAM for FreeNAS)
H200 flashed it mode. PCI Passthrough.
1 zpool with 2vdevs (2x 3TB Reds mirror, 2x 1TB Reds mirror), Encrypted, LZ Compression, no Dedup
 
Last edited:

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
I love the fact that ZFS on Linux has this;
Code:
# zpool get ashift rpool
NAME   PROPERTY  VALUE  SOURCE
rpool  ashift	12	 local
Hope they port the feature upstream.
 
D

dlavigne

Guest
Please create a feature request to add the ashift property at bugs.freenas.org and post the issue number here.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Long story short. After setting up my freenas and creating the pool, I did a complete re-install/restore and imported the zfs pool so I could get familiar with recovering from a major failure.

When trying to check ashift, I discovered the following:

zdb

Shows only the boot pool.

zdb -U /data/zfs/zpool.cache

Shows all pools except boot.


Is there a step I missed when importing the pool? What needs to be done?


System:
T3500 x5650, 24g DDR3 ECC, FreeNAS-11.0-U2
ESXI 6.5 (10g RAM for FreeNAS)
H200 flashed it mode. PCI Passthrough.
1 zpool with 2vdevs (2x 3TB Reds mirror, 2x 1TB Reds mirror), Encrypted, LZ Compression, no Dedup
What's your problem? And what your question? You didn't really ask anything. The way you got ashift is correct.

Sent from my Nexus 5X using Tapatalk
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
Please create a feature request to add the ashift property at bugs.freenas.org and post the issue number here.
Okay, here it is;

https://bugs.freenas.org/issues/25562

I also submitted the FreeBSD side, (a link is referenced in the FreeNAS bug). They have less options in regards to making the issue a feature request. So that's in the first comment. Hopefully I have opened it okay.
 
Last edited:

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
In regards to the ashift bug, 25562, looks like it's more complicated than I thought. Each vDev can have a different ashift value. So I don't know what ZFS on Linux is doing. Or even if it's correct.

I'll wait to see what the FreeBSD people think.
 

warriorcookie

Explorer
Joined
Apr 17, 2017
Messages
67
What's your problem? And what your question? You didn't really ask anything. The way you got ashift is correct.

Sent from my Nexus 5X using Tapatalk

When I invoke zdb | greg ashift it outputs ashift=9
For the longest time this made me think freenas saw my drives as having 512 sectors when they are 4k.

Using zdb -U /data/zfs/zpool.cache gives me ashift=12
 
Status
Not open for further replies.
Top