Napp-it 4k sector size creating spool?

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.
Status
Not open for further replies.

Derf

Member
May 31, 2013
55
0
6
I read this here:
HP N36L MicroServer with Nexenta & Napp-IT | Terabytes

I'm just wondering if it's still true that the zpool binary in Napp-it still uses 512 byte sector offset, or if it uses newer 4kb sector size? Do I need to do anything with the most recent napp-it (13b) to create 4K sectors?


Create a ZPool using a modified version of the zpool binary to account for the 4kb sector size on newer disks.

If you’ve got drives that use “Advanced Format” or 4k sectors you’ll need to snag this modified binary version of the zpool command. This is because the version of zpool that comes with nexenta has a 512 byte sector offset hardcoded into the binary. Napp-IT uses this binary by default so any pools you create within the Napp-IT interface will have the wrong sector size for your disks. This leads to sub-optimal performance and it’s generally not good long term.

Grant Pannell has come to the rescue with the following blog post. He goes into some excellent detail and provides some before and after benchmarks with numbers that describe the difference between proper sector alignment and not and optimal numbers of drives per RAIDz types here.

I’ve condensed the instructions below – what this does is replaces the default system binary with the one modified by Grant.

from a terminal session on the NAS;

Code:
wget http://digitaldj.net/zpool-12
sudo mv /sbin/zpool /mv/sbin/zpool.old
sudo mv ~/zpool-12 /sbin/zpool
sudo chown root:bin /sbin/zpool
sudo chmod ugo+rx /sbin/zpool
You can create your zpools with the web gui now but beware if you change or add disks that use non-4k sector aligned drives.

---- edit : update ----

I tried following the directions, and got nowhere.

Code:
/home# wget http://digitaldj.net/zpool-12
--2013-06-05 04:28:59--  http://digitaldj.net/zpool-12
            Resolving digitaldj.net (digitaldj.net)... 119.252.27.82,       2401:1400:1:1201:0:1:29a5:6cba
            Connecting to digitaldj.net (digitaldj.net)|119.252.27.82|:80... connected.
            HTTP request sent, awaiting response... 301 Moved Permanently
            Location: https://digitaldj.net/zpool-12 [following]
--2013-06-05 04:29:00--  https://digitaldj.net/zpool-12
            Connecting to digitaldj.net (digitaldj.net)|119.252.27.82|:443... connected.
            ERROR: cannot verify digitaldj.net's certificate, issued by ‘/C=IL/O=StartCom Ltd./OU=Secure Digital Certificate Signing/CN=StartCom Class 1 Primary Intermediate Server CA’:
            Unable to locally verify the issuer's authority.
            To connect to digitaldj.net insecurely, use `--no-check-certificate'.

/home# wget http://digitaldj.net/zpool-12 --no-check-certificate
--2013-06-05 04:29:38--  http://digitaldj.net/zpool-12
            Resolving digitaldj.net (digitaldj.net)... 119.252.27.82, 2401:1400:1:1201:0:1:29a5:6cba
            Connecting to digitaldj.net (digitaldj.net)|119.252.27.82|:80... connected.
            HTTP request sent, awaiting response... 301 Moved Permanently
            Location: https://digitaldj.net/zpool-12 [following]
--2013-06-05 04:29:39--  https://digitaldj.net/zpool-12
            Connecting to digitaldj.net (digitaldj.net)|119.252.27.82|:443... connected.
            WARNING: cannot verify digitaldj.net's certificate, issued by ‘/C=IL/O=StartCom Ltd./OU=Secure Digital Certificate Signing/CN=StartCom Class 1 Primary Intermediate Server CA’:
            Unable to locally verify the issuer's authority.
            HTTP request sent, awaiting response... 404 Not Found
2013-06-05 04:29:40 ERROR 404: Not Found.
I also found this in the nightly update from back in summer 2012
http://www.napp-it.org/downloads/changelog.html
17.07.2012 0.8j2 nightly

Experimental: Option1/ (opt. unstable) to create a pool or add a vdev with 4k optimized ashift=12
via modified zpool binary from http://digitaldj.net/2010/11/03/zfs-zpool-v28-openindiana-b147-4k-drives-and-you/

I have not heard of problems with such pools, please report problems.

Option2: on a per disk base via /kernel/drv/sd.conf settings, stable - but not working with all disks
This is the recommended way to create 4k optimized pools/vdevs.
You can edit sd.conf via menu disk - details

more
http://wiki.illumos.org/display/illumos/ZFS+and+Advanced+Format+disks
https://www.illumos.org/issues/2665

Advantage of ashift=12:
- better performance with newer 4k disks
- less problems if you need to replace old disks with newer 4k ones
Hopefully Gea will weigh in with an answer, and hopefully that answer is that this issue is fixed.
 
Last edited:
Status
Not open for further replies.