[PC-BSD Testing] Migrating/Backup/Reinstalling PC-BSD

Odhiambo Washington odhiambo at gmail.com
Tue Sep 3 13:18:55 PDT 2013


On 3 September 2013 22:01, Kris Moore <kris at pcbsd.org> wrote:

>  On 09/03/2013 12:56, Odhiambo Washington wrote:
>
> Hello everyone,
>
>  I need advise on this new technology called ZFS.
>
>  I have a physical machine running PC-BSD (Desktop), with the default
> disk layout:
>
>  [root at jaribu] /usr/home/wash# uname -a
> FreeBSD jaribu.kictanet.or.ke 9.1-RELEASE FreeBSD 9.1-RELEASE #2: Tue Nov
> 27 03:45:16 UTC 2012     root at darkstar:/usr/obj/pcbsd-build90/fbsd-sour
> ce/9.1/sys/GENERIC  amd64
>
>  [root at jaribu] /usr/home/wash# df -h
> Filesystem                   Size    Used   Avail Capacity  Mounted on
> tank1/ROOT/default           212G     16G    196G     8%    /
> devfs                               1.0k    1.0k      0B   100%    /dev
> procfs                             4.0k    4.0k      0B   100%    /proc
> linprocfs                          4.0k    4.0k      0B   100%
>  /compat/linux/proc
> tank1/root                       196G   133M    196G     0%    /root
> tank1/tmp                       196G   11M    196G     0%    /tmp
> tank1/usr/home               218G   21G    196G    10%    /usr/home
> tank1/usr/home/wash      251G    55G    196G    22%    /usr/home/wash
> tank1/usr/jails                 196G    144k    196G     0%    /usr/jails
> tank1/usr/obj                  196G    144k    196G     0%    /usr/obj
> tank1/usr/pbi                  196G    264k    196G     0%    /usr/pbi
> tank1/usr/ports               197G    854M    196G     0%    /usr/ports
> tank1/usr/ports/distfiles   197G    843M    196G     0%
>  /usr/ports/distfiles
> tank1/usr/src                  196G    144k    196G     0%    /usr/src
> tank1/var/audit                196G    144k    196G     0%    /var/audit
> tank1/var/log                   196G    6.4M    196G     0%    /var/log
> tank1/var/tmp                  196G    9.5M    196G     0%    /var/tmp
>
>
>  I have installed PC-BSD in a VM using the
> image PCBSD9-STABLE-p7-08-06-2013-x64-DVD.iso. BTW, ChangeLog says 'Fixed
> an issue with GRUB showing "no symbol table" errors at boot', but I still
> see that with my VM. I have allocated 70GB to the VM, with the default
> disk layout:
>
>  [wash at pcbsd-3496] ~% uname -a
>  FreeBSD pcbsd-3496 9-STABLE-p7 FreeBSD 9-STABLE-p7 #17 r+9f1d6a9: Sat
> Aug  3 14:23:05 EDT 2013     root at avenger
> :/usr/obj/pcbsd-build64-stable/fbs
>  d-source/src/sys/GENERIC  amd64
>
>  [wash at pcbsd-3496] ~% df -h
> Filesystem                  Size    Used   Avail Capacity  Mounted on
> tank/ROOT/default      68G    7.3G     61G    11%    /
> devfs                         1.0k    1.0k      0B   100%    /dev
> procfs                        4.0k    4.0k      0B   100%    /proc
> linprocfs                     4.0k    4.0k      0B   100%
>  /compat/linux/proc
> tank/tmp                     61G    125k     61G     0%    /tmp
> tank/usr/home             61G     32k      61G     0%    /usr/home
> tank/usr/jails               61G     31k      61G     0%    /usr/jails
> tank/usr/obj                 61G     31k     61G     0%    /usr/obj
> tank/usr/pbi                 61G     64k     61G     0%    /usr/pbi
> tank/usr/ports              61G     32k     61G     0%    /usr/ports
> tank/usr/ports/distfiles  61G     31k     61G     0%
>  /usr/ports/distfiles
> tank/usr/src                 61G     31k     61G     0%    /usr/src
> tank/var/audit               61G     33k     61G     0%    /var/audit
> tank/var/log                  61G     80k     61G     0%    /var/log
> tank/var/tmp                 61G    2.4M     61G     0%    /var/tmp
> tank/usr/home/wash     61G    174M     61G     0%    /usr/home/wash
>
>
>
>  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:
>
>  1. backup the whole system into the one inside the VM, every mount point
> 2. blow away everything on the physical machine and install a clean PC-BSD
> 9.2-RC1
> 3. restore everything from the bits backed up on the VM
> 4. possibly fix the configuration bits required so that it can get updates
> from CDN
>
>  I must swear I know how to backup ufs partitions, but NOT zfs...
>
>  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.
>
>  How should I go about it? Step-by-step directions, please.
>
>
>
>  --
> Best regards,
> Odhiambo WASHINGTON,
> Nairobi,KE
> +254733744121/+254722743223
> "I can't hear you -- I'm using the scrambler."
>
>
>
> Odhiambo,
>
> 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.
>
> # git clone https://github.com/pcbsd/pcbsd.git pcbsd
> # cd pcbsd/src-sh/libsh
> # make install
> # cd ../lpreserver
> # make install
>
> 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.
>
> If you want to do this by hand, you can also look into the "zfs send /
> recv" commands.
>
> 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?
>
>
> --
> Kris Moore
>
>

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.
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)!
I need to keep all of my old system if I can mod it to use CDN..



-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
"I can't hear you -- I'm using the scrambler."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pcbsd.org/pipermail/testing/attachments/20130903/3bac3e9e/attachment-0001.html>


More information about the Testing mailing list