Koozali.org: home of the SME Server

Add non-blank disc to raid array

Offline markehle

  • ****
  • 125
  • +0/-0
Add non-blank disc to raid array
« on: October 26, 2007, 05:48:00 PM »
`Hello, Folks -

I have an old HP DL140 that I use for running BackupPC in my organization. It had a really old version of SME on it. I installed 7.2 today. It has 2 250gb drives on it. In order to install it, I had to pull one of them off and hook up a CD drive, because it does not have enough power plugs. The install went fine as it always does, but when I hook up the other drive, I am not sure that it is doing raid right. My suspicion is that because the drive I pulled off is not blank, I don't get a full drive's worth of raid out of it. Here is my cat /proc/mdstat:

Personalities : [raid1]
md0 : active raid1 hdb1[1]
      104320 blocks [2/1] [_U]

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

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

unused devices: <none>

And the admin console says that "manual intervention may be required"

Is there anything I can do to wipe the added drive and make raid happy without having to physically pull it out and wipe it?

Thanks!

Mark

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Add non-blank disc to raid array
« Reply #1 on: October 26, 2007, 07:14:41 PM »
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline markehle

  • ****
  • 125
  • +0/-0
Re: Add non-blank disc to raid array
« Reply #2 on: October 26, 2007, 07:31:26 PM »
Thanks!

so I am guessing that:

dd if=/dev/zero of=/dev/hdx bs=512 count=1

(zeroing out the MBR)

is the line I want?

Offline markehle

  • ****
  • 125
  • +0/-0
Re: Add non-blank disc to raid array
« Reply #3 on: October 26, 2007, 07:39:12 PM »
Since there is no data on the machine right now, there were no real issues if I had to dump it, I went ahead and tried:

dd if=/dev/zero of=/dev/hdb bs=512 count=1

 - with a reboot -

and the server manager comes back and asks me if I want to use the unused disk, I say 'yes', and now it says a RAID resynch is in progress. Wa-hoo! It works! God - I love SME!

Thanks again, byte!
« Last Edit: October 26, 2007, 07:40:55 PM by markehle »

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Add non-blank disc to raid array
« Reply #4 on: October 26, 2007, 10:45:46 PM »
so I am guessing that:

dd if=/dev/zero of=/dev/hdx bs=512 count=1

(zeroing out the MBR)

is the line I want?

As you've found out that is the line you needed as you previously had that disk with windows or something else. No worries.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Add non-blank disc to raid array
« Reply #5 on: October 27, 2007, 05:21:24 AM »
Did you go into the admin menu and try adding the disk to the raid ?
...