Date: Fri, 13 Dec 2013 17:03:13 +0100 From: Johan Hendriks <joh.hendriks@gmail.com> To: Devin Teske <dteske@freebsd.org> Cc: freebsd-stable <freebsd-stable@freebsd.org> Subject: Re: From 10 Beta4 to 10 RC1 lost gpt labels added by the installer Message-ID: <52AB2FC1.5000605@gmail.com> In-Reply-To: <F6F345D7-FCDE-4D33-8EE9-71B7CE0656DC@fisglobal.com> References: <52AACB86.8090703@gmail.com> <F6F345D7-FCDE-4D33-8EE9-71B7CE0656DC@fisglobal.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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<TAB> 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Features2=0xe3fd<SSE3,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM> AMD Features=0x20100800<SYSCALL,NX,LM> AMD Features2=0x1<LAHF> TSC: P-state invariant, performance statistics real memory = 2147483648 (2048 MB) avail memory = 2047905792 (1953 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: <HP ProLiant> 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 <Version 2.0> irqs 0-23 on motherboard random: <Software, Yarrow> initialized kbd1 at kbdmux0 acpi0: <HP ProLiant> on motherboard acpi0: Power Button (fixed) cpu0: <ACPI CPU> on acpi0 cpu1: <ACPI CPU> on acpi0 atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 attimer0: <AT timer> 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: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0 pcib1: failed to allocate initial I/O port window: 0-0xfff pci1: <ACPI PCI bus> on pcib1 uhci0: <Intel 82801I (ICH9) USB controller> port 0x1820-0x183f irq 16 at device 26.0 on pci0 usbus0 on uhci0 uhci1: <Intel 82801I (ICH9) USB controller> port 0x1840-0x185f irq 17 at device 26.1 on pci0 usbus1 on uhci1 uhci2: <Intel 82801I (ICH9) USB controller> port 0x1860-0x187f irq 18 at device 26.2 on pci0 usbus2 on uhci2 ehci0: <Intel 82801I (ICH9) USB 2.0 controller> mem 0xec000000-0xec0003ff irq 18 at device 26.7 on pci0 usbus3: EHCI version 1.0 usbus3 on ehci0 pcib2: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0 pcib2: failed to allocate initial I/O port window: 0-0xfff pci5: <ACPI PCI bus> on pcib2 pcib3: <ACPI PCI-PCI bridge> irq 16 at device 28.4 on pci0 pci13: <ACPI PCI bus> on pcib3 vgapci0: <VGA-compatible display> mem 0xee000000-0xeeffffff,0xec100000-0xec103fff,0xec800000-0xecffffff irq 16 at device 0.0 on pci13 pcib4: <ACPI PCI-PCI bridge> irq 17 at device 28.5 on pci0 pci14: <ACPI PCI bus> on pcib4 bge0: <HP NC105i PCIe Gigabit Server Adapter, ASIC rev. 0x00a200> mem 0xed000000-0xed00ffff irq 17 at device 0.0 on pci14 bge0: CHIP ID 0x0000a200; ASIC REV 0x0a; CHIP REV 0xa2; PCI-E miibus0: <MII bus> on bge0 brgphy0: <BCM5722 1000BASE-T media interface> 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: <Intel 82801I (ICH9) USB controller> port 0x1880-0x189f irq 16 at device 29.0 on pci0 usbus4 on uhci3 uhci4: <Intel 82801I (ICH9) USB controller> port 0x18a0-0x18bf irq 17 at device 29.1 on pci0 usbus5 on uhci4 uhci5: <Intel 82801I (ICH9) USB controller> port 0x18c0-0x18df irq 18 at device 29.2 on pci0 usbus6 on uhci5 ehci1: <Intel 82801I (ICH9) USB 2.0 controller> mem 0xec000400-0xec0007ff irq 16 at device 29.7 on pci0 usbus7: EHCI version 1.0 usbus7 on ehci1 pcib5: <ACPI PCI-PCI bridge> at device 30.0 on pci0 pci17: <ACPI PCI bus> on pcib5 isab0: <PCI-ISA bridge> at device 31.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel ICH9 SATA300 controller> port 0x1c50-0x1c57,0x1c44-0x1c47,0x1c48-0x1c4f,0x1c40-0x1c43,0x1c10-0x1c1f,0x1c00-0x1c0f irq 17 at device 31.2 on pci0 ata2: <ATA channel> at channel 0 on atapci0 ata3: <ATA channel> at channel 1 on atapci0 pci0: <serial bus, SMBus> at device 31.3 (no driver attached) atapci1: <Intel ICH9 SATA300 controller> port 0x1c68-0x1c6f,0x1c5c-0x1c5f,0x1c60-0x1c67,0x1c58-0x1c5b,0x1c30-0x1c3f,0x1c20-0x1c2f irq 18 at device 31.5 on pci0 ata4: <ATA channel> at channel 0 on atapci1 ata5: <ATA channel> at channel 1 on atapci1 acpi_button0: <Power Button> on acpi0 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xc8fff,0xdc000-0xdffff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] ppc0: cannot reserve I/O port range coretemp0: <CPU On-Die Thermal Sensors> on cpu0 est0: <Enhanced SpeedStep Frequency Control> on cpu0 p4tcc0: <CPU Frequency Thermal Control> on cpu0 coretemp1: <CPU On-Die Thermal Sensors> on cpu1 est1: <Enhanced SpeedStep Frequency Control> on cpu1 p4tcc1: <CPU Frequency Thermal Control> 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: <Intel> at usbus0 uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0 ugen1.1: <Intel> at usbus1 uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1 ugen2.1: <Intel> at usbus2 uhub2: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2 ugen4.1: <Intel> at usbus4 uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4 ugen3.1: <Intel> at usbus3 uhub4: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3 ugen5.1: <Intel> at usbus5 uhub5: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus5 ugen6.1: <Intel> at usbus6 uhub6: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus6 ugen7.1: <Intel> at usbus7 uhub7: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> 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: <GB1000EAMYC HPG3> 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: <GB1000EAMYC HPG3> 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: <HL-DT-ST DVD-RAM GH40L LA00> 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: <Logitech> at usbus0 ugen4.2: <ServerEngines> at usbus4 ukbd0: <ServerEngines SE USB Device, class 0/0, rev 1.10/0.01, addr 2> on usbus4 kbd2 at ukbd0 ums0: <ServerEngines SE USB Device, class 0/0, rev 1.10/0.01, addr 2> on usbus4 ums1: <Logitech USB-PS2 Optical Mouse, class 0/0, rev 2.00/20.00, addr 2> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52AB2FC1.5000605>