Koozali.org: home of the SME Server

fsck on /dev/sdb1

Offline Graham

  • ****
  • 105
  • +0/-0
fsck on /dev/sdb1
« on: June 10, 2008, 02:29:10 AM »
When trying to run fsck on /dev/sdb2 I get the following error: The Superblock could not be read or does not describe a correct ext2 filesystem

If I run it on /dev/sdb1 it runs fine.

Is this normal!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: fsck on /dev/sdb1
« Reply #1 on: June 10, 2008, 03:51:43 AM »
When trying to run fsck on /dev/sdb2...

Why are you doing that?



Offline Graham

  • ****
  • 105
  • +0/-0
Re: fsck on /dev/sdb1
« Reply #2 on: June 10, 2008, 09:08:09 AM »
Been having a issue with our raid, I've checked both drives and them seem fine so I through f2ck might find something.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: fsck on /dev/sdb1
« Reply #3 on: June 10, 2008, 03:07:28 PM »
Been having a issue with our raid, I've checked both drives and them seem fine so I through f2ck might find something.

Since you have RAID, the filesystem will be located on /dev/mdX (or on a Logical Volume contained within /dev/mdX), not on /dev/sdb1.

What "issue" did you have?

Offline Graham

  • ****
  • 105
  • +0/-0
Re: fsck on /dev/sdb1
« Reply #4 on: June 10, 2008, 03:09:36 PM »
I keep having a report of a failed drive but it's not always the same one.

when I run fsck /dev/md2 I have the same issue

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: fsck on /dev/sdb1
« Reply #5 on: June 10, 2008, 04:42:51 PM »
because you have LVM over raid

post here the result of
Code: [Select]
df -h

Ciao

Stefano

Offline Graham

  • ****
  • 105
  • +0/-0
Re: fsck on /dev/sdb1
« Reply #6 on: June 10, 2008, 04:46:11 PM »
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/main-root
                       72G  1.5G   67G   3% /
/dev/md1               99M   13M   81M  14% /boot
none                  506M     0  506M   0% /dev/shm
[root@server-1 ~]#

I started again, installed SME from fresh with only one hard drive /dev/sda I've now put a secound drive in and added it to the raid /dev/sdb problem is it gets to 67% then stops and goes back to 0%, been doing that for hours now.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: fsck on /dev/sdb1
« Reply #7 on: June 10, 2008, 05:40:23 PM »
so, you have to  run fsck against what? :-)

Ciao

Stefano

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: fsck on /dev/sdb1
« Reply #8 on: June 10, 2008, 06:16:36 PM »
I started again, installed SME from fresh with only one hard drive /dev/sda I've now put a secound drive in and added it to the raid /dev/sdb problem is it gets to 67% then stops and goes back to 0%, been doing that for hours now.

What have you done to check that there are no problems with that hard drive? Have you checked /var/log/messages, and used smartctl to get a report on the drive?

Offline Graham

  • ****
  • 105
  • +0/-0
Re: fsck on /dev/sdb1
« Reply #9 on: June 10, 2008, 08:59:10 PM »
Did a smart check via the BIOS and they didn't report any issues the one via SME I can't make out what it all means.

Offline Graham

  • ****
  • 105
  • +0/-0
Re: fsck on /dev/sdb1
« Reply #10 on: June 11, 2008, 05:32:15 PM »
How do you go about stopping a rebuild?

Offline Peasant

  • *
  • 143
  • +2/-0
Re: fsck on /dev/sdb1
« Reply #11 on: June 13, 2008, 10:30:07 PM »
Quote
I keep having a report of a failed drive but it's not always the same one.

Are they SATA drives? If so check/change the cables. A few weeks ago I was having bother with a server which finally resulted in a fail event on one of the disks. I changed the disk, and the problem went away but I could find nothing wrong with the disk when I got it home. It was suggested to me somewhere else that the errors I was getting suggested an ill fitting or dodgy SATA cable.

Cheers.
Jim