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

Odhiambo Washington odhiambo at gmail.com
Tue Sep 3 09:56:09 PDT 2013

Hello everyone,

I need advise on this new technology called ZFS.

I have a physical machine running PC-BSD (Desktop), with the default disk

[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%
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%
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

[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%
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
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,
"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/3558c57b/attachment.html>

More information about the Testing mailing list