From owner-freebsd-fs@freebsd.org Sat May 30 21:18:07 2020 Return-Path: Delivered-To: freebsd-fs@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 30ED42F7279; Sat, 30 May 2020 21:18:07 +0000 (UTC) (envelope-from claudiu.vasadi@gmail.com) Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49ZDmt2Ngtz3SV0; Sat, 30 May 2020 21:18:05 +0000 (UTC) (envelope-from claudiu.vasadi@gmail.com) Received: by mail-lf1-x12c.google.com with SMTP id 202so1730539lfe.5; Sat, 30 May 2020 14:18: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=tjD08vNkEEdkXy7y99Jvd834HyUY3tmSQJ97DBJ/iXk=; b=TAiQZKEdfd+yM/K0L7L2w6f7YTXhR+v1HesBMzxBvAVomtcBufgeDG0JniElCMiDhE VwBr0O/2J2TE9XLXvuuWOa8byu6XC5qs+eQwm0muxypC80xNLAJgAVRZ7T9ya/d6B/bH V1wfv0x7cadQbJSy71qT6tsw9+CJMuWDbA02lZW+b4cs003NKbONUY46Cg2lDNnOyoY/ AdxnAE83jE9IOIQept2muDSBPxI8hmwMqZfqkulfb7ZXGJYuKz80LuK9dSO1gFjOPboL CwFMi4bQ+wBlT7MoIuloEMWjqs983Jc4B1NO3OItDUU0lzDG9XqkbVi5YT3cJUYv0JlL eAaw== 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=tjD08vNkEEdkXy7y99Jvd834HyUY3tmSQJ97DBJ/iXk=; b=CAG44ASg1TTPP9gD8ywvA50QxvZ9uuDsBo51roHu1L/sgR6mIBr5Km2MX3zwsh7Bf6 szIonQAaiZDpTF4WlWbYAKdvOQovUrr809rD0VkyoYJVsUG0+FD78OPoJ0m9NbKCfsY4 4GB2vRBFX9NzoxJWCQikAYcY5S/FDWM/n36XDjBEjl6vur17vk8EOOfTqic3oP/VS/Yk iA8pXISPHBI+zs+qOcrBp3hMXHBZ+iPDhRptz2NlnTjXZJIMOFKhDiwzO/VXoEORjGe7 C6FmUGljY/qZuWN3w17nBSR2907CSisFbe122JWcpZHzj+PBr6X6VrRCsym0Ebphag8h y0Jg== X-Gm-Message-State: AOAM533TLKd4FYNfkavvhmnpQnHs2oqqCj6E1rMFh+EbisOxxeEesKB/ V7k5fD7Jnw7FP2QQnNC2jpk0fnw6b04T92lpf8Y= X-Google-Smtp-Source: ABdhPJzCcPKQx6OGGHIFPDtVtDb08loCX5dyWNvpc8qhmup7A3fSk4EaZpCxoa1LHQRoxQuaq1/K1l6l3LYrm0DYyro= X-Received: by 2002:a19:986:: with SMTP id 128mr7571116lfj.141.1590873484214; Sat, 30 May 2020 14:18:04 -0700 (PDT) MIME-Version: 1.0 References: <20200529143703.GA78062@lordsith.net> In-Reply-To: From: claudiu vasadi Date: Sat, 30 May 2020 23:17:53 +0200 Message-ID: Subject: Re: imported zpool not persistent across reboot To: Ronald Klop Cc: freebsd-fs , marco , freebsd-current@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 49ZDmt2Ngtz3SV0 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=TAiQZKEd; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of claudiuvasadi@gmail.com designates 2a00:1450:4864:20::12c as permitted sender) smtp.mailfrom=claudiuvasadi@gmail.com X-Spamd-Result: default: False [-3.91 / 15.00]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.01)[-1.007]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.01)[-1.014]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::12c:from]; NEURAL_HAM_SHORT(-0.89)[-0.886]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 May 2020 21:18:07 -0000 zpool set cachefile=/boot/zfs/zpool.cache On Sat, May 30, 2020 at 10:05 PM Ronald Klop wrote: > > On Fri, 29 May 2020 16:37:03 +0200, marco wrote: > > > I'm on -CURRENT (r361307) and using base ZFS. > > I imported a zpool that was created on SmartOS with some unsupported > > feature flags so had to import it read-only. > > > What was the exact command you used to import the pool? > > Regards, > Ronald. > > > > > > [~] zpool get all backup > > NAME PROPERTY > > VALUE SOURCE > > backup size > > 1.36T - > > backup capacity > > 9% - > > backup altroot > > - default > > backup health > > ONLINE - > > backup guid > > 11841096011823395086 default > > backup version > > - default > > backup bootfs > > - default > > backup delegation > > on default > > backup autoreplace > > off default > > backup cachefile > > - default > > backup failmode > > wait default > > backup listsnapshots > > off default > > backup autoexpand > > off default > > backup dedupditto > > 0 default > > backup dedupratio > > 1.00x - > > backup free > > 1.24T - > > backup allocated > > 126G - > > backup readonly > > on - > > backup comment > > - default > > backup expandsize > > - - > > backup freeing > > 0 default > > backup fragmentation > > 0% - > > backup leaked > > 0 default > > backup bootsize > > - default > > backup checkpoint > > - - > > backup multihost > > off default > > backup feature@async_destroy > > enabled local > > backup feature@empty_bpobj > > active local > > backup feature@lz4_compress > > active local > > backup feature@multi_vdev_crash_dump > > enabled local > > backup feature@spacemap_histogram > > active local > > backup feature@enabled_txg > > active local > > backup feature@hole_birth > > active local > > backup feature@extensible_dataset > > active local > > backup feature@embedded_data > > active local > > backup feature@bookmarks > > enabled local > > backup feature@filesystem_limits > > enabled local > > backup feature@large_blocks > > enabled local > > backup feature@large_dnode > > enabled local > > backup feature@sha512 > > enabled local > > backup feature@skein > > enabled local > > backup feature@device_removal > > enabled local > > backup feature@obsolete_counts > > enabled local > > backup feature@zpool_checkpoint > > enabled local > > backup feature@spacemap_v2 > > active local > > backup feature@allocation_classes > > enabled local > > backup unsupported@com.datto:bookmark_v2 > > inactive local > > backup unsupported@org.illumos:edonr > > inactive local > > backup unsupported@com.datto:encryption > > inactive local > > backup unsupported@com.datto:resilver_defer > > inactive local > > backup unsupported@org.zfsonlinux:userobj_accounting > > readonly local > > backup unsupported@org.zfsonlinux:project_quota > > readonly local > > backup unsupported@com.delphix:log_spacemap > > readonly local > > > > Whenever I reboot that zpool is no longer imported. > > > > I've checked /boot/defaults/loader.conf, /etc/defaults/rc.conf but > > haven't seen any keys that I need to make the imported pool persistent. > > I've read something on the cachefile=path setting in zpool(8) but as one > > can see it's set to default > > I guess I must've overlooked something but haven't found it so far. > > > > thanks > _______________________________________________ > freebsd-fs@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" -- Best regards, Claudiu Vasadi