[Midnightbsd-cvs] www [572] trunk/documentation/zfs.html: add an example for dealing with advanced format drives and zfs
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Nov 22 13:29:13 EST 2014
Revision: 572
http://svnweb.midnightbsd.org/www/?rev=572
Author: laffer1
Date: 2014-11-22 13:29:12 -0500 (Sat, 22 Nov 2014)
Log Message:
-----------
add an example for dealing with advanced format drives and zfs
Modified Paths:
--------------
trunk/documentation/zfs.html
Modified: trunk/documentation/zfs.html
===================================================================
--- trunk/documentation/zfs.html 2014-11-13 02:08:35 UTC (rev 571)
+++ trunk/documentation/zfs.html 2014-11-22 18:29:12 UTC (rev 572)
@@ -151,6 +151,39 @@
</code>
</p>
+ <h4 id="s1h">Advanced format hard drives (4k sector)</h4>
+
+ <p>Many 4k sector drives do not report their size properly in a bad attempt
+ at backward compatibility. ZFS works fine with drives that report
+ properly, but for the rest of them the following workaround is
+ recommended.
+ </p>
+ <p>
+ <code>
+gpart create -s gpt ada0
+
+# create partitions
+gpart add -a 1m -t mnbsd-zfs -l drive0 ada0
+gpart add -a 1m -t mnbsd-zfs -l drive1 ada1
+
+# use gnop to make 4k friendly devices
+gnop create -S 4k gpt/drive0
+gnop create -S 4k gpt/drive1
+
+# make a mirror
+zpool create mpool mirror /dev/gpt/drive0.nop /dev/gpt/drive1.nop
+
+# export pool and remove virtual devices
+zpool export mpool
+gnop destroy gpt/drive0.nop
+gnop destroy gpt/drive1.nop
+
+# import and keep labels (via -d flag)
+zpool import -d /dev/gpt mpool
+ </code>
+ </p>
+
+
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'midnightbsd';
More information about the Midnightbsd-cvs
mailing list