Date: Mon, 23 Oct 2017 23:43:15 -0400 From: Paul Pathiakis <pathiaki2@yahoo.com> To: freebsd-questions@freebsd.org Subject: Re: zpool question Message-ID: <795bb6c7-9fac-1c92-17d9-4db228787b10@yahoo.com> In-Reply-To: <alpine.BSF.2.00.1710232249280.59952@bucksport.safeport.com> References: <alpine.BSF.2.00.1710232249280.59952@bucksport.safeport.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?795bb6c7-9fac-1c92-17d9-4db228787b10>