Koozali.org: home of the SME Server

2d harddisk problem, sme installed with 2 harddisk in place

Offline wires

  • **
  • 62
  • +0/-0
2d harddisk problem, sme installed with 2 harddisk in place
« on: April 24, 2009, 07:26:35 AM »
i have installed sme server with 2 disk connected. i cannot somehow see if the 2nd disk is fully working, can anybody clarify these informations:

smartctl -i /dev/hdc
Quote
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:     Maxtor 6L160P0
Serial Number:    L305T88H
Firmware Version: BAH41E00
User Capacity:    163,928,604,672 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 0
Local Time is:    Fri Apr 24 01:18:30 2009 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

Warning! SMART Attribute Thresholds Structure error: invalid SMART checksum.

fdisk -l | more
Quote
fdisk -l | more
Disk /dev/md1 doesn't contain a valid partition table
Disk /dev/md2 doesn't contain a valid partition table
Disk /dev/md3 doesn't contain a valid partition table
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   fd  Linux raid autodetect
/dev/hda2              14        4865    38973690   fd  Linux raid autodetect

Disk /dev/hdc: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1          13      104384+  fd  Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/hdc2              13       19929   159975307   fd  Linux raid autodetect

Disk /dev/md1: 106 MB, 106823680 bytes
2 heads, 4 sectors/track, 26080 cylinders
Units = cylinders of 8 * 512 = 4096 bytes


Disk /dev/md2: 39.9 GB, 39908933632 bytes
2 heads, 4 sectors/track, 9743392 cylinders
Units = cylinders of 8 * 512 = 4096 bytes


Disk /dev/md3: 106 MB, 106823680 bytes
2 heads, 4 sectors/track, 26080 cylinders
Units = cylinders of 8 * 512 = 4096 bytes


Disk /dev/dm-0: 38.8 GB, 38822477824 bytes
2 heads, 4 sectors/track, 9478144 cylinders
Units = cylinders of 8 * 512 = 4096 bytes


Disk /dev/dm-1: 1040 MB, 1040187392 bytes
2 heads, 4 sectors/track, 253952 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

cat /proc/mdstat
Quote
Personalities : [raid1]
md3 : active raid1 hdc1[0] hdc2[1]
      104320 blocks [2/2] [UU]

md2 : active raid1 hda2[0]
      38973568 blocks [2/1] [U_]

md1 : active raid1 hda1[0]
      104320 blocks [2/1] [U_]

unused devices: <none>


mdadm --detail --scan --verbose
Quote
ARRAY /dev/md3 level=raid1 num-devices=2 UUID=938832b5:8654588a:255ecd62:3220246c
   devices=/dev/hdc1,/dev/hdc2
ARRAY /dev/md2 level=raid1 num-devices=2 UUID=2b797a1a:aeb45c55:86ca693b:e789e7a4
   devices=/dev/hda2
ARRAY /dev/md1 level=raid1 num-devices=2 UUID=1936745e:6d5401fd:9cd7331f:3d98fd31
   devices=/dev/hda1

pico /etc/fstab
Quote
/dev/main/root          /                       ext3    usrquota,grpquota        1 1
/dev/md1                /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/main/swap          swap                    swap    defaults        0 0


some how /dev/hdc2 is not being used by the system i think... i just want /dev/hdc2 to be an extended space for an i-bay.

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: 2d harddisk problem, sme installed with 2 harddisk in place
« Reply #1 on: April 24, 2009, 09:46:22 AM »
wires..

as you can read in the documentation, if you install SME with 2 hd connected you get the raid1 option enabled by default..

that said, you have 2 different hd and thus your bigger one is used only a bit..

anyway, I see your raid has some problems.

can you confirm that the 2 hd were connected when you setup SME?

Ciao
Stefano

Offline wires

  • **
  • 62
  • +0/-0
Re: 2d harddisk problem, sme installed with 2 harddisk in place
« Reply #2 on: April 24, 2009, 06:54:24 PM »
yes i confirm, i installed sme server with 2 disk connected, meaning the 2nd disk was already installed inside the computer when i got sme server installed on the system.

cheers

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: 2d harddisk problem, sme installed with 2 harddisk in place
« Reply #3 on: April 24, 2009, 07:00:30 PM »
yes i confirm, i installed sme server with 2 disk connected, meaning the 2nd disk was already installed inside the computer when i got sme server installed on the system.

cheers

if so both disks are part of raid1 array..

but I see it's not working, it's in degraded mode.. and from here:
Quote
Code: [Select]
    Personalities : [raid1]
    md3 : active raid1 hdc1[0] hdc2[1]
          104320 blocks [2/2] [UU]

    md2 : active raid1 hda2[0]
          38973568 blocks [2/1] [U_]

    md1 : active raid1 hda1[0]
          104320 blocks [2/1] [U_]

    unused devices: <none>


I see also there's something messed up.

please raise a bug.

Ciao
Stefano