From nobody Sat Nov 5 20:57:15 2022 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N4VDh4tzXz4h8lP for ; Sat, 5 Nov 2022 20:57:24 +0000 (UTC) (envelope-from bob@proulx.com) Received: from havoc.proulx.com (havoc.proulx.com [96.88.95.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4N4VDg11S3z3pyP for ; Sat, 5 Nov 2022 20:57:23 +0000 (UTC) (envelope-from bob@proulx.com) Received: from joseki.proulx.com (localhost [127.0.0.1]) by havoc.proulx.com (Postfix) with ESMTP id 47339363 for ; Sat, 5 Nov 2022 14:57:16 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proulx.com; s=dkim2048; t=1667681836; bh=TgTXfNST+MewO8LSnWIq2xR9c0CpKQgBM/PvCHpg2Pw=; h=Date:From:To:Subject:References:In-Reply-To:From; b=OA/TFFYG2TJniDjJFHXOF3SzmdDUr9O/fwe/19u+ojmRPH7WWArVt/s6dpyf0LGD5 lqi46HhuGHveiDSW0uLOxf93RyfamOC7k/X0CByKjuwXmUYUWZE59A+v7maDImyvWz l2oJFLkfjIVLXSMCMVyFzRo/NYuj9LX1DJEA9P9VAw9nvOeXfpZRhYpMi05agm+Fb+ lxNcyMaWTDOkShk1by7/wnEebTXrxhjNAuH+9BpLDLWCqdvVTe1svcQKPlBLISpyoi ri/gZ13WHy/JNRHGF2XMVh4cDfV1Wx80IdeuEK8FcY5RLVKxqxtGvB+Ay+ZZK61AK/ BvA0Q2SjFsIFQ== Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 1BCB87A018 for ; Sat, 5 Nov 2022 14:57:16 -0600 (MDT) Received: by hysteria.proulx.com (Postfix, from userid 1000) id 06A856923BE4; Sat, 5 Nov 2022 14:57:15 -0600 (MDT) Date: Sat, 5 Nov 2022 14:57:15 -0600 From: Bob Proulx To: Freebsd Questions Subject: Re: Zfs Guide Message-ID: <20221105144351314715152@bob.proulx.com> Mail-Followup-To: Freebsd Questions References: <20221105191506.ufa4nexieim3dhzu@freebsd> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221105191506.ufa4nexieim3dhzu@freebsd> X-Rspamd-Queue-Id: 4N4VDg11S3z3pyP X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=proulx.com header.s=dkim2048 header.b="OA/TFFYG"; dmarc=pass (policy=none) header.from=proulx.com; spf=pass (mx1.freebsd.org: domain of bob@proulx.com designates 96.88.95.61 as permitted sender) smtp.mailfrom=bob@proulx.com X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[proulx.com,none]; R_DKIM_ALLOW(-0.20)[proulx.com:s=dkim2048]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[proulx.com:+]; MIME_TRACE(0.00)[0:+]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; ASN(0.00)[asn:7922, ipnet:96.64.0.0/11, country:US] X-ThisMailContainsUnwantedMimeParts: N Joe B wrote: > Sorry for all the questions but i want to start somehwere, the forums > take a while for me to get approved but it seems very friendly here. I like to think freebsd-questions is also a friendly place for questions too! :-) > So when i installed freeBSD about 5 days ago i noticed that it auto did > ZFS pool and everything didn't know why but i went with it. That is good! It's a good default option IMNHO. > Trying to understand it i looked online for some guides and the zfs > fs seems very intresting, snapshots, compression everything. It > seems that it was really made for two drives not one. i kinda > understand if my internal hdd goes out then i would have a backup. Because ZFS is often talked about in terms of high reliability the authors would not want to lead you astray thinking that you always get high reliability with ZFS even if using only a single device. You can see how someone might be disappointed if that single device failed, they lost data, and then were upset that ZFS did not protect them. Hence there are disclaimers appearing that ZFS can't save you if there is only one device and it fails. Such as on a laptop with a single SSD. But that does not mean that ZFS does not work well on a single device. Far from it! ZFS is excellent on a laptop with a single SSD! AFAICS if the system has more than 4GB of RAM then personally I install a ZFS file system. That includes most recent laptops. But if I were setting up a 256MB RPi on an SD card then I would likely choose UFS for the smaller memory footprint. Hopefully this makes sense? Also if I were setting up a VM for learning then I might use a 1GB virtual machine and in that case what's the harm if I were to overload the system? I would also use ZFS. It's not a production system with a critical uptime need for a web site or something. If it is just me using it for a test or debug or learning then that's fine too. > Currently setup a VM with freebsd and want to test zfs. should i make > two disk hard drives in the VM to test or should i be able to just play > with one ? As long as you are aware of the lack of hardware reliability in the case of a hardware failure then there is no problems using a single SSD in a laptop with ZFS. Or in a VM. Go for it! It's not that it creates a problem it is only a matter of setting people's expectations which matter. Personally I am addicted to the feature set of ZFS and now find myself wanting them when they are not available to me. So perhaps the biggest danger is that once you start using ZFS that you won't want to do without those features again either. :-) Bob