Hay guys,
I am trying to format my 5 HDD's so that they use advanced formatting 4k sector. however when you try to format with ZFS there is no option for it. How do you format them so they are 4k sector drives?
regards,
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
Formatting HDD to ZFS with 4k sector
-
DanAddz
- Starter

- Posts: 63
- Joined: 23 Dec 2012 06:32
- Status: Offline
- Lee Sharp
- Advanced User

- Posts: 251
- Joined: 13 May 2013 21:12
- Contact:
- Status: Offline
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Formatting HDD to ZFS with 4k sector
select advanced 4K sector when create the pool not when format the disk (webGUI).
You do not have the required permissions to view the files attached to this post.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
chrisf4lc0n
- Advanced User

- Posts: 262
- Joined: 07 May 2013 13:15
- Location: West Drayton (London)
- Status: Offline
Re: Formatting HDD to ZFS with 4k sector
Agree, but not 100%, because when you create it via webGUI you will create virtual devices, so all you drives will be seen by ZFS as *.nop, which adds another layer of overheads (slower transfers), it is better to export the pool destroy the nops and then import the pool so the actual devices will be seen by ZFS...raulfg3 wrote:select advanced 4K sector when create the pool not when format the disk (webGUI).
So you will get from this:
Code: Select all
pool: ZFS_RAID
state: ONLINE
scan: scrub repaired 0 in 0h5m with 0 errors on Thu Jun 20 09:44:19 2013
config:
NAME STATE READ WRITE CKSUM
ZFS_RAID ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ada0.nop ONLINE 0 0 0
ada1.nop ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
ada3.nop ONLINE 0 0 0
ada4.nop ONLINE 0 0 0
cache
ada2.nop ONLINE 0 0 0
errors: No known data errorsCode: Select all
pool: ZFS_RAID
state: ONLINE
scan: scrub repaired 0 in 0h5m with 0 errors on Thu Jun 20 09:44:19 2013
config:
NAME STATE READ WRITE CKSUM
ZFS_RAID ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ada0 ONLINE 0 0 0
ada1 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
ada3 ONLINE 0 0 0
ada4 ONLINE 0 0 0
cache
ada2 ONLINE 0 0 0
errors: No known data errorsWatercooling is just the beginning 
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Formatting HDD to ZFS with 4k sector
I do it by webgui and latter eliminate .nop devices: viewtopic.php?f=59&t=1494
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
- Lee Sharp
- Advanced User

- Posts: 251
- Joined: 13 May 2013 21:12
- Contact:
- Status: Offline
Re: Formatting HDD to ZFS with 4k sector
Hence why I referenced the thread with the full instructions and explanation. In hopes that someone searching, if they found this instead would have a link to the source.
WD advanced format 4k drives - definitive answer?
WD advanced format 4k drives - definitive answer?
-
Black6spdZ
- NewUser

- Posts: 11
- Joined: 05 Mar 2014 20:49
- Status: Offline
Re: Formatting HDD to ZFS with 4k sector
has anything changed since the instructions were made here and v943? I deleted the nop devices but when I import the pool back it is using the nop devices again.. not sure how that happened.
Edit: now I see that when you are creating the vdev and check the "Enable Advanced Format (4KB sector)" you get the nop devices from the start. So now I am royally confused. Are these instructions outdated? It would seem that 4k sector drives would need that option checked? I am using Seagate 4TB
=== START OF INFORMATION SECTION ===
Model Family: Seagate Desktop HDD.15
Device Model: ST4000DM000-1F2168
Serial Number: x
LU WWN Device Id: 5 000c50 06d150fa3
Firmware Version: CC54
User Capacity: 4,000,787,030,016 bytes [4.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
so with the advanced format checked the ashift is in fact 12 but you get the nop devices and my RadiZ2 array goes from 7.11TB to 6.91TB. Why the loss in space with 4k sectors?
Edit: now I see that when you are creating the vdev and check the "Enable Advanced Format (4KB sector)" you get the nop devices from the start. So now I am royally confused. Are these instructions outdated? It would seem that 4k sector drives would need that option checked? I am using Seagate 4TB
=== START OF INFORMATION SECTION ===
Model Family: Seagate Desktop HDD.15
Device Model: ST4000DM000-1F2168
Serial Number: x
LU WWN Device Id: 5 000c50 06d150fa3
Firmware Version: CC54
User Capacity: 4,000,787,030,016 bytes [4.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
so with the advanced format checked the ashift is in fact 12 but you get the nop devices and my RadiZ2 array goes from 7.11TB to 6.91TB. Why the loss in space with 4k sectors?
-
sleid
- PowerUser

- Posts: 774
- Joined: 23 Jun 2012 07:36
- Location: FRANCE LIMOUSIN CORREZE
- Status: Offline
Re: Formatting HDD to ZFS with 4k sector
"so all you drives will be seen by ZFS as *.nop"
Unless you let system preformatted files "Unformatted" before creating the vdev by checking Enable Advanced Format (sector 4 Kbytes)
Unless you let system preformatted files "Unformatted" before creating the vdev by checking Enable Advanced Format (sector 4 Kbytes)
12.1.0.4 - Ingva (revision 7852)
FreeBSD 12.1-RELEASE-p12 #0 r368465M: Tue Dec 8 23:25:11 CET 2020
X64-embedded sur Intel(R) Atom(TM) CPU C2750 @ 2.40GHz Boot UEFI
ASRock C2750D4I 2 X 8GB DDR3 ECC
Pool of 2 vdev Raidz1: 3 WDC WD40EFRX + 3 WDC WD40EFRX
FreeBSD 12.1-RELEASE-p12 #0 r368465M: Tue Dec 8 23:25:11 CET 2020
X64-embedded sur Intel(R) Atom(TM) CPU C2750 @ 2.40GHz Boot UEFI
ASRock C2750D4I 2 X 8GB DDR3 ECC
Pool of 2 vdev Raidz1: 3 WDC WD40EFRX + 3 WDC WD40EFRX