From owner-freebsd-stable@freebsd.org Sun Jul 29 15:57:41 2018 Return-Path: Delivered-To: freebsd-stable@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 2DFDC105A099 for ; Sun, 29 Jul 2018 15:57:41 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) (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 8E59D84EC7 for ; Sun, 29 Jul 2018 15:57:40 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by mail-lf1-x130.google.com with SMTP id u202-v6so6499139lff.9 for ; Sun, 29 Jul 2018 08:57:40 -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=wNkrkUNFMXkUorGAv0sf8syH5lyMgKOIsAj6clzzKWo=; b=KW+hL15cnsLJs/GM7tHRAOh9t29zo7QDzE+vg7ib4LQjz8/pJY4gXAbb5eeCA+QlM4 oFmCJLkGLXcqaHsy130h3GH3z72qBRv+cdsF6f2AIff3p7yzhQrWPMnIGjza+4UyGElb I9zwmrEnlya33OBUFMWaIYvCGkPiz2oKuCZvnj0JZiL2zEC9LjQLF/GeFGUrPxbG/ND1 8y3Bj0lhLHOG621h5WcgsRD2V7pRM6SnnYDyWlSfaRcmRgdI8fa5ktEEwhQpAFfYnSeM ZPjnuRytiEQtkX9/oclQSFLmZ35362mr/n3QYbD/sV6PlHwOx++0ntNS1yGu54EPui0G Hudw== 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=wNkrkUNFMXkUorGAv0sf8syH5lyMgKOIsAj6clzzKWo=; b=Izd9G53KwUqlNZas32+W4lFEM3L8nX3FW0Mwd0RB4XUkzE+BWA9jOnd1pyE/10vTwJ a1A0hnfxYaG2unrWA9iOSdErN7ICHdeeW9c/+hora3C+x7NnH+Z3G2T1ndtYkDQ3jFNF zmaLp0WtN8Ocf0bgIZOUvSFaqwD0hKp9MD9PhVhzxd5WGur2m7NwVYMTkB4jj/zYFm6k DlgvBHJUrDBTU1X4Z+W5G0Lny4nQXt3iLV8l/YGfUzfzo7K+C1DD6lHT7Y64CBnsgtEL sOcNI4rwDmkHh1Pn3lKfNq1Yyg5PaY42hTEmwWyHI8nVXrVTPqdJDQ1f/1JaDCShtrjS 7K+g== X-Gm-Message-State: AOUpUlHG6XjMpjKPRBZppeYSaDIrEd/PTVAVWFsY78r5zCb30YJ17n7/ NfRgHEH6o9qFmALsiChYobGAJmkLHH+4RMH5iqiLSQ== X-Google-Smtp-Source: AAOMgpe4MjVGxR/JjpyzDU671ZUX4pfzaiO+dKOFlT99VSuYy6718vPF48Qta2F4wCUX7FzK+WKRi1NjGrvOceXNgUI= X-Received: by 2002:a19:d754:: with SMTP id o81-v6mr8007701lfg.124.1532879859183; Sun, 29 Jul 2018 08:57:39 -0700 (PDT) MIME-Version: 1.0 References: <5243B4C1-513D-41E8-89AF-60487DEC29C8@lassitu.de> In-Reply-To: <5243B4C1-513D-41E8-89AF-60487DEC29C8@lassitu.de> From: Freddie Cash Date: Sun, 29 Jul 2018 08:57:26 -0700 Message-ID: Subject: Re: Booting off ZFS pool with failed ZIL/cache device To: Stefan Bethke Cc: FreeBSD Stable Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jul 2018 15:57:41 -0000 On Sun, Jul 29, 2018, 3:46 AM Stefan Bethke, wrote: > Folks, > > my ZIL/cache SSD apparently just died. Rebooting the system with the SATA > M.2 SSD hung, so I removed the card from the system. > > On powerup, loader acts normally, all four SATA disks (main Raid-Z1 > devices) are all probed successfully, but mount root fails: > > ZFS filesystem version: 5 > ZFS storage pool version: features support (5000) > Timecounters tick every 1.000 msec > ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 > ada0: ATA8-ACS SATA 3.x device > ada0: Serial Number Z5Q7K0RIFFRC > ada0: 600.000MB/s transfers (SATA 3.x, UDMA5, PIO 8192bytes) > ada0: Command Queueing enabled > ada0: 4769307MB (9767541168 512 byte sectors) > ada1 at ahcich2 bus 0 scbus2 target 0 lun 0 > ada1: ATA8-ACS SATA 3.x device > ada1: Serial Number Y5PIK0A2FFRC > ada1: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) > ada1: Command Queueing enabled > ada1: 4769307MB (9767541168 512 byte sectors) > ada2 at ahcich3 bus 0 scbus3 target 0 lun 0 > ada2: ATA8-ACS SATA 3.x device > ada2: Serial Number 36D2K0VZFFRC > ada2: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) > ada2: Command Queueing enabled > ada2: 4769307MB (9767541168 512 byte sectors) > ada3 at ahcich4 bus 0 scbus4 target 0 lun 0 > ada3: ATA8-ACS SATA 3.x device > ada3: Serial Number Z5SDK0J3FFRC > ada3: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) > ada3: Command Queueing enabled > ada3: 4769307MB (9767541168 512 byte sectors) > pass4 at ahciem0 bus 0 scbus6 target 0 lun 0 > pass4: SEMB S-E-S 2.00 device > Trying to mount root from zfs:p2/be/11 []... > GEOM_MIRROR: Device mirror/p2swap launched (4/4). > random: unblocking device. > Mounting from zfs:p2/be/11 failed with error 6; retrying for 3 more seconds > Mounting from zfs:p2/be/11 failed with error 6. > > Loader variables: > vfs.root.mountfrom=zfs:p2/be/11 > > Manual root filesystem specification: > : [options] > Mount using filesystem > and with the specified (optional) option list. > > eg. ufs:/dev/da0s1a > zfs:tank > cd9660:/dev/cd0 ro > (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /) > > ? List valid disk boot devices > . Yield 1 second (for background tasks) > Abort manual input > > mountroot> > > Is there an easy way to boot into single user mode and remove the > ZIL/cache devices that are not there anymore? Or do I need a USB key to > boot off of and zfs import the pool first? > > > Thanks, > Stefan > Boot off USB or CD, then try to manually import the pool. There's an option to "zpool import" to ignore missing log devices. Once it's imported, you can remove/detach the missing device. Then you should be able to boot again. Cheers, Freddie Typos courtesy of my phone's keyboard. >