Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: magwm on May 31, 2010, 11:32:57 AM

Title: raid question
Post by: magwm on May 31, 2010, 11:32:57 AM
Hello folks,

I have a sme server with
- an adaptec scsi card which has 2 20GB disks
- an IDE 80gb HD which contains non-essential data in a folder mounted on a subfolder of the primary ibay:

Code: [Select]
[root@www ~]# mount
/dev/mapper/main-root on / type ext3 (rw,usrquota,grpquota)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/md1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/hdc1 on /home/e-smith/files/ibays/Primary/html/download type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

the 'problem' is that the systems sees a strange RAID config, and says this

Code: [Select]
[root@www ~]# cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 sda2[0] sdb2[1]
      17816000 blocks [3/2] [UU_]

md1 : active raid1 sda1[1] sdb1[2]
      104320 blocks [3/2] [_UU]

unused devices: <none>

here is the output of mdadm -D :

Code: [Select]
[root@www ~]# mdadm -D /dev/md1
/dev/md1:
        Version : 00.90.01
  Creation Time : Tue May  8 19:03:09 2007
     Raid Level : raid1
     Array Size : 104320 (101.89 MiB 106.82 MB)
    Device Size : 104320 (101.89 MiB 106.82 MB)
   Raid Devices : 3
  Total Devices : 2
Preferred Minor : 1
    Persistence : Superblock is persistent

    Update Time : Thu May 27 23:22:12 2010
          State : clean, degraded
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 123f3a9c:9ade4333:c858deb7:b1aea4be
         Events : 0.7713

    Number   Major   Minor   RaidDevice State
       0       0        0        -      removed
       1       8        1        1      active sync   /dev/sda1
       2       8       17        2      active sync   /dev/sdb1

Code: [Select]
[root@www ~]# mdadm -D /dev/md2
/dev/md2:
        Version : 00.90.01
  Creation Time : Tue May  8 19:03:09 2007
     Raid Level : raid1
     Array Size : 17816000 (16.99 GiB 18.24 GB)
    Device Size : 17816000 (16.99 GiB 18.24 GB)
   Raid Devices : 3
  Total Devices : 2
Preferred Minor : 2
    Persistence : Superblock is persistent

    Update Time : Mon May 31 11:30:43 2010
          State : clean, degraded
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 94b5168f:f65fe5e2:8f34cf7d:7724b91b
         Events : 0.36507415

    Number   Major   Minor   RaidDevice State
       0       8        2        0      active sync   /dev/sda2
       1       8       18        1      active sync   /dev/sdb2
       2       0        0        -      removed

I THINK i am still protectec, as raid1 is indicated which should mirror over the 2 disks..

but how can I remove the 'removed' items?

ciao, and thanks for any help,

Michel