From owner-freebsd-questions@freebsd.org Wed Sep 16 01:55:20 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5A62B3E9F5B for ; Wed, 16 Sep 2020 01:55:20 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "www.holgerdanske.com", Issuer "www.holgerdanske.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Brjpv0V7Kz42cD for ; Wed, 16 Sep 2020 01:55:18 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from 99.100.19.101 (99-100-19-101.lightspeed.frokca.sbcglobal.net [99.100.19.101]) by holgerdanske.com with ESMTPSA (TLS_AES_128_GCM_SHA256:TLSv1.3:Kx=any:Au=any:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Tue, 15 Sep 2020 18:55:10 -0700 Subject: Re: partitioning server with 2 hard drives To: freebsd-questions@freebsd.org References: From: David Christensen Message-ID: Date: Tue, 15 Sep 2020 18:55:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4Brjpv0V7Kz42cD X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of dpchrist@holgerdanske.com has no SPF policy when checking 184.105.128.27) smtp.mailfrom=dpchrist@holgerdanske.com X-Spamd-Result: default: False [2.43 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.01)[0.008]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.73)[0.729]; ARC_NA(0.00)[]; NEURAL_SPAM_LONG(0.80)[0.796]; DMARC_NA(0.00)[holgerdanske.com]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:184.104.0.0/15, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Sep 2020 01:55:20 -0000 On 2020-09-15 14:34, Marwan Sultan wrote: > Good day/Evening for all FreeBSDers 🙂 > > I want to install latest FreeBSD for a business server > erver with the following specification. : > Intel Xeon E3-1240 v5 3.5GHz > Hardware RAID Controller 1 GB Cache with BBU > 16 GB DDR4 RAM - Total > 1 TB 7200 SATA > 1 TB 7200 SATA > > I understand its advised to create it in this order and SWAP double (or triple) of the RAM (is 50 GB ok) ? > / > swap > var > /tmp > /usr > > Questions : > > 1. Would you kindly advise what is the best partitioning scheme on 2 hard drives? ZFS is supported OOTB on FreeBSD. Choose the "Auto (ZFS)" option for partitioning the system drive. You can set the swap size as you choose (I use 2g). You can also mirror and/or encrypt swap. I keep my operating system images on single, non-RAID SSD's. This makes it easy to backup, clone, and restore raw binary images. If you install onto a 1 TB drive, imaging operations will be impractical. Unfortunately, the FreeBSD installer does not provide an obvious way to limit the size of the FreeBSD installation -- it uses the entire drive. So, unless you are prepared to resort to more complex measures, the easy answer is to get a 16 GB SSD and install onto that. Once your system is installed, create a ZFS pool using the two 1 TB HDD's as a mirror. Create filesystems, create volumes, and/or set properties as required for your needs, > 2. in FreeBSD handbook says i would better create swap on both partitions? may someone advise HOW Let the installer do it for you. > and WHY ? Having swap partitions on multiple devices allows the kernel to reduce contention and/or perform concurrent I/O. David