From owner-freebsd-fs@FreeBSD.ORG Thu May 26 12:50:11 2011 Return-Path: Delivered-To: freebsd-fs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C40B8106566B for ; Thu, 26 May 2011 12:50:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B32BA8FC15 for ; Thu, 26 May 2011 12:50:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4QCoBf2011650 for ; Thu, 26 May 2011 12:50:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4QCoBRr011649; Thu, 26 May 2011 12:50:11 GMT (envelope-from gnats) Date: Thu, 26 May 2011 12:50:11 GMT Message-Id: <201105261250.p4QCoBRr011649@freefall.freebsd.org> To: freebsd-fs@FreeBSD.org From: Andriy Gapon Cc: Subject: Re: kern/155484: [ufs] GPT + UFS boot don't work well together X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andriy Gapon List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2011 12:50:11 -0000 The following reply was made to PR kern/155484; it has been noted by GNATS. From: Andriy Gapon To: Andrey Vladimirov Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: kern/155484: [ufs] GPT + UFS boot don't work well together Date: Thu, 26 May 2011 15:28:48 +0300 I can not reproduce your problem. This is what I did (to provide a full and clean picture unlike your original example): $ gpart create -s gpt /dev/zvol/pond/zvol2 zvol/pond/zvol2 created $ gpart add -s 64K -t freebsd-boot zvol/pond/zvol2 zvol/pond/zvol2p1 added $ gpart add -s 128m -t freebsd-swap -l swap0 zvol/pond/zvol2 zvol/pond/zvol2p2 added $ gpart add -t freebsd-ufs -l disk0 zvol/pond/zvol2 zvol/pond/zvol2p3 added $ gpart bootcode -b /boot/pmbr -p /boot/gptboot -i1 zvol/pond/zvol2 bootcode written to zvol/pond/zvol2 $ newfs /dev/zvol/pond/zvol2p3 /dev/zvol/pond/zvol2p3: 895.9MB (1834812 sectors) block size 16384, fragment size 2048 using 5 cylinder groups of 183.72MB, 11758 blks, 23552 inodes. super-block backups (for fsck -b #) at: 160, 376416, 752672, 1128928, 1505184 $ mount /dev/zvol/pond/zvol2p3 /mnt $ cp -a /boot /mnt/boot $ umount /mnt $ gpart show zvol/pond/zvol2 => 34 2097085 zvol/pond/zvol2 GPT (1.0G) 34 128 1 freebsd-boot (64k) 162 262144 2 freebsd-swap (128M) 262306 1834813 3 freebsd-ufs (895M) $ name -srm FreeBSD 9.0-CURRENT amd64 After this I can boot to kernel from this zvol in qemu without any problems. So either there is some pilot error, or some problems with your boot blocks or with 8GB size of the swap partition (but somehow I doubt that this is the case). Do you have a chance to play with your configuration more? If so, can you try smaller swap partition sizes (starting with 128M for example)? Can you try to use boot blocks (gptboot) from a recent head/CURRENT snapshot? -- Andriy Gapon