Berkeley CSUA MOTD:Entry 27071
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/25 [General] UID:1000 Activity:popular
5/25    

2003/1/11-13 [Computer/SW/OS/FreeBSD, Computer/HW/Drives] UID:27071 Activity:high
1/11    A power outage caused my LINUX computer to crash and fsck can't fix
        the disk because of a bad superblock.  I tried everything in
        the fsck and e2fsck and nothing fixes the bad superblock.  Any
        suggestions for fixing things or partially recovering data?
        \_ superblock is repeated every 5000 blocks or something like that.
           you can use some tool (something like mkfs... ask MOTD for detail)
           to get a list of it.  Chances are, you will have a working
           superblock.  Then, you use fsck manually specify the superblock
           you just found.  I personally has gone though this many times, and
           felt that Linux is a lot more fragile than I would like because
           of this reason.
        \_ Ok, not trying to start another FreeBSD vs Linux flame war but
           somebody has to ask.  Did Linux people wrote they own filesystem
           or did they borrowed heavily from *BSD?
        \_ sometimes, mke2fs creates backup superblocks? did it?
           also, I think the ext3 file system is more durable (next time)
           \_ fsck -b 32 (see man pages) Or use a journalled file system
        \_ Sometimes you can mount bad filesystems read-only and extract
           data.  I was able to do this on a FreeBSD partition with hard
           errors and extract a fair amount of data before the disk
           stopped responding altogether.  YMMV.
        \_ Just wondering, were you using ext3 or any of other journaling
           file systems at the moment?
        \_ Oh dear, another person learns the hard way that linux isn't
           production quality.  Eventually you kids will figure it out and
           move on to real OS's with real file systems or you'll stop putting
           useful data on bad OS's, at least.  No one ever think it'll happen
           to them....  Ext2 is a POS.  Ext3 is a POS+bad journaling.  Do not
           trust any valuable data on these filesystems.  Valuable means
           you wouldn't /bin/rm it yourself.  My cheap ass employer puts many
           many terabytes of very valuable data on ext2 with no backups.  We
           lose data all the time on those systems but not on the real ones.
           \_ My brother-in-law started a new job, sort of night-watchman
              for their computer systems.  A power-outage caused
              crashes (UPS wasn't regularly tested) Only later did they
              find data had been corrupted.  Something to do with the
              type of cheap linux disk and cache flushing or something.
              \_ is there a semi-formal discussion of this anywhere?
                 something you can point the money/management people in
                 company to?
           \_ Please give some examples of better filesystems.
                \_ These people sound like FreeBSD bigots.  I bet they have
                   UFS in mind.  Still, not even UFS will save you from a disk
                   crash.
                   \_ No, but ext2fs at least is by default mounted async b/c
                      of the slow metadata updates (rm -r/tar x taking forever)
                      Async + power outage = major fs problems.  If you mount
                      sync, your performance goes to shit.  Ext3 and FFS +
                      soft updates both solve this problem.
                  \_ No.  I wrote the "Oh dear" comment.  I don't have *any*
                     Freebsd systems.  You sound like a linux zealot defending
                     your beloved POS at all costs with no sense.  Ext3 is a
                     huge joke.  When you take a POS ext2 system which will
                     lose data on an idle system and "bolt on" a crappy wannabe
                     \_ Please give examples of better filesystems
                     pseudo-journaling system like Ext3 you don't get a JFS,
                     you get a crappy ext2 FS with crappy bolted on journaling.
                     His disk was probably bad *before* the disk crash and he
                     didn't know because he hadn't power cycled in months.  He
                     likely didn't have a disk crash from the power outage. He
                     probably had an ext2 barf all over his disk earlier and
                     it didn't show until he needed to get that super block.
                     \_ Ok, I'll bite. What makes ext3 a "pseudo journaling"
                        file system and why its journaling is considered as
                        "crappy bolted on journaling"?
                     \_ Please give examples of filesystems better than etx3
                        \_ reiser?
                        \_ vxfs.  wafl.  xfs (real xfs)
                        \_ if you're talking about Linux file systems, ext3
                           is the safest choice and it is "blessed" by the
                           leading kernel developers. I disagree with the rants
                           about ext2/ext3 here. We used ext2 at work. We had
                           power outages. Did we have to wait for hours for
                           fsck to complete? Yes. Did we lose any data? No.
                           Ok, maybe we were lucky.  Now we're using ext3. We
                           had no problems with it whatsoever. We never had
                           to fsck a file system, never lost any data. And
                           by the way, vxfs is available on Linux too,
                           as a part of Veritas foundation suite, if you'd
                           like to use a "real" file system..
                           \_ Thanks, I like your practical viewpoint.
        \_ If your data is important to you, you will use RAID. Disk failures
           happen under any O/S and there is nothing you can do about it
           but use redundancy. Anyone who tells you otherwise is full of crap.
           \_ I wouldn't stop at RAID.  You need to backup your RAID too.
              A single RAID box could be taken out by a power surge.
2025/05/25 [General] UID:1000 Activity:popular
5/25    

You may also be interested in these entries...
2013/5/6-18 [Transportation/Car, Computer/HW/Printer] UID:54673 Activity:nil
5/6     http://goo.gl/KiIMT (shortened link from http://HP.com)
        seems like I get these every 6 months or so from HP.  Do all drives
         have these kind of issues and I only see the ones from HP because
         they are diligent about reporting/fixing these issues?  Or do they
         suck?   (It's not actually their drives so...)  Also, do I really
         need to bring down my production infrastructure and fix all this
	...
2012/1/4-2/6 [Computer/HW/Drives] UID:54281 Activity:nil
1/4     I want to test how my servers behave during a disk failure and
        a RAID reconstruction so I want to simulate a hardware failure.
        How can I do this in Linux without having to physically pull
        a drive? These disks are behind a RAID card and run Linux. -ausman
        \_ According to the Linux RAID wiki, you might be able to use mdadm
           to do this with something like the following:
	...
2011/9/14-10/25 [Computer/HW/Drives] UID:54173 Activity:nil
9/13    Thanks to Jordan, our disk server is no longer virtualized. Our long
        nightmare of poor IO performance should hopefully be over. Prepare for
        another long nightmare of poor hardware reliability!
        ...
        Just kidding! (I hope)
        In any case, this means that cooler was taken out back and shot, and
	...
2011/2/14-4/20 [Computer/SW/Unix] UID:54039 Activity:nil
2/14    You sure soda isn't running windows in disguise?  It would explain the
        uptimes.
        \_ hardly, My winbox stays up longer.
        \_ Nobody cares about uptime anymore brother, that's what web2.0 has
           taught us.  Everything is "stateless".
           \_ You;d think gamers would care more about uptime.
	...
2010/7/22-8/9 [Computer/SW/OS/FreeBSD, Computer/HW/Drives] UID:53893 Activity:nil
7/22    Playing with dd if=/dev/random of=/dev/<disk> on linux and bsd:
        2 questions, on linux when <disk>==hda it always gives me this off
        by one report i.e. Records out == records in-1 and says there is an
        error. Has anyone else seen this?  Second, when trying to repeat this
        on bsd, <disk>==rwd0 now, to my surprise, using the install disk and
        selecting (S)hell, when I try to dd a 40 gig disk it says "409 records
	...
2010/1/22-30 [Computer/HW/Laptop, Computer/SW/OS/OsX] UID:53655 Activity:high
1/22    looking to buy a new development laptop
        needs ssdrive, >6 hr possible batt life, and runs linux reasonably
        Anyone have a recommendation? Thx.
        \_ thinkpad t23 w ssdrive and battery inplace of drive bay
        \_ Ever wondered what RICHARD STALLMAN uses for a laptop?  Well,
           wonder no more!
	...
2009/10/27-11/3 [Computer/HW/Drives] UID:53474 Activity:nil
10/27   I just read an article that Facebook had moved their database
        to all SSD to speed throughput, but now I can't find it. Has
        anyone else seen this? Any experience with doing this? -ausman
        \_ I hope you're not running mission critical data:
           http://ask.slashdot.org/story/09/10/27/1559248/Reliability-of-PC-Flash-SSDs?from=rss
        \_ Do you have any idea how much storage space is used by Facebook,
	...
2009/8/21-9/1 [Computer/SW/Unix] UID:53297 Activity:nil
8/20    When I use rsync to backup, it's pretty cool except in cases where
        I rename a directory name from the source. Rsync will just do
        a plain copy. Is there a program that'll detect renaming of
        directories (by checking for children files), or at least
        move them to a dated directory?
        \_ Not related but beware of using rsync as a backup tool.
	...