<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 3 September 2013 22:01, Kris Moore <span dir="ltr"><<a href="mailto:kris@pcbsd.org" target="_blank">kris@pcbsd.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
    <div>On 09/03/2013 12:56, Odhiambo
      Washington wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Hello everyone,
        <div><br>
        </div>
        <div>I need advise on this new technology called ZFS.</div>
        <div><br>
        </div>
        <div>I have a physical machine running PC-BSD (Desktop), with
          the default disk layout:</div>
        <div><br>
        </div>
        <div>
          <div>[root@jaribu] /usr/home/wash# uname -a</div>
          <div>FreeBSD <a href="http://jaribu.kictanet.or.ke" target="_blank">jaribu.kictanet.or.ke</a>
            9.1-RELEASE FreeBSD 9.1-RELEASE #2: Tue Nov 27 03:45:16 UTC
            2012     root@darkstar:/usr/obj/pcbsd-build90/fbsd-sour</div>
          <div>ce/9.1/sys/GENERIC  amd64</div>
        </div>
        <div><br>
        </div>
        <div>
          <div>[root@jaribu] /usr/home/wash# df -h</div>
          <div>Filesystem                   Size    Used   Avail
            Capacity  Mounted on</div>
          <div>tank1/ROOT/default           212G     16G    196G     8%
               /</div>
          <div>devfs                               1.0k    1.0k      0B
              100%    /dev</div>
          <div>procfs                             4.0k    4.0k      0B  
            100%    /proc</div>
          <div>linprocfs                          4.0k    4.0k      0B  
            100%    /compat/linux/proc</div>
          <div>tank1/root                       196G   133M    196G    
            0%    /root</div>
          <div>tank1/tmp                       196G   11M    196G     0%
               /tmp</div>
          <div>tank1/usr/home               218G   21G    196G    10%  
             /usr/home</div>
          <div>tank1/usr/home/wash      251G    55G    196G    22%  
             /usr/home/wash</div>
          <div>tank1/usr/jails                 196G    144k    196G    
            0%    /usr/jails</div>
          <div>tank1/usr/obj                  196G    144k    196G    
            0%    /usr/obj</div>
          <div>tank1/usr/pbi                  196G    264k    196G    
            0%    /usr/pbi</div>
          <div>tank1/usr/ports               197G    854M    196G     0%
               /usr/ports</div>
          <div>tank1/usr/ports/distfiles   197G    843M    196G     0%  
             /usr/ports/distfiles</div>
          <div>tank1/usr/src                  196G    144k    196G    
            0%    /usr/src</div>
          <div>tank1/var/audit                196G    144k    196G    
            0%    /var/audit</div>
          <div>tank1/var/log                   196G    6.4M    196G    
            0%    /var/log</div>
          <div>tank1/var/tmp                  196G    9.5M    196G    
            0%    /var/tmp</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>I have installed PC-BSD in a VM using the
          image PCBSD9-STABLE-p7-08-06-2013-x64-DVD.iso. BTW, ChangeLog
          says '<span style="white-space:pre-wrap">Fixed an issue with
            GRUB showing "no symbol table" errors at boot', but I still
            see that with my VM. I have</span> allocated 70GB to the VM,
          with the default disk layout:</div>
        <div><br>
        </div>
        <div>[wash@pcbsd-3496] ~% uname -a<br>
        </div>
        <div>
          <div>FreeBSD pcbsd-3496 9-STABLE-p7 FreeBSD 9-STABLE-p7 #17
            r+9f1d6a9: Sat Aug  3 14:23:05 EDT 2013    
            root@avenger:/usr/obj/pcbsd-build64-stable/fbs</div>
          <div>
            d-source/src/sys/GENERIC  amd64</div>
        </div>
        <div><br>
        </div>
        <div>
          <div>[wash@pcbsd-3496] ~% df -h</div>
          <div>Filesystem                  Size    Used   Avail Capacity
             Mounted on</div>
          <div>tank/ROOT/default      68G    7.3G     61G    11%    /</div>
          <div>devfs                         1.0k    1.0k      0B   100%
               /dev</div>
          <div>procfs                        4.0k    4.0k      0B   100%
               /proc</div>
          <div>linprocfs                     4.0k    4.0k      0B   100%
               /compat/linux/proc</div>
          <div>tank/tmp                     61G    125k     61G     0%  
             /tmp</div>
          <div>tank/usr/home             61G     32k      61G     0%  
             /usr/home</div>
          <div>tank/usr/jails               61G     31k      61G     0%
               /usr/jails</div>
          <div>tank/usr/obj                 61G     31k     61G     0%  
             /usr/obj</div>
          <div>tank/usr/pbi                 61G     64k     61G     0%  
             /usr/pbi</div>
          <div>tank/usr/ports              61G     32k     61G     0%  
             /usr/ports</div>
          <div>tank/usr/ports/distfiles  61G     31k     61G     0%  
             /usr/ports/distfiles</div>
          <div>tank/usr/src                 61G     31k     61G     0%  
             /usr/src</div>
          <div>tank/var/audit               61G     33k     61G     0%  
             /var/audit</div>
          <div>tank/var/log                  61G     80k     61G     0%
               /var/log</div>
          <div>tank/var/tmp                 61G    2.4M     61G     0%  
             /var/tmp</div>
          <div>tank/usr/home/wash     61G    174M     61G     0%  
             /usr/home/wash</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>I'd like to re-install the physical machine to take
          advantage of the new features PC-BSD rolling release is
          offering - CDN, grub, etc. However, it's not my intention to
          start afresh! I therefore would like to take the following
          steps:</div>
        <div><br>
        </div>
        <div>1. backup the whole system into the one inside the VM,
          every mount point</div>
        <div>2. blow away everything on the physical machine and install
          a clean PC-BSD 9.2-RC1</div>
        <div>3. restore everything from the bits backed up on the VM</div>
        <div>4. possibly fix the configuration bits required so that it
          can get updates from CDN</div>
        <div><br>
        </div>
        <div>I must swear I know how to backup ufs partitions, but NOT
          zfs...</div>
        <div><br>
        </div>
        <div>Is my plan workable? Looking at the two layouts I see the
          only major difference is that there is no /tank/root in the
          new layout to match tank1/root in the old layout.</div>
        <div><br>
        </div>
        <div>How should I go about it? Step-by-step directions, please.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <div><br>
          </div>
          -- <br>
          Best regards,<br>
          Odhiambo WASHINGTON,<br>
          Nairobi,KE<br>
          +254733744121/+254722743223<br>
          "I can't hear you -- I'm using the scrambler."<br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
    </blockquote>
    <br></div></div>
    Odhiambo,<br>
    <br>
    You will probably want to use the new "life-preserver" utility to do
    a ZFS snapshot / replication to the remote machine. Since you are on
    an older 9.1 release you will probably need to grab it from GIT
    though and build it by hand. <br>
    <br>
    # git clone <a href="https://github.com/pcbsd/pcbsd.git" target="_blank">https://github.com/pcbsd/pcbsd.git</a> pcbsd<br>
    # cd pcbsd/src-sh/libsh<br>
    # make install<br>
    # cd ../lpreserver <br>
    # make install<br>
    <br>
    Next you can now run the "lpreserver" command to see usage about
    creating snapshots / replicating data. "lpreserver help cronsnap" or
    "lpreserver help replicate". You'll need to setup SSH and a ZFS
    dataset on the remote machine to accept backups, look at the help
    for replicate command for details. <br>
    <br>
    If you want to do this by hand, you can also look into the "zfs send
    / recv" commands. <br>
    <br>
    Once you've replicated your data, you should be able install fresh
    and such. However bringing data back is a bit more tricky, since it
    sounds like you want to keep parts of the old system, but not all of
    it?<span class="HOEnZb"><font color="#888888"><br>
    <br>
    <br>
    <pre cols="72">-- 
Kris Moore</pre></font></span></div></blockquote><div><br><br></div><div>At this moment in time, what I am hoping to achieve is to have a new grub-booted system, capable of using CDN for updates, but with all my old data intact.<br>

I have installed so many applications on this (old) system that I wouldn't want to start reinstalling. So I was hoping for something akin to aged wine (all my apps running) in a new wineskin rolling release with CDN)!<br>

</div><div>I need to keep all of my old system if I can mod it to use CDN..<br></div></div><br><br clear="all"><br>-- <br>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254733744121/+254722743223<br>"I can't hear you -- I'm using the scrambler."<br>


</div></div>