Site Tools


server:nas4free_build

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
server:nas4free_build [2015/08/28 20:21] – ashleyserver:nas4free_build [2015/08/28 20:22] (current) – [4K sectors] ashley
Line 52: Line 52:
  
 Save and exit Save and exit
-=====4K sectors=====+====4K sectors====
 For each device which will be made a part of the pool, a gnop "chained" device needs to be created, and then those devices need to be added to a pool: For each device which will be made a part of the pool, a gnop "chained" device needs to be created, and then those devices need to be added to a pool:
  
-gnop create -S 4096 /dev/da0 +  gnop create -S 4096 /dev/da0 
-gnop create -S 4096 /dev/da1 +  gnop create -S 4096 /dev/da1 
-zpool create data mirror /dev/da0.nop /dev/da1.nop+  zpool create data mirror /dev/da0.nop /dev/da1.nop
  
 This will create the "data" pool with the *.nop devices, making ZFS think the drives have 4K physical sectors. Next, the pool needs to be exported and the gnop devices removed: This will create the "data" pool with the *.nop devices, making ZFS think the drives have 4K physical sectors. Next, the pool needs to be exported and the gnop devices removed:
  
-zpool export data +  zpool export data 
-gnop destroy /dev/da0.nop /dev/da1.nop+  gnop destroy /dev/da0.nop /dev/da1.nop
  
 Next, the pool can be imported from the "raw" devices: Next, the pool can be imported from the "raw" devices:
  
-zpool import data+  zpool import data
  
 You can check the configuration of the pool by using the "zdb" command on the pool: You can check the configuration of the pool by using the "zdb" command on the pool:
  
-zdb -C data | grep ashift+  zdb -C data | grep ashift
  
 The ashift should be "12" for 4K alignment. This works because ZFS writes the ashift value in its metadata. The ashift should be "12" for 4K alignment. This works because ZFS writes the ashift value in its metadata.
server/nas4free_build.1440793282.txt.gz · Last modified: (external edit)