Re: Crashed gmirror, single disk marked SYNC and wont boot...



On Aug 21, 2007, at 17:53 , Johan Ström wrote:

On Aug 21, 2007, at 16:31 , Pawel Jakub Dawidek wrote:

All in all, your partition table seems to be gone. If you created it on
gmirror before (gm0s1) you may still have the same partition table on
the other half of the mirror. You can try to move it to ad6 with
bsdlabel and verify if you can see file system inside partitions.

Okay, tried that now.. Saved ad0s1 label, reloaded it onto ad6s1.. Now I got same partition table on ad6s1 as on ad0s1...
Trying to mount any though gives me incorrect super block... fsck cannot find any superblocks either..

So.. What to do now then? Just for get ad6 and start from scratch from ad2? (as i said, the data isnt very old realy)...

Im thinking about doing complete reinstall on ad4+ad6 then.. Can I do that? fdisk both with full partition on both, create a new gmirror between ad6s1/ad4s1 (or should i go on ad4/ad6?), create slices, use dump | restore (of course with apps shutdown so no data is changed.. or at least nothing that I care about) to copy all files from ad2 to new mirror.. what do I need to do more? bsdlabel - B on both to write boot blocks? Is there anything else to think about?


Ok just for the record, I plugged both sata disks in, cleared them, created a new mirror on both of them, sliced up and dump -0 -L -f - / | restore -r -f - all filesystems, also bsdlabel -B. and what i missed in the above thext, fdisk -B to write boot0 code.. Now its booted fine on the mirror!

altough, one thing that I got curious about. In the fdisk manpage it says -b can be used to change the bootcode.. and that default is / boot/mbr.. What is this? I checked md5 against boot0 and its not the same (altough I guess it might just be some boot0 with different config..). I never found any references to this mbr file in neither man pages or handbook.

Again, thanks for the help :)
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: gjournal: journaled slices vs. journaled partitions
    ... I didn't want to only put gmirror and have full drives rebuild ... I went with this setup anyway and I made some reset tests to see what ... provider is directly on the mirror provider for all mirrored filesystems ... the ill-advised journaled small partition issue been successfully overcome ...
    (freebsd-questions)
  • Re: RAID1 with gmirror
    ... create' command to the new gmirror. ... On 5.3- BETA7 with patched gmirror.c booting from the mirror works, ... 4.2-BSD partitions and a swap partition: ... # mount /usr ...
    (freebsd-current)
  • Re: Crashed gmirror, single disk marked SYNC and wont boot...
    ... As soon as the box got up, I removed ad0 from the gmirror, so ad6 was ... Today I got a new disk that would replace ad0.. ... ad6 was the only disk in the mirror. ... your partition table seems to be gone. ...
    (freebsd-stable)
  • RE: Breaking and using a mirrored drive
    ... creation and use of a boot disk, ... server's OS now BUT in order to break the mirror set and make the new C: ... partition active I need to get into the Computer Management console's Disk ... if performing a recovery installation from the OS installation CD restore all ...
    (microsoft.public.win2000.general)
  • Re: how i locate swap area
    ... what you have with the command 'vgdisplay -v vg00'. ... Why Mirror Copies is 0? ... it seems that you have no disk mirroring. ... Primary Partition Table: ...
    (comp.sys.hp.hpux)