I have a problem.
I have a pool with a mirrored vdev and I add to this pool one more mirrored vdev. The problem is that I discover that the second vdev wasn't "formated" for 4K even if I select the checkboxes on the vdev creation.
zdb |grep -i ashift
ashift: 12
ashift: 9
Now there is any way to change the ashift of the second vdev without destroy the universe?
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!
ashift on a new vdev mirror
-
fumantsu
- Starter

- Posts: 69
- Joined: 04 Mar 2014 12:15
- Location: Athens->Brno
- Status: Offline
ashift on a new vdev mirror
Fractal Node 304, Avoton C2550 Quad-Core Processor, 8GB RAM ECC, 4 x 4TB WD RED in mirrors , NAS4Free 9.2.0.1 build 972
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: ashift on a new vdev mirror
no. sorry
but please test performance.
512 Vs 1024 (ashif 9 Vs ashif 12) it's not the end of the world, and probably you do not notice any degradation in your copy/move performance over Ethernet.
but please test performance.
512 Vs 1024 (ashif 9 Vs ashif 12) it's not the end of the world, and probably you do not notice any degradation in your copy/move performance over Ethernet.
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
-
fumantsu
- Starter

- Posts: 69
- Joined: 04 Mar 2014 12:15
- Location: Athens->Brno
- Status: Offline
Re: ashift on a new vdev mirror
I will try the hard way removing the one big disk, copy data and then recreate all the pools from the scratch. But I'm wonder and I confirmed now, the second vdev was created with the "Advanced format" checked how is possible to be created without .nop, added to the pool from gui and result ashift=9?
Edit: from cli why I can't create a new pool with ashift=12?
Edit: from cli why I can't create a new pool with ashift=12?
Code: Select all
zpool create -o ashift=12 tank1 /dev/ada2.nop
property 'ashift' is not a valid pool propertyFractal Node 304, Avoton C2550 Quad-Core Processor, 8GB RAM ECC, 4 x 4TB WD RED in mirrors , NAS4Free 9.2.0.1 build 972
- crowi
- Forum Moderator

- Posts: 1176
- Joined: 21 Feb 2013 16:18
- Location: Munich, Germany
- Status: Offline
Re: ashift on a new vdev mirror
ashift=12 is not a command, it is more or less just a result of formatting with 4k blocks
the command would be like
EDIT: here is a piece of explanation on this: http://ivoras.sharanet.org/blog/tree/20 ... rives.html
the command would be like
Code: Select all
gnop create -S 4096 /dev/da0NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded
-
fumantsu
- Starter

- Posts: 69
- Joined: 04 Mar 2014 12:15
- Location: Athens->Brno
- Status: Offline
Re: ashift on a new vdev mirror
I didn't say that is command. Just a property. Most of guides (I can't figure if they applied to freebsd also) are using ashift as property in pool creation.
EDIT:
I get it. It still seems strange why the new vdev had ashift=9 as I made all the procedure from gui. Bug?
EDIT:
I get it. It still seems strange why the new vdev had ashift=9 as I made all the procedure from gui. Bug?
Fractal Node 304, Avoton C2550 Quad-Core Processor, 8GB RAM ECC, 4 x 4TB WD RED in mirrors , NAS4Free 9.2.0.1 build 972
-
kenZ71
- Advanced User

- Posts: 379
- Joined: 27 Jun 2012 20:18
- Location: Northeast, USA
- Status: Offline
Re: ashift on a new vdev mirror
This is also risky! I just did this last weekend had a mix up of my drives and destroy all my poolsfumantsu wrote:I will try the hard way removing the one big disk, copy data and then recreate all the pools from the scratch. But I'm wonder and I confirmed now, the second vdev was created with the "Advanced format" checked how is possible to be created without .nop, added to the pool from gui and result ashift=9?
Fortunately I did have the foresight to backup my most critical data to another PC prior to starting my adventure.
11.2-RELEASE-p3 | ZFS Mirror - 2 x 8TB WD Red | 28GB ECC Ram
HP ML10v2 x64-embedded on Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz
Extra memory so I can host a couple VMs
1) Unifi Controller on Ubuntu
2) Librenms on Ubuntu
HP ML10v2 x64-embedded on Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz
Extra memory so I can host a couple VMs
1) Unifi Controller on Ubuntu
2) Librenms on Ubuntu
-
fumantsu
- Starter

- Posts: 69
- Joined: 04 Mar 2014 12:15
- Location: Athens->Brno
- Status: Offline
Re: ashift on a new vdev mirror
I done it like this. I wasn't so difficult, it was just need to be careful.
Steps:
snapshot
detach one big disk
create nop device
create a new pool with this one.
clone the snapshot
destroy the old pool.
create nop devices for all disks
Attach the second disk to the new pool
resilver
add as mirror the 2 other disks.
resilver
It took me 2 days for 2.7TB but everything now is as I want them. CLI will always rocks!
Steps:
snapshot
detach one big disk
create nop device
create a new pool with this one.
clone the snapshot
destroy the old pool.
create nop devices for all disks
Attach the second disk to the new pool
resilver
add as mirror the 2 other disks.
resilver
It took me 2 days for 2.7TB but everything now is as I want them. CLI will always rocks!
Fractal Node 304, Avoton C2550 Quad-Core Processor, 8GB RAM ECC, 4 x 4TB WD RED in mirrors , NAS4Free 9.2.0.1 build 972