From owner-freebsd-questions@freebsd.org Tue Oct 24 04:03:33 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B592CE3BAB6 for ; Tue, 24 Oct 2017 04:03:33 +0000 (UTC) (envelope-from pathiaki2@yahoo.com) Received: from sonic309-22.consmr.mail.ne1.yahoo.com (sonic309-22.consmr.mail.ne1.yahoo.com [66.163.184.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 85CE86E323 for ; Tue, 24 Oct 2017 04:03:33 +0000 (UTC) (envelope-from pathiaki2@yahoo.com) X-YMail-OSG: vWzPcoUVM1m0PaW4f8lQoOtN07BBZAu14zBvi6mzDGsqDc18Dar6LMitS4SeiPS RkMj3mJtngE3x6IrHdA34CsXBnp2NpSVuWUZjEF7gXEc.2lvFUSH6GWnlTKYR8fw26tqdEm4d9Pl 5t1pmUWodq2_QPaCAhpBXC6dHtZZNDou9qMH0UXBC5ktzLMs0KeutMmwaL2HX.RBlsEElGmzjdtJ dXCpuepsRFvwjy1n3wAcAvAdfjxJNdlKJCgiU_orPstdSv_rT3_j1ugbwkWD.wfSM51ANJZcZegO dPYTcfnR887Dd8yIRPqAu6OT0.n0MlvAEvfUhH4UfG9RiFL0gRa0F4ho1IQMtwv0GND81DvmCrij 50PNtADb0DdzA9jQT5AlVKNPsmJs7jn6PCreEaxA6Z9w9q3UT_PUOll9xQFM3wcR65PUtpHcdTmS rImS5M_KDHHwGodhvaPK5LOdwx61w2n94_O0PuxAWO.lMFE17UJ7cCDgDX.to858eV9AU9fipadK LXTAEb6MvS8TnNeAgeoksmEL1dJuMOlo3jU7lxhM- Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Tue, 24 Oct 2017 04:03:32 +0000 Received: from [127.0.0.1] by smtp207.mail.ne1.yahoo.com with NNFMP; 24 Oct 2017 03:43:16 -0000 X-Yahoo-Newman-Id: 217106.4318.bm@smtp207.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: vWzPcoUVM1m0PaW4f8lQoOtN07BBZAu14zBvi6mzDGsqDc1 8Dar6LMitS4SeiPSRkMj3mJtngE3x6IrHdA34CsXBnp2NpSVuWUZjEF7gXEc .2lvFUSH6GWnlTKYR8fw26tqdEm4d9Pl5t1pmUWodq2_QPaCAhpBXC6dHtZZ NDou9qMH0UXBC5ktzLMs0KeutMmwaL2HX.RBlsEElGmzjdtJdXCpuepsRFvw jy1n3wAcAvAdfjxJNdlKJCgiU_orPstdSv_rT3_j1ugbwkWD.wfSM51ANJZc ZegOdPYTcfnR887Dd8yIRPqAu6OT0.n0MlvAEvfUhH4UfG9RiFL0gRa0F4ho 1IQMtwv0GND81DvmCrij50PNtADb0DdzA9jQT5AlVKNPsmJs7jn6PCreEaxA 6Z9w9q3UT_PUOll9xQFM3wcR65PUtpHcdTmSrImS5M_KDHHwGodhvaPK5LOd wx61w2n94_O0PuxAWO.lMFE17UJ7cCDgDX.to858eV9AU9fipadKLXTAEb6M vS8TnNeAgeoksmEL1dJuMOlo3jU7lxhM- X-Yahoo-SMTP: h3Xqg6.swBC0yI913RMMwp94grO_cg-- Subject: Re: zpool question To: freebsd-questions@freebsd.org References: From: Paul Pathiakis Message-ID: <795bb6c7-9fac-1c92-17d9-4db228787b10@yahoo.com> Date: Mon, 23 Oct 2017 23:43:15 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Oct 2017 04:03:33 -0000 There is a ton of how to do this on FreeBSD. Read the man pages on zpool and zfs... read the Wikis... read the HowTos..... 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 same... Anyhow, zfs is enabled on zpool once you start.  Restore the data to the new partition. You should be fine. P. 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@safeport.com > Voice: 301-217-9220 >   Fax: 301-217-9277 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"