<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2009-09-23:447974</id>
  <title>pvaneynd</title>
  <subtitle>pvaneynd</subtitle>
  <author>
    <name>pvaneynd</name>
  </author>
  <link rel="alternate" type="text/html" href="https://pvaneynd.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://pvaneynd.dreamwidth.org/data/atom"/>
  <updated>2014-07-04T07:04:19Z</updated>
  <dw:journal username="pvaneynd" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2009-09-23:447974:152374</id>
    <link rel="alternate" type="text/html" href="https://pvaneynd.dreamwidth.org/152374.html"/>
    <link rel="self" type="text/xml" href="https://pvaneynd.dreamwidth.org/data/atom/?itemid=152374"/>
    <title>A tale of four disks</title>
    <published>2014-07-04T07:04:19Z</published>
    <updated>2014-07-04T07:04:19Z</updated>
    <category term="zfs"/>
    <category term="opensource"/>
    <category term="life"/>
    <category term="storage"/>
    <dw:mood>accomplished</dw:mood>
    <dw:security>public</dw:security>
    <dw:reply-count>1</dw:reply-count>
    <content type="html">A had a long string of problems with our server at home...

&lt;span class="cut-wrapper"&gt;&lt;span style="display: none;" id="span-cuttag___1" class="cuttag"&gt;&lt;/span&gt;&lt;b class="cut-open"&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class="cut-text"&gt;&lt;a href="https://pvaneynd.dreamwidth.org/152374.html#cutid1"&gt;Read more...&lt;/a&gt;&lt;/b&gt;&lt;b class="cut-close"&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style="display: none;" id="div-cuttag___1" aria-live="assertive"&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=pvaneynd&amp;ditemid=152374" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-09-23:447974:140087</id>
    <link rel="alternate" type="text/html" href="https://pvaneynd.dreamwidth.org/140087.html"/>
    <link rel="self" type="text/xml" href="https://pvaneynd.dreamwidth.org/data/atom/?itemid=140087"/>
    <title>life with zfs</title>
    <published>2011-04-27T05:16:01Z</published>
    <updated>2011-04-27T05:16:01Z</updated>
    <category term="freebsd"/>
    <category term="life"/>
    <category term="backup"/>
    <category term="zfs"/>
    <dw:mood>accomplished</dw:mood>
    <dw:security>public</dw:security>
    <dw:reply-count>4</dw:reply-count>
    <content type="html">Now that my server at home is running FreeBSD on top of ZFS for a while now I though to setup the backups again.&lt;br /&gt;&lt;br /&gt;Now I have 3 disks in the server, 2 are reliable and are used in the main ZFS pool (zroot), one is a POC WD 'green' disk that will die if you use it too often. So that one is my local backup disk.&lt;br /&gt;&lt;br /&gt;My backup strategy is that I configured daily snapshots on zroot, I have the local backup disk and I'm using a USB hard disk for off-site backups.&lt;br /&gt;&lt;br /&gt;At first I thought to use UFS2 on the third disks with &lt;i&gt;&lt;tt&gt;rsync&lt;/tt&gt;&lt;/i&gt;, like I did with Linux. Then I read a bit more about the ZFS functions and decided to use ZFS on the third disk. I created a 'fastbackup' pool and then used &lt;i&gt;&lt;tt&gt;zfs send&lt;/tt&gt;&lt;/i&gt; and &lt;i&gt;&lt;tt&gt;zfs receive&lt;/tt&gt;&lt;/i&gt; to sync the two pools. Syncing the disks was fast. Very fast indeed, about as fast as a simple 'dd' would have been.&lt;br /&gt;&lt;br /&gt;However ZFS's magic does not end here. It has the option of sending incremental changes that happened between snapshots. So I wrote a script that makes a new snapshot ("nu" now in Dutch), sends the incremental changes to 'fastbackup' and then moved the reference snapshot forward. This to me seemed to be faster then using &lt;i&gt;&lt;tt&gt;rsync&lt;/tt&gt;&lt;/i&gt;. which would always take at least 5 minutes to declare that the filesystems were in sync. ZFS is ... faster:&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;&lt;pre&gt;+ zfs snapshot zroot/usr@nu
+ zfs send -vi zroot/usr@laatste zroot/usr@nu
+ zfs receive -Fv fastbackup/usr@nu
receiving incremental stream of zroot/usr@nu into fastbackup/usr@nu
received 597MB stream in 10 seconds (59.7MB/sec)&lt;/pre&gt;&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;So that's a day worth of changes, including building and installing emacs and clisp, in 10 seconds.&lt;br /&gt;&lt;br /&gt;Script I used below the cut.&lt;span class="cut-wrapper"&gt;&lt;span style="display: none;" id="span-cuttag___1" class="cuttag"&gt;&lt;/span&gt;&lt;b class="cut-open"&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class="cut-text"&gt;&lt;a href="https://pvaneynd.dreamwidth.org/140087.html#cutid1"&gt;fastbackup.sh&lt;/a&gt;&lt;/b&gt;&lt;b class="cut-close"&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style="display: none;" id="div-cuttag___1" aria-live="assertive"&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=pvaneynd&amp;ditemid=140087" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-09-23:447974:139617</id>
    <link rel="alternate" type="text/html" href="https://pvaneynd.dreamwidth.org/139617.html"/>
    <link rel="self" type="text/xml" href="https://pvaneynd.dreamwidth.org/data/atom/?itemid=139617"/>
    <title>and now for something completely different</title>
    <published>2011-04-05T05:38:17Z</published>
    <updated>2011-04-05T05:38:17Z</updated>
    <category term="zfs"/>
    <category term="life"/>
    <category term="freebsd"/>
    <dw:mood>accomplished</dw:mood>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">After a bit of work:&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;[root@frost ~]# uname -a&lt;br /&gt;FreeBSD frost.local 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64&lt;br /&gt;[root@frost ~]# zpool status&lt;br /&gt;  pool: zroot&lt;br /&gt; state: ONLINE&lt;br /&gt; scrub: none requested&lt;br /&gt;config:&lt;br /&gt;&lt;br /&gt;        NAME           STATE     READ WRITE CKSUM&lt;br /&gt;        zroot          ONLINE       0     0     0&lt;br /&gt;          mirror       ONLINE       0     0     0&lt;br /&gt;            gpt/disk1  ONLINE       0     0     0&lt;br /&gt;            gpt/disk2  ONLINE       0     0     0&lt;br /&gt;&lt;br /&gt;errors: No known data errors&lt;br /&gt;&lt;br /&gt;[root@frost ~]# df -h /&lt;br /&gt;Filesystem    Size    Used   Avail Capacity  Mounted on&lt;br /&gt;zroot         1.4T    329M    1.4T     0%    /&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Turns out that converting from Debian to FreeBSD isn't that easy: in practice they share no advanced filesystem anymore, so I had to resort to:&lt;br /&gt;&lt;br /&gt;tar cf /dev/sdc1 /home/ /root/ /etc/ /Media/ /Backups/&lt;br /&gt;&lt;br /&gt;which is not very elegant. Now learning about the wonders of pkg_add and freebsd-update.&lt;br /&gt;&lt;br /&gt;First thing: how to compile a kernel only for my hardware...&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=pvaneynd&amp;ditemid=139617" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-09-23:447974:139514</id>
    <link rel="alternate" type="text/html" href="https://pvaneynd.dreamwidth.org/139514.html"/>
    <link rel="self" type="text/xml" href="https://pvaneynd.dreamwidth.org/data/atom/?itemid=139514"/>
    <title>lessons learned</title>
    <published>2011-04-01T05:19:10Z</published>
    <updated>2011-04-01T05:19:10Z</updated>
    <category term="life"/>
    <category term="freebsd"/>
    <category term="zfs"/>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">- a fuse can break&lt;br /&gt;- it is most likely to do so just when people come to see if they want to buy your house&lt;br /&gt;- a lamp has almost 0 resistance so you can check the wiring from the fuse box&lt;br /&gt;- FreeBSD does not know lvm or dm so it is not so easy to copy information across&lt;br /&gt;- fuse-zfs is not good enough to mount the FreeBSD zfs partitions&lt;br /&gt;- the intel BIOS on my PC will not boot from a disk when no partition is marked as active&lt;br /&gt;- installing FreeBSD mbr on a 2T disk fails, using &lt;a href="http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot"&gt;ZFS on GPT&lt;/a&gt; works.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Open questions:&lt;br /&gt;- I can install packages with "pkg_add -r &amp;lt;foo&amp;gt;", but how can I check for updates and update them?&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=pvaneynd&amp;ditemid=139514" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-09-23:447974:139208</id>
    <link rel="alternate" type="text/html" href="https://pvaneynd.dreamwidth.org/139208.html"/>
    <link rel="self" type="text/xml" href="https://pvaneynd.dreamwidth.org/data/atom/?itemid=139208"/>
    <title>how to grow a zfs file system</title>
    <published>2011-03-28T07:53:57Z</published>
    <updated>2011-03-29T08:22:37Z</updated>
    <category term="life"/>
    <category term="debian"/>
    <category term="zfs"/>
    <category term="google-me"/>
    <dw:security>public</dw:security>
    <dw:reply-count>5</dw:reply-count>
    <content type="html">I'm experimenting with zfs at home, for the moment on top of my md/lvm setup, and I ran out of disk space. Growing the lv is pretty easy:&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;&lt;pre&gt;frost:~# lvextend --size +110G /dev/new-vg/zfs-test
  Extending logical volume zfs-test to 120.00 GiB
  Logical volume zfs-test successfully resized
frost:~# zpool list
NAME       SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
zfs-pool  9.94G  9.78G   161M    98%  1.00x  ONLINE  -&lt;/pre&gt;&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Hmm it did not notice the 110GB extra, so I did:&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;&lt;pre&gt;frost:~# zpool export zfs-pool
frost:~# zpool import zfs-pool
frost:~# zpool list
NAME       SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
zfs-pool   120G  9.78G   110G     8%  1.00x  ONLINE  -&lt;/pre&gt;&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;so simply doing an import/export is enough.&lt;br /&gt;&lt;br /&gt;I'm looking at zfs to have a better idea of what btrfs will mean in the future for us.&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=pvaneynd&amp;ditemid=139208" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
