Re: UNEXPECTED SOFT UPDATE INCONSISTENCY

2007-04-23 Thread youshi10

On Mon, 23 Apr 2007, L Goodwin wrote:

[...]


I assume I'll have to run fsck on /usr, but have 2 questions:
1) Is this problem caused by yesterday's accidental power-off?


Yes, most likely.


2) What prompts should I expect from fsck, and how should I reply to each in 
order to resolve this problem correctly?


Just say yes to all the prompts, but backup any important data first. Or if 
you're afraid of any issues, reinstall. If this problem persists (near every 
time you reboot), it's time to get a new drive because it got toasted during a 
write phase. I wouldn't say that though until you install from scratch though 
and verify that that is or is not the case.

-Garrett

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UNEXPECTED SOFT UPDATE INCONSISTENCY

2007-04-23 Thread L Goodwin
Thanks, Garrett.

Ran fsck -y /usr

* FILE SYSTEM MARKED CLEAN *
* FILE SYSTEM WAS MODIFIED *

Upon reboot, all is well EXCEPT for the following 2 warnings:
---
Mounting local file systems: WARNING: /var was not properly dismounted
WARNING: /sambavol was not properly dismounted
---
 
Both /var and /sambavol are mounted (ufs, local, soft-updates).
Rebooted again, and did not get these warnings. Thanks!

[EMAIL PROTECTED] wrote: On Mon, 23 Apr 2007, L Goodwin wrote:

[...]

 I assume I'll have to run fsck on /usr, but have 2 questions:
 1) Is this problem caused by yesterday's accidental power-off?

Yes, most likely.

 2) What prompts should I expect from fsck, and how should I reply to each in 
 order to resolve this problem correctly?

Just say yes to all the prompts, but backup any important data first. Or if 
you're afraid of any issues, reinstall. If this problem persists (near every 
time you reboot), it's time to get a new drive because it got toasted during a 
write phase. I wouldn't say that though until you install from scratch though 
and verify that that is or is not the case.

-Garrett

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


   
-
Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UNEXPECTED SOFT UPDATE INCONSISTENCY

2007-04-23 Thread RW
On Mon, 23 Apr 2007 13:23:16 -0700 (PDT)
L Goodwin [EMAIL PROTECTED] wrote:

 Last night, I was starting to install Samba3, but wrong FreeBSD disc
 (2) in the CD-ROM drive (first package to install on disc 1). After
 placing the right disc in the drive, I accidentally pushed the POWER
 button instead of the CD-ROM door open/close button and turned the
 computer off. In my defense, the power button is right next to it AND
 has a hair trigger. :-(

This shouldn't be a problem unless your pc is very old (8 years or so),
and it's a real power switch. On modern PCs the power switch is just a
low-voltage control line. A light touch is a signal to the OS to
shutdown cleanly - you have to hold the button down for several seconds
to force it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UNEXPECTED SOFT UPDATE INCONSISTENCY

2007-04-23 Thread L Goodwin
Yes, it's a hardware switch and a very bad design. It's flush with the surface 
of the faceplate and is right next to the CD-ROM button. Also sensitive to the 
lightest touch. Replacement would require buying a new case (not in budget).

Think I'll make a clear plexi failsafe cover. Reminds me of the times my 
toddler son found the big red toggle switch on the side of my IBM RT-PC 
workstation within seconds of sitting in my chair...

RW [EMAIL PROTECTED] wrote: On Mon, 23 Apr 2007 13:23:16 -0700 (PDT)
L Goodwin  wrote:

 Last night, I was starting to install Samba3, but wrong FreeBSD disc
 (2) in the CD-ROM drive (first package to install on disc 1). After
 placing the right disc in the drive, I accidentally pushed the POWER
 button instead of the CD-ROM door open/close button and turned the
 computer off. In my defense, the power button is right next to it AND
 has a hair trigger. :-(

This shouldn't be a problem unless your pc is very old (8 years or so),
and it's a real power switch. On modern PCs the power switch is just a
low-voltage control line. A light touch is a signal to the OS to
shutdown cleanly - you have to hold the button down for several seconds
to force it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


   
-
Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UNEXPECTED SOFT UPDATE INCONSISTENCY

2007-04-23 Thread L Goodwin
Thanks, Robert.

Robert Huff [EMAIL PROTECTED] wrote: 
L Goodwin writes:

  I accidentally pushed the POWER button instead of the CD-ROM door
  open/close button and turned the computer off. In my defense, the
  power button is right next to it AND has a hair trigger. :-(
  
  I turned the computer back on, and FreeBSD booted with no
  complaints, so I assumed all was well.

 That was your second error.
 As I learned it:
 On anything other than a clean shutdown, you will need to fsck
everything that was mounted at the time of the crash.  (Remember to
get the stuff that's noauto in fstab.)
 Run fsck on each partitions.  Repeat until it reports no
errors.  (Not MARKED CLEAN but not errors.


Robert Huff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


   
-
Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Unexpected soft update inconsistency

2004-01-20 Thread Uwe Doering
Peter Schuller wrote:
Hello,

What's the deal with soft updates and guaranteed consistency? Every time 
journaling is brought up by someone, he/she is promptly told about how soft 
updates does the job at least as well.  I never had a problem with this based 
on what I have read about soft updates. However:

I *very* quickly ran into a case where I got an unexpected soft update 
inconsistency after crashing the machine by doing something naughty with 
Vinum while there was disk activity (note: the filesystem which exhibited the 
problem was not on a vinum volume).

So my question is:

Do soft updates, or do they not, algorithmically guarantee filesystem 
meta-data consistency in the event of a crash?
The design goal for Soft Updates, apart from the performance gain, was 
to keep the disk image in a recoverable state at all times and to limit 
data loss to the last couple of seconds.  This does not mean, however, 
that it guarantees that after a crash fsck(8) will never ask any questions.

Normally, the right thing to do is to answer with 'yes' when it offers 
to remove the file, since that file can be expected to be incomplete. 
This way you are kind of turning back the clock by a couple of seconds, 
from the file system's point of view, until it gets into the time range 
again where all files were still consistent (payload and meta data).

   Uwe
--
Uwe Doering |  EscapeBox - Managed On-Demand UNIX Servers
[EMAIL PROTECTED]  |  http://www.escapebox.net
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Unexpected soft update inconsistency

2004-01-20 Thread Kris Kennaway
On Tue, Jan 20, 2004 at 12:31:30AM +0100, Peter Schuller wrote:

 Do soft updates, or do they not, algorithmically guarantee filesystem 
 meta-data consistency in the event of a crash?

If you have a power failure or similar unclean shutdown, then SU
guarantees consistency.  If there is a kernel panic or hardware
failure, all bets are off, because there is no way to be sure that the
kernel was writing the correct bits to the hardware prior to the
crash, or that the hardware was writing the correct bits to disk.

Kris


pgp0.pgp
Description: PGP signature


Re: unexpected soft update inconsistency

2003-06-14 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2003-06-14 12:58:34 +0200:
 Attached is the output of fsck(8) run in multiuser (postfix was
 running).

Aaargh, I keep doing this. This time, it's really attached.

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.see http://www.eyrie.org./~eagle/faqs/questions.html
2141 files, 24867 used, 233164 free UNALLOCATED 
FILE=/var/spool/postfix/incoming/0/2/0236D2FDAB2

UNEXPECTED SOFT UPDATE INCONSISTENCY
SUMMARY INFORMATION BADBLK(S) MISSING IN BIT MAPSFREE BLK COUNT(S) WRONG IN 
SUPERBLKALLOCATED FRAG 12580728 MARKED FREE
ALLOCATED FRAG 12580729 MARKED FREE
ALLOCATED FRAG 12580730 MARKED FREE
ALLOCATED FRAG 12580731 MARKED FREE
ALLOCATED FRAG 12580732 MARKED FREE
ALLOCATED FRAG 12580733 MARKED FREE
ALLOCATED FRAG 12580734 MARKED FREE
ALLOCATED FRAG 12580735 MARKED FREE
ALLOCATED FRAG 12580736 MARKED FREE
ALLOCATED FRAG 12580737 MARKED FREE
ALLOCATED FRAG 12580738 MARKED FREE
ALLOCATED FRAG 12580739 MARKED FREE
ALLOCATED FRAG 12580740 MARKED FREE
ALLOCATED FRAG 12580741 MARKED FREE
ALLOCATED FRAG 12580742 MARKED FREE
ALLOCATED FRAG 12580743 MARKED FREE
ALLOCATED FRAG 12616672 MARKED FREE
ALLOCATED FRAG 12616673 MARKED FREE
ALLOCATED FRAG 12616674 MARKED FREE
ALLOCATED FRAG 12616675 MARKED FREE
783682 files, 18972610 used, 18718867 free ** /dev/ad0s1a (NO WRITE)
** Last Mounted on /
** Root file system
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
(1020 frags, 29018 blocks, 0.4% fragmentation)
** /dev/ad0s1e (NO WRITE)
** Last Mounted on /usr
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
 I=3136178  OWNER=postfix MODE=100700
SIZE=3654 MTIME=Jun 13 19:27 2003 

REMOVE? no

** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups

SALVAGE? no


SALVAGE? no


SALVAGE? no

(314411 frags, 2300557 blocks, 0.8% fragmentation)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: unexpected soft update inconsistency

2003-06-14 Thread Jez Hancock
On Sat, Jun 14, 2003 at 12:58:34PM +0200, Roman Neuhauser wrote:
 The filesystem is always ok during the normal boot-time fsck run, so I'm
 wondering whether this is normal, or if the fs is screwed. Attached is
 the output of fsck(8) run in multiuser (postfix was running).
 
 [EMAIL PROTECTED] ~ 1005:0  df -h
 FilesystemSize   Used  Avail Capacity  Mounted on
 /dev/ad0s1a   504M49M   415M10%/
 /dev/ad0s1e72G36G30G55%/usr
 procfs4.0K   4.0K 0B   100%/proc
 [EMAIL PROTECTED] ~ 1006:0  ls -l /var
 lrwxr-xr-x  1 root  wheel  8 Sep 16  2002 /var - /usr/var

What happens if you turn off soft updates on those mounts?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Unexpected Soft Update Inconsistency / Cannot Read: Blk

2002-12-08 Thread Andrew Cutler
Unfortunately the answer presented itself very soon after posting the
message.

I pulled the hard drive out of the box, and tried to format it in a
Windows machine. It occurred to me that the drive had not been formated
and therefore had not had data written to all parts of the disk. 

Half way through the format I got an 'Unsafe removal of device' message,
and upon reboot the drive was TOTALLY dead. 

It would be nice if FreeBSD had a SMARTY utility - it would have allowed
me to possibly detect this failure. I've been told that work is underway
to write one and it might be ready for 5.0.

Cheers,

Andrew



On Mon, 2002-12-09 at 09:10, philipp wrote:
 hey,
 
 i just browsed through the freebsd-questions archive and found your
 mail (see below).
 i am just wondering if you found out what the problem was and/or how
 to solve it since i am in the same situation
 
 on Thu, Nov 28, 2002 at 12:11:48AM +1100, Andrew Cutler wrote:
  
  I recently built a FreeBSD 4.7 Release file server that has a brand new
  80GB Wester Digital 7200RPM drive in it. Yesterday the box suffered two
  power outages and a possible powersurge.
  
  
  Today I decided that it would be a good idea to check on the state of
  the file system and the result is attached below. I was unable to clean
  the file system.
  
  I've got just two questions that hopefully someone can help with:
  
  1) What does the result below mean? (Is my drive failing? Why can't I
  clean the FS?)
  
  2) Are there any BSD tools for reading the SMART data off the Hard Disk
  so that I can see whether it is about to fail or currently experiencing
  HW failure.
  
  TIA
  
  Andrew Cutler
  
  
  
  - START SCREEN SNIPPET 
  
  
  mojo# fsck /dev/ad2s1e
  ** /dev/ad2s1e
  ** Last Mounted on /data
  ** Phase 1 - Check Blocks and Sizes
  
  CANNOT READ: BLK 152744928
  UNEXPECTED SOFT UPDATE INCONSISTENCY
  
  CONTINUE? [yn] y
  
  THE FOLLOWING DISK SECTORS COULD NOT BE READ: 152744946,
  
  CANNOT READ: BLK 152745312
  UNEXPECTED SOFT UPDATE INCONSISTENCY
  
  CONTINUE? [yn] y
  
  THE FOLLOWING DISK SECTORS COULD NOT BE READ: 152745393,
  
  CANNOT READ: BLK 152746208
  UNEXPECTED SOFT UPDATE INCONSISTENCY
  
  CONTINUE? [yn] y
  
  THE FOLLOWING DISK SECTORS COULD NOT BE READ: 152746289,
  
  CANNOT READ: BLK 152747104
  UNEXPECTED SOFT UPDATE INCONSISTENCY
  
  CONTINUE? [yn] y
  
  THE FOLLOWING DISK SECTORS COULD NOT BE READ: 152747184,
  
  CANNOT READ: BLK 152748128
  UNEXPECTED SOFT UPDATE INCONSISTENCY
  
  CONTINUE? [yn] y
  
  THE FOLLOWING DISK SECTORS COULD NOT BE READ: 152748173,
  
  CANNOT READ: BLK 152748512
  UNEXPECTED SOFT UPDATE INCONSISTENCY
  
  CONTINUE? [yn] y
  
  THE FOLLOWING DISK SECTORS COULD NOT BE READ: 152748621,
  
  CANNOT READ: BLK 152749024
  UNEXPECTED SOFT UPDATE INCONSISTENCY
  
  CONTINUE? [yn] y
  
  THE FOLLOWING DISK SECTORS COULD NOT BE READ: 152749068,
  
  CANNOT READ: BLK 152749408
  UNEXPECTED SOFT UPDATE INCONSISTENCY
  
  CONTINUE? [yn] y
  
  THE FOLLOWING DISK SECTORS COULD NOT BE READ: 152749516,
  ** Phase 2 - Check Pathnames
  ** Phase 3 - Check Connectivity
  ** Phase 4 - Check Reference Counts
  ** Phase 5 - Check Cyl groups
  33755 files, 16020305 used, 22442867 free (12539 frags, 2803791 blocks,
  0.0% fragmentation)
  
  * FILE SYSTEM MARKED DIRTY *
  
  * PLEASE RERUN FSCK *
  
  
  To Unsubscribe: send mail to [EMAIL PROTECTED]
  with unsubscribe freebsd-questions in the body of the message
 
 regards
-- 
Andrew Cutler [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Unexpected Soft Update Inconsistency / Cannot Read: Blk

2002-12-08 Thread Cliff Sarginson
On Mon, Dec 09, 2002 at 10:21:39AM +1100, Andrew Cutler wrote:
 Unfortunately the answer presented itself very soon after posting the
 message.
 
 I pulled the hard drive out of the box, and tried to format it in a
 Windows machine. It occurred to me that the drive had not been formated
 and therefore had not had data written to all parts of the disk. 
 
 Half way through the format I got an 'Unsafe removal of device' message,
 and upon reboot the drive was TOTALLY dead. 
 
 It would be nice if FreeBSD had a SMARTY utility - it would have allowed
 me to possibly detect this failure. I've been told that work is underway
 to write one and it might be ready for 5.0.
 

Mmm. Well to pass on something I do with every new disk I buy. If I do
not have it already I get the diagnostics for it from the disk
manafacturers website, which they all have for free. I then run all the
tests on the disk and format it. These are almost always standalone boot
images that fit on a DOS floppy. Later on it is always handy if you
suspect disk problems -- then you can run the non-destructive drive tests
as well.

I do as many other kinds of test as possible on new hardware before I
start using the machine (usually one I am buiding) -- on the fairly well-known 
principle that anything electronic or electro-mechanical usually fails 
early in it's life if it is borderline.

[ As an aside this is harder with memory, the famous Memtest86 program gives false
positives on certain hardware combinations and on certain tests. ]

-- 
Regards
   Cliff Sarginson 
   The Netherlands

[ This mail has been checked as virus-free ]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Unexpected Soft Update Inconsistency / Cannot Read: Blk

2002-11-29 Thread Jason Hunt
On Fri, 29 Nov 2002, Vinco Maldini wrote:

 1) What does the result below mean? (Is my drive failing? Why can't I
 clean the FS?)

[ ... snip ... ]
 CANNOT READ: BLK 152744928
 UNEXPECTED SOFT UPDATE INCONSISTENCY
[ ... snip ... ]

 THE FOLLOWING DISK SECTORS COULD NOT BE READ: 152744946,
[ ... etc, etc, snip ... ]


Were there any kernel messages displayed on the consoles (the bright white
text)?  If you don't have console access, run the /sbin/dmesg command.  If
you see any ad2 read errors from the console, then you likely have a bad
drive.  On the other hand, if you don't see any errors being reported by
the kernel, then the CANNOT READ errors are probably just caused by
incompleted meta-data writes to the drive.  However, THE FOLLOWING DISK
SECTORS COULD NOT BE READ makes me think it is a hardware problem.


 2) Are there any BSD tools for reading the SMART data off the Hard Disk
 so that I can see whether it is about to fail or currently experiencing
 HW failure. Any other ways to check for bad sectors?


I thought that someone asked this same questions a few days ago, but I
can't find it in the archives.  I'm honestly not sure if anything like
that is available.  Searching the FreeBSD site did not yield any results.
My best suggestions is to check google.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Unexpected Soft Update Inconsistency / Cannot Read: Blk

2002-11-29 Thread Matthew Emmerton
 On Fri, 29 Nov 2002, Vinco Maldini wrote:

  1) What does the result below mean? (Is my drive failing? Why can't I
  clean the FS?)
 
 [ ... snip ... ]
  CANNOT READ: BLK 152744928
  UNEXPECTED SOFT UPDATE INCONSISTENCY
 [ ... snip ... ]
 
  THE FOLLOWING DISK SECTORS COULD NOT BE READ: 152744946,
 [ ... etc, etc, snip ... ]
 

 Were there any kernel messages displayed on the consoles (the bright white
 text)?  If you don't have console access, run the /sbin/dmesg command.  If
 you see any ad2 read errors from the console, then you likely have a bad
 drive.  On the other hand, if you don't see any errors being reported by
 the kernel, then the CANNOT READ errors are probably just caused by
 incompleted meta-data writes to the drive.  However, THE FOLLOWING DISK
 SECTORS COULD NOT BE READ makes me think it is a hardware problem.


  2) Are there any BSD tools for reading the SMART data off the Hard Disk
  so that I can see whether it is about to fail or currently experiencing
  HW failure. Any other ways to check for bad sectors?

 I thought that someone asked this same questions a few days ago, but I
 can't find it in the archives.  I'm honestly not sure if anything like
 that is available.  Searching the FreeBSD site did not yield any results.
 My best suggestions is to check google.

Or check with [EMAIL PROTECTED]  If there was something like this out there,
he'd know :)

--
Matt Emmerton


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Unexpected Soft Update Inconsistency / Cannot Read: Blk

2002-11-29 Thread Neill Robins

 2) Are there any BSD tools for reading the SMART data off the Hard Disk
 so that I can see whether it is about to fail or currently experiencing
 HW failure. Any other ways to check for bad sectors?


JH I thought that someone asked this same questions a few days ago, but I
JH can't find it in the archives.  I'm honestly not sure if anything like
JH that is available.  Searching the FreeBSD site did not yield any results.
JH My best suggestions is to check google.


FYI, from -stable, Eduard Martinescu is in the process of porting the Smartmon tools
(http://sourceforge.net/projects/smartmontools/) to FreeBSD.  He's
waiting for Soren Schmidt to commit some changes to the ATA driver to
support the SMART ATAPI commands before he can finish the port.

-Neill


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message