FreeNAS "corrupt or invalid GPT detected"

mymtom 2010-08-03 05:59:04
FreeNAS 0.7.1 Shere (revision 5127)
启动就报
GEOM: ad2: corrupt or invalid GPT detected.
GEOM: ad2: GPT rejected -- may not be recoverable.
但是使用正常

========
Copyright (c) 1992-2009 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 7.2-RELEASE-p7 #0: Sat Apr 10 23:20:12 JST 2010
root@fbsd7.freenas.local:/usr/obj/freenas/usr/src/sys/FREENAS-i386
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Genuine Intel(R) CPU T2400 @ 1.83GHz (1828.07-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x6e8 Stepping = 8
Features=0xfe9fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS>
Features2=0x1<SSE3>
AMD Features=0x100000<NX>
real memory = 536870912 (512 MB)
avail memory = 511193088 (487 MB)
ACPI APIC Table: <PTLTD APIC >
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 1.1> irqs 0-23 on motherboard
wlan: mac acl policy registered
kbd1 at kbdmux0
cryptosoft0: <software crypto> on motherboard
padlock0: No ACE support.
acpi0: <INTEL 440BX> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
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> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1060-0x106f at device 7.1 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
pci0: <bridge> at device 7.3 (no driver attached)
vgapci0: <VGA-compatible display> port 0x1070-0x107f mem 0xf0000000-0xf7ffffff,0xe8000000-0xe87fffff at device 15.0 on pci0
mpt0: <LSILogic 1030 Ultra4 Adapter> port 0x1080-0x10ff mem 0xe8800000-0xe8800fff irq 17 at device 16.0 on pci0
mpt0: [ITHREAD]
mpt0: MPI Version=1.2.0.0
pcib2: <PCI-PCI bridge> mem 0xe8801000-0xe8801fff at device 17.0 on pci0
pci2: <PCI bus> on pcib2
le0: <AMD PCnet-PCI> port 0x2000-0x207f irq 18 at device 0.0 on pci2
le0: 16 receive buffers, 4 transmit buffers
le0: Ethernet address: 00:0c:29:89:f3:23
le0: [ITHREAD]
acpi_acad0: <AC Adapter> on acpi0
speaker0: <PC speaker> port 0x61 on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio0: [FILTER]
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
sio1: [FILTER]
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FILTER]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
cpu0: <ACPI CPU> on acpi0
coretemp0: <CPU On-Die Thermal Sensors> on cpu0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xc8fff,0xdc000-0xdffff,0xe0000-0xe3fff pnpid ORM0000 on isa0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
ppbus0: [ITHREAD]
ppi0: <Parallel I/O> on ppbus0
ppc0: [GIANT-LOCKED]
ppc0: [ITHREAD]
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
Timecounter "TSC" frequency 1828073422 Hz quality 800
Timecounters tick every 10.000 msec
ipfw2 (+ipv6) initialized, divert loadable, nat loadable, rule-based forwarding disabled, default to accept, logging limited to 5 packets/entry by default
ad0: 1024MB <VMware Virtual IDE Hard Drive 00000001> at ata0-master UDMA33
ad1: 512MB <VMware Virtual IDE Hard Drive 00000001> at ata0-slave UDMA33
ad2: 512MB <VMware Virtual IDE Hard Drive 00000001> at ata1-master UDMA33
ad3: 512MB <VMware Virtual IDE Hard Drive 00000001> at ata1-slave UDMA33
Waiting 5 seconds for SCSI devices to settle
GEOM: ad2: corrupt or invalid GPT detected.
GEOM: ad2: GPT rejected -- may not be recoverable.
GEOM_LABEL: Label for provider ad0s1 is ufsid/4c5800c36e817ea9.
GEOM_LABEL: Label for provider ad0s1 is ufs/root.
GEOM_LABEL: Label for provider ad0s2 is ufsid/4c5800c4f111c83e.
GEOM_LABEL: Label for provider ad0s2 is ufs/data.
Trying to mount root from ufs:/dev/ad0s1a
GEOM_LABEL: Label ufs/root removed.
GEOM_LABEL: Label ufsid/4c5800c36e817ea9 removed.
GEOM_LABEL: Label for provider ad0s1 is ufsid/4c5800c36e817ea9.
GEOM_LABEL: Label for provider ad0s1 is ufs/root.
GEOM_LABEL: Label ufs/root removed.
GEOM_LABEL: Label ufsid/4c5800c36e817ea9 removed.
GEOM_RAID5: registered shutdown event handler.
GEOM_RAID5: raid5: device created (stripesize=131072).
GEOM_RAID5: raid5: ad3(2): disk attached.
GEOM_RAID5: raid5: ad2(1): disk attached.
GEOM_RAID5: raid5: ad1(0): disk attached.
GEOM_RAID5: raid5: activated.
GEOM_LABEL: Label for provider raid5/raid5p1 is ufsid/4c58087119c41b09.
GEOM_LABEL: Label for provider raid5/raid5p1 is ufs/raid5.
GEOM_LABEL: Label ufs/raid5 removed.
GEOM_LABEL: Label ufsid/4c58087119c41b09 removed.

...全文
449 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
mymtom 2010-08-11
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 steptodream 的回复:]

哦 应该是这一个
http://freenas.org/faq:0047
[/Quote]
就是这个了,多谢!
原因是:
当一个磁盘作为RAID或者ZFS的成员使用时,是当做裸盘(分区表也用来存储数据)来用的,在格式化的时候,GPT会被覆盖,所以内核在检查成员磁盘的GPT时会报错:
GEOM: ad2: corrupt or invalid GPT detected.
GEOM: ad2: GPT rejected -- may not be recoverable.
但是从RAID的原理来看,不会影响使用,只是内核误报。
我的情况是,用ad1-ad3做RAID5, 刚添加成员磁盘,完成RAID5时,不会报错,一旦格式化RAID5磁盘,ad2就开始报错了,可能是因为格式化的时候会写入RAID5的GPT,结果就覆盖了成员盘的GPT
希望新版本能保留这个区域,或者内核检测到磁盘是用作成员盘的时候,不要报错了!
steptodream 2010-08-03
  • 打赏
  • 举报
回复
哦 应该是这一个
http://freenas.org/faq:0047
steptodream 2010-08-03
  • 打赏
  • 举报
回复
我也查了会 还是没找到线索
刚才那个链接上 那人问是不是用gpt destroy
可是后面没人回了

我又看到了个好像是官方的faq 你看看
http://freenas.org/faq:0048
mymtom 2010-08-03
  • 打赏
  • 举报
回复
这就是说是由于分区表(MBR/GPT)的问题?虽然我没有用ZFS,我只是用GEOM_RAID5,不过看起来问题很相似。
可是看了半天也没有看懂如何zero out the entire disk,是"gpt destroy"吗?


[Quote=引用 1 楼 steptodream 的回复:]
没有用过这个哇
这个好像也是讨论这个的http://forums.freebsd.org/showthread.php?t=2139
你看看啊
[/Quote]
Linux-Torvalds 2010-08-03
  • 打赏
  • 举报
回复
虚拟机下的FreeBSD,没有出现你所说的情况。
steptodream 2010-08-03
  • 打赏
  • 举报
回复
没有用过这个哇
这个好像也是讨论这个的http://forums.freebsd.org/showthread.php?t=2139
你看看啊

23,116

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧