NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: GPT missing after controller swap (wd to ld)
On 10/10/16 8:14 AM, Christos Zoulas wrote:
In article <4c31b2ab-3161-9dc1-2d2b-74278c891065%zabrico.com@localhost>,
Louis Guillaume <louis%zabrico.com@localhost> wrote:
Hi,
On NetBSD 7.0_STABLE, i386, (from earlier this year) I had configured a
couple of disks with GPTs and then switched controllers (wd1 now shows
up as ld1) and now the GPT appears to have gone missing. However my
wedges are still there...
# gpt show ld1
gpt: error: map entry doesn't fit media
gpt: unable to open device 'rld1d': No such file or directory
# dkctl ld1 listwedges
/dev/rld1d: 2 wedges:
dk0: boot0, 524288 blocks at 128, type: ffs
dk1: disk0, 3906504704 blocks at 524416, type: raidframe
The first wedge is intended to just hold a kernel and emergency root
file system for booting. The root file system is on a raid array built
with dk1 (and others). I'm currently booted off a separate disk because
the bootmenu did not include the boot.cfg "installboot"-ed to ld1.
Did something in the BIOS overwrite the GPT? How to recover?
Can you try gpt show /dev/rld1d? Also show your dmesg?
christos
Hi Christos,
The gpt output is similar but not identical...
# gpt show /dev/rld1d
gpt: error: map entry doesn't fit media
gpt: unable to open device 'rld1d': Undefined error: 0
Also /dev/dk3 will not reconstruct on the raid (raidctl -R /dev/dk3
raid0), leaving these messages...
raid0: initiating in-place reconstruction on column 1
raid0: IO failed after 5 retries.
raid0: IO failed after 5 retries.
raid0: Recon read failed: 22
raid0: reconstruction failed.
But no low-level (ld or twa) IO messages.
At this point I'm thinking of this procedure for recovery...
o Wipe ld2 and re-partition
o Rebuild a new raid on ld2 (which has dk3)
o Copy everything over
o Boot from the new raid disk
o Wipe ld1
o Rebuild the raid with the new ld1
Relevant parts of the dmesg.boot are below. Thanks for looking!
Louis
NetBSD 7.0_STABLE (GENERIC) #2: Tue Jan 19 01:11:46 EST 2016
louis%maat.zabrico.com@localhost:/usr/obj/sys/arch/i386/compile/GENERIC
total memory = 2047 MB
avail memory = 1997 MB
kern.module.path=/stand/i386/7.0/modules
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
...
twa0 at pci3 dev 3 function 0: 3ware 9550SX series (rev. 0x00)
twa0: interrupting at ioapic1 pin 0
twa0: AEN 0x0053: INFO: Battery capacity test needed:
twa0: 8 ports, Firmware FE9X 3.08.00.022, BIOS BE9X 3.08.00.004
twa0: Monitor BL9X 3.01.00.006, PCB Rev 032 , Achip 1.70 , Pchip 1.60
twa0: port 0: ST2000LM003 HN-M201RAD 1907729 MB
twa0: port 1: ST2000LM003 HN-M201RAD 1907729 MB
twa0: port 6: ST31000340AS 953869 MB
twa0: AMCC 9550SX-8LP DISK 3.086QJ04D9T3DFE890012F3
ld0 at twa0 unit 0
ld0: 931 GB, 121575 cyl, 255 head, 63 sec, 512 bytes/sect x 1953103872
sectors
twa0: AMCC 9550SX-8LP DISK 3.08CH117795F9744600A1E6
ld1 at twa0 unit 1
ld1: 1862 GB, 243151 cyl, 255 head, 63 sec, 512 bytes/sect x 3906228224
sectors
twa0: AMCC 9550SX-8LP DISK 3.08AGC11854F975D0005898
ld2 at twa0 unit 2
ld2: 1862 GB, 243151 cyl, 255 head, 63 sec, 512 bytes/sect x 3906228224
sectors
...
ld1: GPT GUID: fa939ed5-ec03-4ed1-951e-963aec893757
ld2: GPT GUID: 3e8e9b55-efc9-4748-959d-2c63e92daa42
dk0 at ld1: boot0
dk0: 524288 blocks at 128, type: ffs
dk1 at ld1: disk0
dk1: 3906504704 blocks at 524416, type: raidframe
dk2 at ld2: boot1
dk2: 524288 blocks at 128, type: ffs
dk3 at ld2: disk1
dk3: 3906504704 blocks at 524416, type: raidframe
...
Kernelized RAIDframe activated
raid0: RAID Level 1
raid0: Components: /dev/dk1 /dev/dk3[**FAILED**]
raid0: Total Sectors: 3906504640 (1907472 MB)
raid0: GPT GUID: eb35702c-d3f7-407a-a47f-3e35d9d6ecc1
dk4 at raid0: raid0a
dk4: 524288 blocks at 128, type: ffs
dk5 at raid0: swap
dk5: 8388608 blocks at 524416, type: swap
dk6 at raid0: pv0
dk6: 3897591552 blocks at 8913024, type: raidframe
boot device: dk4
root on dk4 dumps on dk5
root file system type: ffs
Home |
Main Index |
Thread Index |
Old Index