Koozali.org: home of the SME Server

Raid (SOLVED)

Offline calisun

  • *
  • 601
  • +0/-0
Re: Raid (SOLVED)
« Reply #15 on: December 22, 2008, 06:53:49 PM »

Correct me if I m wrong, but looking in the email I got, which I posted in my Reply #7

Code: [Select]
Device /dev/sda2 is now an active member of md device /dev/md2.
it says that sda2 is now an active ...md2,
so it was not before.


And when one looks at my Reply#8

Code: [Select]
md2 : active raid1 sda2[2](F) sdb2[1]
      732467520 blocks [2/1] [_U]
     
md1 : active raid1 sda1[0] sdb1[1]
      104320 blocks [2/2] [UU]

these are two identical 750 gig drives, and md1: sda1 shows some strange size.

So am I reading this right? I need to replace sda1 not sda2?

« Last Edit: December 22, 2008, 06:58:43 PM by calisun »
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline calisun

  • *
  • 601
  • +0/-0
Re: Raid (SOLVED)
« Reply #16 on: December 22, 2008, 07:04:32 PM »

thanks frankvb, using the code you provided, it shows me only one drive. So I guess I know which drive not to replace :)


Code: [Select]
[root@x ~]# smartctl -i /dev/sda
smartctl version 5.33 [i686-redhat-linux-gnu] Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model:     Hitachi HDS721075KLA330
Serial Number:    GTF200P8G1L7XF
Firmware Version: GK8OA70M
User Capacity:    750,156,374,016 bytes
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   7
ATA Standard is:  ATA/ATAPI-7 T13 1532D revision 1
Local Time is:    Mon Dec 22 09:50:48 2008 PST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

Error SMART Values Read failed: Input/output error
Smartctl: SMART Read Values failed.

Error SMART Thresholds Read failed: Input/output error
Smartctl: SMART Read Thresholds failed.

[root@x ~]#
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline Frank VB

  • ***
  • 127
  • +0/-0
Re: Raid (SOLVED)
« Reply #17 on: December 22, 2008, 07:24:25 PM »
Quote
Error SMART Values Read failed: Input/output error
Smartctl: SMART Read Values failed.
It looks like your sda has a problem. Make sure you also check your sdb drive (use the -a switch to get a full report on the drive):

Code: [Select]
#smartctl -a /dev/sdb | more

Offline pfloor

  • ****
  • 889
  • +1/-0
Re: Raid (SOLVED)
« Reply #18 on: December 22, 2008, 09:15:22 PM »
Correct me if I m wrong, but looking in the email I got, which I posted in my Reply #7

Code: [Select]
Device /dev/sda2 is now an active member of md device /dev/md2.
it says that sda2 is now an active ...md2,
so it was not before.

It was (and possibly still is) not.  It appears from your previous posts that partition sda2 failed, rebuilt and then failed again.  What state it is in now is unknown as you keep referring to old posts.

Quote
And when one looks at my Reply#8

Code: [Select]
md2 : active raid1 sda2[2](F) sdb2[1]
      732467520 blocks [2/1] [_U]
    
md1 : active raid1 sda1[0] sdb1[1]
      104320 blocks [2/2] [UU]

these are two identical 750 gig drives, and md1: sda1 shows some strange size.

So am I reading this right? I need to replace sda1 not sda2?
No, and you have been told already that sda1 is NOT a drive, it is a partition.

md1 and md2 are neither drives nor are they partitions, they are mirror devices (aka raid devices)

You appear to be completely confused about drives (actual physical hardware devices), partitions (parts of each physical device) and mirror devices, maybe this will help you:

sda1+sdb1=md1
sda2+sdb2=md2

sda1 (serial drive "A", partition #1) + sdb1 (serial drive "B", partition #1) are mirrored together to form md1 (mirror device #1) This is the small one that contains /boot

sda2 (serial drive "A", partition #2) + sdb2 (serial drive "B", partition #2) are mirrored together to form md2 (mirror device #2) This is the large one that contains everything else.

Or perhaps an illistration (sorry, best I could come up with):
Code: [Select]
Simple 2 drive raid 1 mirror

      Drives      Mirrors
   sda     sdb
P | 1 | + | 1 | = |md1|
a |---|---|---|---|---|
r |   |   |   |   |   |
t |   |   |   |   |   |
i |   |   |   |   |   |
t |   |   |   |   |   |
i | 2 | + | 2 | = |md2|
o |   |   |   |   |   |
n |   |   |   |   |   |
s |   |   |   |   |   |

So, sda1 and sda2 are on the same drive (sda) and if any partition on a particular drive is bad (sda2 in your case) then you need to replace the entire drive (that would be sda in your case).

Make sense now?
In life, you must either "Push, Pull or Get out of the way!"

Offline calisun

  • *
  • 601
  • +0/-0
Re: Raid (SOLVED)
« Reply #19 on: December 22, 2008, 11:03:29 PM »
thank you pfloor
yes, I was confusing physical drive with a partition. Thank you for your explanation.
I have been building my own computers since DOS 5.0, but I guess applying my pc knowledge to Linux does not always relate :)
 
sdb does not show any error messages, so yes it is sda


Code: [Select]
[root@x ~]# smartctl -i /dev/sdb
smartctl version 5.33 [i686-redhat-linux-gnu] Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model:     Hitachi HDS721075KLA330
Serial Number:    GTA300P8G4GNJA
Firmware Version: GK8OA70M
User Capacity:    750,156,374,016 bytes
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   7
ATA Standard is:  ATA/ATAPI-7 T13 1532D revision 1
Local Time is:    Mon Dec 22 14:04:24 2008 PST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

[root@x ~]#
« Last Edit: December 22, 2008, 11:15:14 PM by calisun »
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline pfloor

  • ****
  • 889
  • +1/-0
Re: Raid (SOLVED)
« Reply #20 on: December 22, 2008, 11:34:39 PM »
I have been building my own computers since DOS 5.0, but I guess applying my pc knowledge to Linux does not always relate :)
Seldom do they relate other than the box that the hardware resides. :-)
In life, you must either "Push, Pull or Get out of the way!"