From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 23 18:33:01 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 017D21065670 for ; Mon, 23 Jan 2012 18:33:01 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id BE36D8FC14 for ; Mon, 23 Jan 2012 18:32:59 +0000 (UTC) Received: by obcwo16 with SMTP id wo16so4961662obc.13 for ; Mon, 23 Jan 2012 10:32:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=6Fn7DeTSHzT3lv/Ui/lr0P15z8UVl3VAx0Bp3HEqJEU=; b=oPHIS7xbNuffRxe1TGlTbtq6+wtPw+pUM9CYuzBH/9P83qe7Y1szHSmJ7ki5+rLv71 9j/jqTx8tEhFJkXrJsIbBudspWTtMD7J9CLVJuEO8MNq2hTF8L2Z1vtA4d4I2ccyUm5h JkykDpRoa0kAmAceFVGbVOEo/7VSLclAXB37I= MIME-Version: 1.0 Received: by 10.182.232.36 with SMTP id tl4mr8803503obc.58.1327343579248; Mon, 23 Jan 2012 10:32:59 -0800 (PST) Received: by 10.182.46.163 with HTTP; Mon, 23 Jan 2012 10:32:59 -0800 (PST) In-Reply-To: <1327343079.69022.87.camel@revolution.hippie.lan> References: <009501ccd9f9$cad088d0$60719a70$@fisglobal.com> <1327343079.69022.87.camel@revolution.hippie.lan> Date: Mon, 23 Jan 2012 10:32:59 -0800 Message-ID: From: Garrett Cooper To: Ian Lepore Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Devin Teske Subject: Re: Parallels v4 regression (aka ada(4) oddity) in RELENG_9 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jan 2012 18:33:01 -0000 On Mon, Jan 23, 2012 at 10:24 AM, Ian Lepore wrote: > On Mon, 2012-01-23 at 10:15 -0800, Garrett Cooper wrote: >> On Mon, Jan 23, 2012 at 10:06 AM, Devin Teske wrote: >> > I have a Parallels virtual machine and it runs FreeBSD 4 through 8 jus= t >> > swimmingly. >> > >> > However, in RELENG_9 I notice something different. My once "ad0" is no= w showing >> > up as "ada0". However, something even stranger is that devfs is provid= ing both >> > ad0 family devices AND ada0 family devices. >> > >> > What's worse is that I can't seem to partition the disk with MBR+diskl= abel >> > scheme. >> > >> > My procedure goes something like this: >> > >> > 1. Boot from RELENG_9 LiveCD >> > 2. Execute: sysctl -n kern.disks >> > 3. Notice two items: cd0 ada0 >> > 4. Look in /dev >> > 5. Notice several items: ad0 ad0p1 ad0p2 ad0p3 ada0 ada0p1 ada0p2 ada0= p3 >> > 6. Wipe partition table by executing: dd if=3D/dev/zero of=3D/dev/ada0= bs=3D512k >> > count=3D256 >> > 7. Look in /dev >> > 8. Notice less items now: ad0 ada0 >> > 9. Execute: sysctl -n kern.disks >> > 10. Notice nothing changed: cd0 ada0 >> > 11. Write out standard "whole disk" MBR "slice" >> > 12. Look in /dev >> > 13. Notice that nothing changed: ad0 ada0 >> > NOTE: Where is ad0s1 or ada0s1? >> > 14. Use fdisk to make sure everything was written successfully >> > 15. Notice everything looks good (slice 1 is of type FreeBSD, slice 2,= 3, and 4 >> > are unused) >> > 16. Reboot >> > 17. Boot back into RELENG_9 LiveCD >> > 18. Look in /dev >> > 19. Notice that the old devices are back!: ad0 ad0p1 ad0p2 ad0p3 ada0 = ada0p1 >> > ada0p2 ada0p3 >> > 20. Use fstab to look at MBR partition table >> > 21. Notice that things look good (with respect to fdisk'ing): slice 1 = is >> > FreeBSD, 2, 3, and 4 are still unused >> > 22. Notice /dev still doesn't have ad0s1 or ada0s1 >> > 23. Use gpart to look at ada0 >> > 24. Notice "GPT [CORRUPT]" >> > >> > ... >> > >> > OK!?!? >> > >> > ... >> > >> > Use same exact RELENG_9 LiveCD on either a physical machine or VMware = Virtual >> > machine. >> > >> > SUCCESS!! >> > >> > Go back to Parallels 4 >> > >> > FAILURE!! >> > >> > Go back to RELENG_8 LiveCD with Parallels 4 >> > >> > SUCCESS!! >> > >> > What's going on here? I think ada(4) is my problem. Can someone please= provide >> > feedback? Willing to dig further and provide any/all feedback to help = fix this >> > regression. >> >> =A0 =A0 The 'bug' is in gpart/geom and the 'issue' is present in prior >> versions of FreeBSD. The backup partition is now more of a thorn in >> everyone's side than previous versions. gpart delete'ing all the >> partitions, then doing gpart destroy is probably what you want (there >> isn't a simple one-liner that would do this). > > 'gpart destroy -F ' should do it in one step. It's better to be methodical and delete all of the partitions and create the table from scratch. I've run into reproducible cases in the past where just doing gpart destroy -F for instance [on 9.0-BETA1+ media] didn't work because geom retasted the partition tables and slices. Thanks, -Garrett