From owner-freebsd-stable@FreeBSD.ORG Fri Dec 13 16:03:15 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 70AD9F92; Fri, 13 Dec 2013 16:03:15 +0000 (UTC) Received: from mail-ea0-x22a.google.com (mail-ea0-x22a.google.com [IPv6:2a00:1450:4013:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CC7CB150F; Fri, 13 Dec 2013 16:03:14 +0000 (UTC) Received: by mail-ea0-f170.google.com with SMTP id k10so982576eaj.1 for ; Fri, 13 Dec 2013 08:03:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=iWc52wvAXoTS0Wf6uV8PiErhCNvXws6EJzlCGqqhAEw=; b=aHSQ5OrXEzUQPTWfCoK4OX5qD3P87uulIB/WTTu5ncLGeq7tBk/RbGCIzDABgaiuD8 wCYjocwOqXvevswRfNRudhsBPRLy6sjvn4lzcbgkeskTl4BtLMsOpAzFS05jjs3thyZT c/wQdMDnr1E/H340zqn6cjXwF/1JygncPuexFfXu6CLanzzuuUPmGZH3cz0kx4MLI4ve zO/13dnCvxOfJ7lCB1z9H4NqH5bKI4m3LPHCLmVeXHudm5exWMf5ElflF/zRC1beEbMC 3hfFob/2MYQUDBTXRWSH5qHoSWNHJmxaiFrfnEKO5pKTc+Vl+UEVbqVS0AU/V50Peeww J5Sg== X-Received: by 10.14.88.134 with SMTP id a6mr3681904eef.5.1386950593160; Fri, 13 Dec 2013 08:03:13 -0800 (PST) Received: from [192.168.1.129] ([193.173.55.180]) by mx.google.com with ESMTPSA id e43sm8227111eep.7.2013.12.13.08.03.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 08:03:12 -0800 (PST) Message-ID: <52AB2FC1.5000605@gmail.com> Date: Fri, 13 Dec 2013 17:03:13 +0100 From: Johan Hendriks User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Devin Teske Subject: Re: From 10 Beta4 to 10 RC1 lost gpt labels added by the installer References: <52AACB86.8090703@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Dec 2013 16:03:15 -0000 Teske, Devin schreef: > On Dec 13, 2013, at 12:55 AM, Johan Hendriks wrote: > >> Hello all. >> >> I installed FreeBSD 10 Beta4 the day before the RC1 release and used the ZFS install option, all went well. >> I then downloaded the new source for 10 RC1 and did a buildworld. >> It rebooted, the machine booted fine only did it show an error regarding the swap space. >> I could not mount /dev/gpt/swap0 and /dev/gpt/swap1 >> >> In /etc/fstab i had the following lines >> >> # Device Mountpoint FStype Options Dump Pass# >> /dev/gpt/swap0 none swap sw 0 0 >> /dev/gpt/swap1 none swap sw 0 0 >> >> this did not work anymore, and i needed to add the glabels instead. >> >> /dev/diskid/DISK...... and so on. >> >> /dev/gpt was not there anymore. >> >> One more thing, i do not like the glabel option, is it possible to create an option to use gpt labels instead of glabel when creating the pool. > GPT labels *are* already used (glabel is not used). Well after the upgrade i have no GPT labels any more (they are on the disk, but not useable). I like the serial number in the label, maybe create GPT labels with the serial number. zfs0 and zfs1 tells nothing about the disk! gpart list | grep label gives me this jailhost ~ # gpart list | grep label label: gptboot0 label: zfs0 label: swap0 label: gptboot1 label: zfs1 label: swap1 So the disk has the labels. But they are not active, /dev/gpt is not available, i think it gets overwritten or pushed out of the way by glabel. jailhost ~ # cd /dev/g geom.ctl ggctl glabel list shows me the following jailhost ~ # glabel list Geom name: ada0 Providers: 1. Name: diskid/DISK-WMATV654xxxx Mediasize: 1000204886016 (932G) Sectorsize: 512 Mode: r2w2e3 secoffset: 0 offset: 0 seclength: 1953525168 length: 1000204886016 index: 0 Consumers: 1. Name: ada0 Mediasize: 1000204886016 (932G) Sectorsize: 512 Mode: r2w2e4 Geom name: ada1 Providers: 1. Name: diskid/DISK-WMATV627xxxx Mediasize: 1000204886016 (932G) Sectorsize: 512 Mode: r2w2e3 secoffset: 0 offset: 0 seclength: 1953525168 length: 1000204886016 index: 0 Consumers: 1. Name: ada1 Mediasize: 1000204886016 (932G) Sectorsize: 512 Mode: r2w2e4 This system is installed with the BETA4 CD and upgraded to RC1 by buildworld. > > >> I think glabel is just another layer which can cause trouble. >> > There's been a similar problem with graid, are you sure that's > not what's going on here? That the OS has picked up on some > BIOS-created thing? How can i see that? It is a proliant ML110, I use these proliant ML110 servers a lot and never had these kind of things. here is my dmesg output. jailhost ~ # dmesg Copyright (c) 1992-2013 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 10.0-RC1 #1 r259217: Wed Dec 11 15:56:40 CET 2013 root@jailhost:/usr/obj/usr/src/sys/KRNL amd64 FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 CPU: Intel(R) Xeon(R) CPU 3065 @ 2.33GHz (2327.55-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x6fb Family = 0x6 Model = 0xf Stepping = 11 Features=0xbfebfbff Features2=0xe3fd AMD Features=0x20100800 AMD Features2=0x1 TSC: P-state invariant, performance statistics real memory = 2147483648 (2048 MB) avail memory = 2047905792 (1953 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0 irqs 0-23 on motherboard random: initialized kbd1 at kbdmux0 acpi0: on motherboard acpi0: Power Button (fixed) cpu0: on acpi0 cpu1: on acpi0 atrtc0: port 0x70-0x71 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 attimer0: port 0x40-0x43,0x50-0x53 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: irq 16 at device 1.0 on pci0 pcib1: failed to allocate initial I/O port window: 0-0xfff pci1: on pcib1 uhci0: port 0x1820-0x183f irq 16 at device 26.0 on pci0 usbus0 on uhci0 uhci1: port 0x1840-0x185f irq 17 at device 26.1 on pci0 usbus1 on uhci1 uhci2: port 0x1860-0x187f irq 18 at device 26.2 on pci0 usbus2 on uhci2 ehci0: mem 0xec000000-0xec0003ff irq 18 at device 26.7 on pci0 usbus3: EHCI version 1.0 usbus3 on ehci0 pcib2: irq 16 at device 28.0 on pci0 pcib2: failed to allocate initial I/O port window: 0-0xfff pci5: on pcib2 pcib3: irq 16 at device 28.4 on pci0 pci13: on pcib3 vgapci0: mem 0xee000000-0xeeffffff,0xec100000-0xec103fff,0xec800000-0xecffffff irq 16 at device 0.0 on pci13 pcib4: irq 17 at device 28.5 on pci0 pci14: on pcib4 bge0: mem 0xed000000-0xed00ffff irq 17 at device 0.0 on pci14 bge0: CHIP ID 0x0000a200; ASIC REV 0x0a; CHIP REV 0xa2; PCI-E miibus0: on bge0 brgphy0: PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow bge0: Ethernet address: 00:24:81:b2:7d:a2 uhci3: port 0x1880-0x189f irq 16 at device 29.0 on pci0 usbus4 on uhci3 uhci4: port 0x18a0-0x18bf irq 17 at device 29.1 on pci0 usbus5 on uhci4 uhci5: port 0x18c0-0x18df irq 18 at device 29.2 on pci0 usbus6 on uhci5 ehci1: mem 0xec000400-0xec0007ff irq 16 at device 29.7 on pci0 usbus7: EHCI version 1.0 usbus7 on ehci1 pcib5: at device 30.0 on pci0 pci17: on pcib5 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1c50-0x1c57,0x1c44-0x1c47,0x1c48-0x1c4f,0x1c40-0x1c43,0x1c10-0x1c1f,0x1c00-0x1c0f irq 17 at device 31.2 on pci0 ata2: at channel 0 on atapci0 ata3: at channel 1 on atapci0 pci0: at device 31.3 (no driver attached) atapci1: port 0x1c68-0x1c6f,0x1c5c-0x1c5f,0x1c60-0x1c67,0x1c58-0x1c5b,0x1c30-0x1c3f,0x1c20-0x1c2f irq 18 at device 31.5 on pci0 ata4: at channel 0 on atapci1 ata5: at channel 1 on atapci1 acpi_button0: on acpi0 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 orm0: at iomem 0xc0000-0xc7fff,0xc8000-0xc8fff,0xdc000-0xdffff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] ppc0: cannot reserve I/O port range coretemp0: on cpu0 est0: on cpu0 p4tcc0: on cpu0 coretemp1: on cpu1 est1: on cpu1 p4tcc1: on cpu1 ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is present; to enable, add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf. ZFS filesystem version: 5 ZFS storage pool version: features support (5000) Timecounters tick every 1.000 msec random: unblocking device. usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 480Mbps High Speed USB v2.0 usbus4: 12Mbps Full Speed USB v1.0 usbus5: 12Mbps Full Speed USB v1.0 usbus6: 12Mbps Full Speed USB v1.0 usbus7: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen4.1: at usbus4 uhub3: on usbus4 ugen3.1: at usbus3 uhub4: on usbus3 ugen5.1: at usbus5 uhub5: on usbus5 ugen6.1: at usbus6 uhub6: on usbus6 ugen7.1: at usbus7 uhub7: on usbus7 uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered uhub3: 2 ports with 2 removable, self powered uhub5: 2 ports with 2 removable, self powered uhub6: 2 ports with 2 removable, self powered ada0 at ata2 bus 0 scbus0 target 0 lun 0 ada0: ATA-7 SATA 2.x device ada0: Serial Number WMATV6540962 ada0: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) ada0: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C) ada0: Previously was known as ad4 ada1 at ata3 bus 0 scbus1 target 0 lun 0 ada1: ATA-7 SATA 2.x device ada1: Serial Number WMATV6271729 ada1: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) ada1: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C) ada1: Previously was known as ad6 cd0 at ata4 bus 0 scbus2 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: Serial Number 698EEDC99DE2 cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes) cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed Netvsc initializing... SMP: AP CPU #1 Launched! Root mount waiting for: usbus7 usbus3 uhub4: 6 ports with 6 removable, self powered uhub7: 6 ports with 6 removable, self powered Trying to mount root from zfs:zroot/ROOT/default []... ugen0.2: at usbus0 ugen4.2: at usbus4 ukbd0: on usbus4 kbd2 at ukbd0 ums0: on usbus4 ums1: on usbus0 ums0: 8 buttons and [XYZ] coordinates ID=0 ums1: 3 buttons and [XYZ] coordinates ID=0 > > >> Another thing when installed Beta4 is the fact that a zpool status shows the gptid's >> This is not a pretty sight, and i think that the installer needs to put the kern.geom.label.gptid.enable=0 in /boot/loader.conf when using the zfs option. >> > Does this need to be diddled in the running kernel before creating > the zpool/datasets? or is it simply enough to drop it into loader.conf > for the reboot? > > I'll run some tests. As far as i know, an entry in /boot/loader.conf after the creation is fine. BTW i used to use a script on a memstick and then i did not need to use the kern.geom.label.gptid.enable=0 in /boot/loader.conf That was when i used GPT labels and FreeBSD 9.x Here is my zpool status with the kern.geom.label.gptid.enable=0 in /boot/loader.conf (also it uses the glabel stuff, and not the GPT labels.) jailhost ~ # zpool status pool: zroot state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 diskid/DISK-WMATV654xxxxp2 ONLINE 0 0 0 diskid/DISK-WMATV627xxxxp2 ONLINE 0 0 0 errors: No known data errors The funny thing is that now even without the kern.geom.label.gptid.enable=0 in /boot/loader.conf it hides the gptid's I think zpool cached it somehow. > > >> The install went very smooth, and i really like it. >> Thanks all for the great work. >> > Excellent. I'm working on the code right now. Thank you for feedback. Your welcome. I can redo the install with a 10.0 RC1 cd if you want? regards Johan