DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th June 2008
rpadilla rpadilla is offline
New User
 
Join Date: Jun 2008
Posts: 1
Default Freebsd server wont boot

Hi,

Im technically new to freebsd/linux , our Sys admin just left and no one here to check the problem. After a power failure our server just hangs up in boot.

here is the last part of error
Quote:
GEOM_MIRROR: Device gm0 created (id=42865....)
GEOM_MIRROR: Device gm0: provider ad4 detected
GEOM_MIRROR: Device gm0: provider ad6 detected
GEOM_MIRROR: Device gm0: provider mirror/gm0 launched.
GEOM_MIRROR: Device gm0: rebuilding provider ad4
ad6: FAILURE - READ_DMA status=51<READY, DSC,ERROR> errror=40<UNCORRECTABLE> LBA=41081416
GEOM_MIRROR: Request failed (error=5). ad6[READ(offset=21034...., length=131...)]
I just retype all that on the last part of the boot message.

I tried reading about GEOM_MIRROR and i found out that we had a two hard disk and probably 1 of them is having some problem. Is their anyway i can just remove the 1 hard disk and make it boot again.

Thanks
Reply With Quote
  #2   (View Single Post)  
Old 10th June 2008
davidgurvich davidgurvich is offline
Fdisk Soldier
 
Join Date: May 2008
Location: NYC
Posts: 57
Default

You've either got a bad sector in the same place on multiple drives or , more likely, need to resynchronize the array after a power loss, 'man gmirror' may tell you more. You will need to use a rescue CD as there is a problem booting to a command prompt.
Reply With Quote
  #3   (View Single Post)  
Old 10th June 2008
halber_mensch's Avatar
halber_mensch halber_mensch is offline
Real Name: halber mensch
Port Guard
 
Join Date: Jun 2008
Location: Sapulpa, OK
Posts: 14
Default

Quote:
Originally Posted by rpadilla View Post
Hi,

Im technically new to freebsd/linux , our Sys admin just left and no one here to check the problem. After a power failure our server just hangs up in boot.

here is the last part of error


I just retype all that on the last part of the boot message.

I tried reading about GEOM_MIRROR and i found out that we had a two hard disk and probably 1 of them is having some problem. Is their anyway i can just remove the 1 hard disk and make it boot again.

Thanks
I've just battled this problem myself. I have two sata disks ad4 and ad6 on FreeBSD 7.0-STABLE that are gmirror'd, and I mount all filesystems from the gmirror. After a power failure I get READ_DMA timeouts and failures on my SATA disks while rebuilding the gmirror and fscking the filesystem. If I power down the machine, then select "boot with ACPI turned off" from the beastie menu, I can regain enough stability to rebuild the gmirror and fsck the filesystems. After that's done, I power the machine down again and boot normally, and the DMA errors seem to go away. It's a strange problem; if I ever have a power interrupt (like hitting reset up a hung system, or a power flicker from a storm), I get READ_DMA errors. If I power the machine down completely and then power back up, they go away. I don't understand why this happens, but that was my solution.

Now, you may actually have a bad sector on ad6. If this is the case, just remove the disk from the system. Your remaining disk is still a part of the gmirror and it will consider itself up to date, though you may be missing information that made it onto ad6 and was not synchronized to ad4 before the power interruption.
__________________
perl -e "eval pack(q{H*}, join q{},qw{7072696e74207061636b28717b482a7d2c717b34393 23036333631366532303666366536633739323036313733373 33735366436353230373936663735323036353738373036353 63337343635363432303734363836393733323037343666323 03632363532303631323036633639373437343663363532303 66436663732363532303635366537343635373237343631363 93665363936653637326530617d293b})"

Last edited by halber_mensch; 10th June 2008 at 02:48 PM.
Reply With Quote
  #4   (View Single Post)  
Old 10th June 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
 
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203
Default

And for goodness sake, invest in a UPS. Depending on the system however, it won't last very long. For example, my UPS is a 1000VA/600W that with a normal computer is estimated to last 89 minutes, however the system estimates it will last 14 minutes with my SunFire V60x plugged in (pulling about 0.2kw). But, it will buy you perhaps just enough time for those "quick" power outages.
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!
Reply With Quote
  #5   (View Single Post)  
Old 11th June 2008
dctr dctr is offline
Port Guard
 
Join Date: May 2008
Posts: 30
Default

Like above said

Code:
su
fsck 
reboot
and cajunman is very correct.. if someone is available and the power goes out it's always a good thing to have a UPS.
Reply With Quote
  #6   (View Single Post)  
Old 11th June 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

Down the server. Pull ad6 out of the system. Boot the server into single-user mode (so no filesystems get mounted). If there are no errors during the boot, then you have a dead drive (ad6). If there are errors during the boot, you have larger problems. You can now run % gmirror remove gm0 ad6 to remove the dead drive from the mirror. If that errors out due to /dev/ad6 not existing, then run % gmirror forget gm0 ad6 to forcibly remove ad6 from the gmirror config.

Down the server. Put in a new harddrive. Boot into single-user mode. Then run % gmirror insert gm0 ad6 (or whatever the new drive is detected as, depends on which connector it's plugged into) to add the new drive to the mirror.

At this point, you can either wait for it to finish syncing the data onto the new drive, or you can boot into the system, and it will sync in the background. You can monitor the status of the sync using % gmirror status or % gmirror list
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.

Last edited by phoenix; 11th June 2008 at 04:10 PM. Reason: Fix cmd tags
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to boot from a CD with the FreeBSD BTX Loader? Turquoise88 FreeBSD General 6 25th August 2009 04:16 PM
FreeBSD hangs on boot Bubba_HoTep FreeBSD General 3 29th November 2008 10:25 PM
FreeBSD doesn't boot purak FreeBSD Installation and Upgrading 7 9th October 2008 05:24 PM
Boot freeBSD from USB drive? s25 FreeBSD General 9 17th June 2008 07:47 AM
FreeBSD boot problem kdi FreeBSD General 2 25th May 2008 07:09 AM


All times are GMT. The time now is 09:27 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick