From owner-freebsd-questions@freebsd.org Mon Aug 22 03:11:42 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 580C0BC12EE for ; Mon, 22 Aug 2016 03:11:42 +0000 (UTC) (envelope-from rcarter@pinyon.org) Received: from h2.pinyon.org (h2.pinyon.org [65.101.5.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D15611D79 for ; Mon, 22 Aug 2016 03:11:41 +0000 (UTC) (envelope-from rcarter@pinyon.org) Received: by h2.pinyon.org (Postfix, from userid 58) id BE25434D37; Sat, 20 Aug 2016 17:12:56 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pinyon.org; s=DKIM; t=1471738376; bh=E/esp1fM6COhUPqyskbsNb61aRgdwFc9GIERKbweAaQ=; h=Subject:To:References:From:Date:In-Reply-To; b=NEo2AVoOHavPLbpTE5ZDZNDJgADqLWRNKuCJGB2uMLE52wKzebQ4HCTt46ATzw9TK pzo4SF6vDXeFkKDioZxEQmZ42CVFmIvPdZDF3GTkOnrfJqGW9to9b32fi0DsOydlZj 473jjZ2h2cbT6Klwse89IydM+WQ2W5X/FsYdZ59Q= X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on h2.pinyon.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham autolearn_force=no version=3.4.1 Received: from [10.0.10.15] (h4.esturion.net [65.101.5.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by h2.pinyon.org (Postfix) with ESMTPSA id E3CB934D28 for ; Sat, 20 Aug 2016 17:12:55 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pinyon.org; s=DKIM; t=1471738375; bh=E/esp1fM6COhUPqyskbsNb61aRgdwFc9GIERKbweAaQ=; h=Subject:To:References:From:Date:In-Reply-To; b=NCEmvoq8nGSY4B9p4kSNyScQ6pqydufwjVIpoBNOY1hYDVwqf/NN3P1N66oywa2D6 mr1hUQVMXMpKxneeluQH9WIJ2h150wOMuKt99Il3fmbwlYs+dz2JO3jH10FyAMiZpm BezQ+za4Pun2i5PXaloAXa4Dcpnz16FdzY9iCH54= Subject: Re: erm shot my foot off with zfs, q on rescue To: freebsd-questions@freebsd.org References: <614e5532-b929-1e68-aa86-2e75b157565a@gmail.com> From: "Russell L. Carter" Message-ID: <0a1676e1-2d23-bcdd-3dc3-84f39c887514@pinyon.org> Date: Sat, 20 Aug 2016 17:12:55 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <614e5532-b929-1e68-aa86-2e75b157565a@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Aug 2016 03:11:42 -0000 On 08/20/16 16:51, Shamim Shahriar wrote: > On 21/08/2016 00:44, Russell L. Carter wrote: >> >> Hi, >> >> So I misfired and hosed my 10/stable zfs / mounts by running >> >> zfs set mountpoint=/ zroot/zetc >> >> so that now I don't seem to actually have any of the uh mandatory >> system directories visible. (turns red) >> >> No emergency thankfully, I've got three border gateways and just got >> all three happily configured so if I had to I could just reinstall >> this poor innocent one that I accidentally shot in the face. >> >> But as it happens I pulled it and have it interfaced with a keyboard >> and monitor and have booted a USB 10.3 stable install image. I >> dropped into the shell, and ran zfs list and it comes up with nothing. > I'm not sure it is supposed to -- your boot disc has no knowledge of > available pools or the zfs available. The better way of doing it, if I > understand right as to what you are trying to do, would be to run > > zpool import > > that will show you available zpools. > > Then you can import the pool using > > zpool import > > you can even set different mountpoints etc., the export it, and then fix > the mountpoints as to where they are supposed to be. Ok, that's a start. I ran zpool import, which showed zroot, and then did zpool import -f zroot, which happily succeeded, and this blew away all the / mounts, so that the situation for the boot image is the same for the system disk. That is, no / mounted directories are visible. I've rebooted the install image and looked at mounting to an existing directory but the mfs is read only. Running zpool import -o mountpoint=z1 zroot replies 'property mountpoint is not a valid pool property', which is true. Should I give up on this and polish my system installation technique? Thanks, Russell > Hope this helps. > Regards > > > > > _______________________________________________ > 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" >