From owner-freebsd-virtualization@freebsd.org Tue Dec 5 23:56:40 2017 Return-Path: Delivered-To: freebsd-virtualization@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 68BDEE8762D for ; Tue, 5 Dec 2017 23:56:40 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 20CDC79453 for ; Tue, 5 Dec 2017 23:56:39 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [203.13.68.150]) by alto.onthenet.com.au (Postfix) with ESMTPS id A2E8E20AE974 for ; Wed, 6 Dec 2017 09:56:36 +1000 (AEST) Received: from localhost (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id 9DEA6280A03 for ; Wed, 6 Dec 2017 09:56:36 +1000 (AEST) X-Amavis-Modified: Mail body modified (using disclaimer) - iredmail.onthenet.com.au Received: from iredmail.onthenet.com.au ([127.0.0.1]) by localhost (iredmail.onthenet.com.au [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id mVVcZrfpGAwM for ; Wed, 6 Dec 2017 09:56:36 +1000 (AEST) Received: from Peters-MacBook-Pro-2.local (96-82-80-65-static.hfc.comcastbusiness.net [96.82.80.65]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id 9A4582809A8; Wed, 6 Dec 2017 09:56:34 +1000 (AEST) Subject: Re: Recovering an ZFS vm To: Randy Terbush References: Cc: "freebsd-virtua." From: Peter Grehan Message-ID: <81d05d9d-044a-9cad-40e3-5ddf86da6570@freebsd.org> Date: Tue, 5 Dec 2017 15:56:29 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=XtWKARN9 c=1 sm=1 tr=0 a=A6CF0fG5TOl4vs6YHvqXgw==:117 a=mwgbnDbW7alINpy3vhoKyg==:17 a=IkcTkHD0fZMA:10 a=ocR9PWop10UA:10 a=vCW1xSsoxNASy_69gQsA:9 a=QEXdDO2ut3YA:10 wl=host:3 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2017 23:56:40 -0000 Hi Randy, > I have a Centos vm that has suddenly stopped booting. At the console, grub > tells me the following if I attempt to list any of the available partitions. > > error: not a correct XFS inode. > error: not a correct XFS inode. > error: not a correct XFS inode. > error: not a correct XFS inode. > error: not a correct XFS inode. > Filesystem type xfs, UUID 7652ffda-f7c5-408a-b0ce-b554b66fc2e5 - Partition > start at 2048 - Total size 2097152 sectors > grub> > > Is there an easy way to recover this? This has happened more than once. > Just so happens there is something on this image I would like to have > access to... Looks like the grub partition was upgraded to the version of XFS that has the CRC feature enabled (7.2 ?). Unfortunately this feature is not understood by grub-bhyve :( One way to recover the disk is to create a new VM with the most recent CentOS, but using UEFI for the bootloader. Then, add this disk to the guest, and from within the guest I think you can run an XFS utility that will disable the use of CRCs on that partition. The proper fix would be for grub-bhyve to be updated to the latest version of grub2, though a workaround is to create guests with UEFI and not use grub-bhyve. later, Peter.