LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 01-27-2006, 12:38 PM   #1
amcarthur
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Rep: Reputation: 0
Help Unix/Linux Question


I keep getting this every morning on a server running Open BSD 3.3 .
"Uncorrectable data error reading fsbn 27822240 of 27822240-27822255 (wd0 bn 29279808 cn 29047 tn 6 sn 54 retrying...."

it retries a few time then comes up and says "soft error corrected"

What does this mean if anything, is it a Hard Drive problem??????
 
Old 01-27-2006, 02:45 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
This is a Linux forum---I wonder if there are better resources somewhere else. Have you searched Google for--eg--"BSD forum" ?
 
Old 01-28-2006, 09:28 PM   #3
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
moving to bsd
 
Old 01-28-2006, 10:52 PM   #4
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
Your hard drive is going... back up your data and get a replacement drive now... before it goes completely.

Edit: I do mean quickly also. The time between the start of these errors and when the drive becomes unusable is not predictable. I've had a drive that lasted a couple months after this started (under light usage) and one which went within a day of the first error showing up.

Last edited by frob23; 01-28-2006 at 11:02 PM.
 
Old 01-29-2006, 09:29 AM   #5
amcarthur
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks but....

Thank you for the info, it was what I was predicting. I took this Sys Admin job a 6 months ago. I know very little about OpenBSD. I have figured out how to administor it, but as for installing it from scratch is another problem. I come from a Windows Server background. Is there any way to copy the image (ghost) this to another drive without having to reinstall it??
This office has about 20 users not a heavely used server, but security is an issue. The server is only being used as a file server.
 
Old 01-29-2006, 10:46 AM   #6
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
I would advise you to read the man pages for dump(8) and restore(8). These are programs which let you dump the filesystem exactly as it is and restore it exactly as it was. When used correctly, the server will come back up identical to what it was when it went down.

I recommend doing this over a network (assuming you have a *nix computer with a large enough hard drive to hold the dumps. The process would be something like the following:

Code:
dump -0 -h 0 -f - /dev/wd0a | gzip -2 | ssh user@other.machine.net dd of=/path/to/bigdir/root.dmp.gz
Doing that once for each partition you have: "df" will show you what partitions are being used and where they are mounted, changing the file name to reflect the mountpoint. I would make a careful note of that to ensure that you put everything back in place. You should also make a note of how big each of the old paritions were. You do not need to have the same partition layout on the new system but it's probably wise to keep it the same. You can change the sizes if your new disk is larger without any problems. This is why I recommend this process over directly ghosting the whole drive -- which can be done but can also have its own pitfalls.

You will have to use the install disk to partition the new disk and make it bootable -- I am assuming you don't know how to do this from the command line and that can be tricky. Create the boot disks or floppies as desribed in the install document: http://openbsd.org/faq/faq4.html but I am going to start describing your process from the actual install part: http://openbsd.org/faq/faq4.html#Install

Most of the defaults are okay... you want to answer YES to using all of the disk. Pay special attention to the partition howto (don't leave any extra space like the example says it does). Look at your notes about how the old disk was layed out. Choose a layout which is similar -- increasing the most heavily used areas (like the ones where the files you're server are located).

Go through the process but don't worry about making mistakes after this point. As long as you know you have the disk layout correctly you're going to be fine (and the network bit so you don't need to do that by hand). You want to be able to boot into this barebones system.

Once you boot into the system you should be looking at a disk which has been partitioned and formatted already and has the bootblocks installed correctly. All the tricky work has been done.

cd to / and do something like:

Code:
ssh user@other.machine.net dd if=/path/to/bigdir/root.dmp.gz | gunzip | restore -r -f -
Then cd to /var (assuming this was another partition) and do the same thing:

Code:
ssh user@other.machine.net dd if=/path/to/bigdir/var.dmp.gz | gunzip | restore -r -f -
And so on, until you have dumped all the partitions to their correct places. If you did change the layout (added or deleted any partitions) be sure to edit fstab.

This process sounds complicated but it is very straight forward and painless. I have used it (or a variation of it, as I usually do the partitioning bit by hand) to restore several systems for users over the last few years.

Note: if you're going to do this by hand, you can cut the networked machine out of the equation and do
[code]dump -0 -h 0 -f - /dev/wd0a | restore -r -f -[code] right from the mounted directory on the new disk which is going to be /. This method is quicker but brings in complications the other method does not have to consider.

Anyway: Read dump(8) and restore(8), http://openbsd.org/faq/faq4.html, and this post a couple times. Get a good idea of the process I just described. If you have any questions about a part of it... please ask. And then, when you are comfortable with this, actually perform it.

I know you're not typically an *nix administrator... but you really should do this in the same manner a *nix admin would. It does offer a lot of advantages over ghosting because your replacement drive is surely going to be larger than the drive you're replacing.

Edit: Here is the FAQ section regarding this scenario, http://openbsd.org/faq/faq14.html#Backup -- it will also help you get the general idea.

Last edited by frob23; 01-29-2006 at 11:24 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi-OS (Linux + Unix) Question stevesk *BSD 2 08-12-2005 02:26 PM
Unix Book for Beginners (Not Linux... Unix) suse2166 General 6 11-25-2004 11:46 AM
UNIX (Linux, BSD, etc) Programming :: UNIX kuphryn Programming 8 04-04-2004 11:50 PM
question on Unix using linux collegegirl2004 Programming 3 06-28-2003 09:40 AM
Question about Unix copyright and Linux ludwig W Linux - General 12 05-05-2003 02:55 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 03:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration