From owner-freebsd-questions@freebsd.org Fri Apr 6 20:32:06 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 412E6F84023 for ; Fri, 6 Apr 2018 20:32:06 +0000 (UTC) (envelope-from mack63richard@gmail.com) Received: from mail-io0-x22c.google.com (mail-io0-x22c.google.com [IPv6:2607:f8b0:4001:c06::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D26D8750DD for ; Fri, 6 Apr 2018 20:32:05 +0000 (UTC) (envelope-from mack63richard@gmail.com) Received: by mail-io0-x22c.google.com with SMTP id e79so3121192ioi.7 for ; Fri, 06 Apr 2018 13:32:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uZfI4MAs8xk+HpgWagltI5zaf8QU6eAuBoDL3zlA4uY=; b=ZkI6lAy7HJEILCrHLd65s6tuf3lnG2O2S5TF9LFHr4qW4ozaCtkXsR/7LBLsOTj5pc MBOFADIdRUKO1uvAz6BPuR4Khjb5zMiN/wCKGWNPUJHANtfUVGsxH3T/W2do9hHS1uIc MIq+ZBvRSWIs1Y5vtuRoXN5sZzdRZw//4cu8aPGvYBqjguo+YKddBOM7B6NyLjGRLbPM KCIPb10vGW+3sPyibCnMsfBpEGpy9k9/kBzq6ltfi/54ifZhIV59aQ13tQRaE+B2L9mx h6SMwMCJCLpzBamlJIhiQqljKnPefZkXVTutgHxNO0zWefBY+5LjVr8jKeLL7rlrEuJ2 do4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uZfI4MAs8xk+HpgWagltI5zaf8QU6eAuBoDL3zlA4uY=; b=T86r/u3hxXFygQG0zyMg0EQRrAURHJ/AAREVcsaLPn+woTpCV8UNR6j5RJGeCArMxO t1w0cTE28l8RVvaT2buIRemKIBXiGO51FXThJb74X/tg/ynbaDwghikopSc0phQ7w+QC RV1kba+1EfIuF6hSmR0Mxky25oAEhGS7+k1kaPkO6XAhewIQ0JPbYK40NgC+MsP8ytAm QVQqCg0scb8g76FtCgZsnDc5ktGf0Zn9pZb43ezO+6/9Ynj73otTxZrektLHhDuIX+sh FZdD9AiJNJZsg0UFMaSnobU6ATHQxwn7fdAZivWg+uS+Z4E/KaopXoKn6kboxH8gzcWs 3ZfA== X-Gm-Message-State: ALQs6tAc/spCPXFDuidb3KmOobSsO0Xd/rx72QxOT4zy9dLN7I2wxMz6 Sl+ysg0A5fuCFsR7plzUoYnmabiKnwJvNV7x+Sw= X-Google-Smtp-Source: AIpwx48mGFht9u7c+WPkqHma3YKrhQ+EyVW/megG3+tmnJcZnMYgH/e5VFLXbMecEmzjBT4IqNkHiX8M3KrtrRGNTx0= X-Received: by 10.107.20.13 with SMTP id 13mr26345980iou.246.1523046724781; Fri, 06 Apr 2018 13:32:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Richard P Mackerras Date: Fri, 06 Apr 2018 20:31:54 +0000 Message-ID: Subject: Re: Freebsd root on zfs install To: Rance Hall Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2018 20:32:06 -0000 Hi Zfs always writes to new space rather than overwriting a file. So the wear (if that is what you are concerned about will tend to be relatively even. You appear to have 2TB usb sticks. I wouldn=E2=80=99t bother to do more. I = assume your memory sticks are quick. Back up important changing files to your spinning rust. By the time you wear out a usb stick 2TB will be too small to care about.. Of course if your sticks are not quick then that is a different matter. Swap is a biggie. You want to add swap in fast places.. you can add extra swap and remove current swap so add extra swap via your fstab. You could delete the current swap from fstab. HTH Richard P.S. have you got Samba working? On Fri, 6 Apr 2018 at 15:09, Rance Hall wrote: > I have a freebsd 11.1 server setup using root on zfs using a pair of > matching usb keys. > > I have a pair of matching 1TB drives for data, and a pair of 6TB drives f= or > media. > > I'm trying to minimize the number of disk writes to the usb keys so I'm > working on a plan to remount some of the zroot mounts onto the spinning > disks. > > I've already moved /tmp and /usr/home > > I'd like some suggestions of what to do next. > > Here's my current output of "zfs list | grep zroot": > > zroot 1.88G 10.2G 88K > /zroot > zroot/ROOT 1.26G 10.2G 88K non= e > zroot/ROOT/default 1.26G 10.2G 1.26G / > zroot/usr 633M 10.2G 88K /us= r > zroot/usr/ports 88K 10.2G 88K > /usr/ports > zroot/usr/src 633M 10.2G 633M > /usr/src > zroot/var 860K 10.2G 88K /va= r > zroot/var/audit 88K 10.2G 88K > /var/audit > zroot/var/crash 88K 10.2G 88K > /var/crash > zroot/var/log 400K 10.2G 400K > /var/log > zroot/var/mail 88K 10.2G 88K > /var/mail > zroot/var/tmp 108K 10.2G 108K > /var/tmp > > I have my eye on /var/log and /var/tmp and adding a mount for /usr/local/ > > > Thanks for your time guys. > _______________________________________________ > 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" >