zpool question

Paul Pathiakis pathiaki2 at yahoo.com
Tue Oct 24 04:03:33 UTC 2017

There is a ton of how to do this on FreeBSD.

Read the man pages on zpool and zfs... read the Wikis... read the 

Never assume that the data will be there....  BACK IT UP! :-)

You may try:

cd /home

tar cpf . - | xz > /usr/home.tar.xz

see if it fits... if you have a 32 GB USB... real easy... put it on the 
USB key...

After it's backed up, you'll need to modify the /etc/fstab to comment 
that partition out.

Create a zpool with:

zpool create name (might use home)  /dev/ada0s1f

It will create an internal mount point and it will automatically mount it.

If you were to use 'home' as the pool name, it will attempt to mount it 
on /home .

You're changing the format of the storage from UFS to ZFS.... not the 

Anyhow, zfs is enabled on zpool once you start.  Restore the data to the 
new partition.

You should be fine.


PS - I may have missed something and someone will point it out. Please, 
please, please read all of the above.  ZFS is amazing.... I want to have 
its baby.

On 10/23/2017 10:59 PM, DTD wrote:
> I have a test system disk is as follows
> Filesystem      Size    Used   Avail Capacity  Mounted on
> /dev/ada0s1a    2.9G    655M    2.0G    24%    /
> devfs           1.0K    1.0K      0B   100%    /dev
> /dev/ada0s1d    9.7G    2.3G    6.6G    26%    /var
> /dev/ada0s1e     19G    4.5G     13G    25%    /usr
> /dev/ada0s1f    415G     27G    354G     7%    /home
> I would like to add zfs and define a pool to be /dev/ada0s1f. 
> Possible? It seems if I allow root ssh (no console/monitor/keyboard), 
> edit fstab to remove /dev/ada0s1f and reboot the following might work:
>   zpool create zdata /dev/ada0s1f
> and that would hopefully leave the data there. Or does partition need 
> to be empty? The goal here is just to make something with a minimum of 
> change I can use to test and learn on.
> _____
> Douglas Denault
> http://www.safeport.com
> doug at safeport.com
> Voice: 301-217-9220
>   Fax: 301-217-9277
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe at freebsd.org"

More information about the freebsd-questions mailing list