Koozali.org: home of the SME Server

Problem adding second raid drive

Offline morpion

  • **
  • 29
  • +0/-0
Problem adding second raid drive
« on: August 11, 2009, 10:47:00 AM »
Morning all,

After problems with myprevious install I have done a clean install of 7.4 onto my server. I now want to add a second HD which is identical to the current one. I have gone into the console and clicked on option 5 and asked it to add the disk. After a blue screen for a few seconds it goes back to the menu but does not start the raid recovery.

I have checked my message log and attach it as follows.

Code: [Select]
Aug 11 09:27:01 cfs4 add_drive_to_raid:
Aug 11 09:27:01 cfs4 add_drive_to_raid: sfdisk: ERROR: sector 0 does not have an msdos signature
Aug 11 09:27:01 cfs4 add_drive_to_raid:
Aug 11 09:27:01 cfs4 add_drive_to_raid: Disk /dev/hdc: 38913 cylinders, 255 heads, 63 sectors/track
Aug 11 09:27:01 cfs4 add_drive_to_raid:  /dev/hdc: unrecognized partition
Aug 11 09:27:01 cfs4 add_drive_to_raid: Old situation:
Aug 11 09:27:01 cfs4 add_drive_to_raid: No partitions found
Aug 11 09:27:01 cfs4 add_drive_to_raid: New situation:
Aug 11 09:27:01 cfs4 add_drive_to_raid: Units = blocks of 1024 bytes, counting from 0
Aug 11 09:27:01 cfs4 add_drive_to_raid:
Aug 11 09:27:01 cfs4 add_drive_to_raid:    Device Boot   Start       End    #blocks   Id  System
Aug 11 09:27:01 cfs4 add_drive_to_raid: /dev/hdc1   *        0+   104384     104384+  fd  Linux raid autodetect
Aug 11 09:27:01 cfs4 add_drive_to_raid: /dev/hdc2       104385  312568671  312464287   fd  Linux raid autodetect
Aug 11 09:27:01 cfs4 add_drive_to_raid: /dev/hdc3            0         -          0    0  Empty
Aug 11 09:27:01 cfs4 add_drive_to_raid: /dev/hdc4            0         -          0    0  Empty
Aug 11 09:27:01 cfs4 add_drive_to_raid: Warning: partition 1 does not end at a cylinder boundary
Aug 11 09:27:01 cfs4 add_drive_to_raid: Successfully wrote the new partition table
Aug 11 09:27:01 cfs4 add_drive_to_raid:
Aug 11 09:27:01 cfs4 add_drive_to_raid: Re-reading the partition table ...
Aug 11 09:27:04 cfs4 kernel:  hdc: hdc1 hdc2
Aug 11 09:27:04 cfs4 add_drive_to_raid: If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
Aug 11 09:27:04 cfs4 add_drive_to_raid: to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
Aug 11 09:27:04 cfs4 add_drive_to_raid: (See fdisk(8).)
Aug 11 09:27:04 cfs4 add_drive_to_raid:
Aug 11 09:27:14 cfs4 add_drive_to_raid: mdadm: Cannot open /dev/hdc1: Device or resource busy
Aug 11 09:27:14 cfs4 add_drive_to_raid:
Aug 11 09:27:14 cfs4 add_drive_to_raid: Checking partitions on /dev/hdc...
Aug 11 09:27:14 cfs4 add_drive_to_raid:
Aug 11 09:27:14 cfs4 add_drive_to_raid: Going to add /dev/hdc1 to  /dev/md1
Aug 11 09:27:16 cfs4 add_drive_to_raid: mdadm: Cannot open /dev/hdc2: Device or resource busy
Aug 11 09:27:16 cfs4 add_drive_to_raid: Going to add /dev/hdc2 to  /dev/md2
Aug 11 09:27:33 cfs4 add_drive_to_raid:
Aug 11 09:27:33 cfs4 add_drive_to_raid: Waiting for boot partition to sync before installing grub...
Aug 11 09:27:33 cfs4 add_drive_to_raid: Probing devices to guess BIOS drives. This may take a long time.
Aug 11 09:27:33 cfs4 add_drive_to_raid:
Aug 11 09:27:33 cfs4 add_drive_to_raid:
Aug 11 09:27:33 cfs4 add_drive_to_raid:     GNU GRUB  version 0.95  (640K lower / 3072K upper memory)
Aug 11 09:27:33 cfs4 add_drive_to_raid:
Aug 11 09:27:33 cfs4 add_drive_to_raid:  [ Minimal BASH-like line editing is supported.  For the first word, TAB
Aug 11 09:27:33 cfs4 add_drive_to_raid:    lists possible command completions.  Anywhere else TAB lists the possible
Aug 11 09:27:33 cfs4 add_drive_to_raid:    completions of a device/filename.]
Aug 11 09:27:33 cfs4 add_drive_to_raid: grub> device (hd0) /dev/hdc
Aug 11 09:27:33 cfs4 add_drive_to_raid: grub> root (hd0,0)
Aug 11 09:27:33 cfs4 add_drive_to_raid:  Filesystem type unknown, partition type 0xfd
Aug 11 09:27:33 cfs4 add_drive_to_raid: grub> setup (hd0)
Aug 11 09:27:33 cfs4 add_drive_to_raid:
Aug 11 09:27:33 cfs4 add_drive_to_raid: Error 17: Cannot mount selected partition
Aug 11 09:27:33 cfs4 add_drive_to_raid: grub> quit

I have tried deleting the partitions and this command
Code: [Select]
dd if=/dev/zero of=/dev/hdc bs=512 count=1 but it still comes up with the same Error 17 Cannot mount selected partition.

Can anybody please help me with this?

Many thanks

Mike

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Problem adding second raid drive
« Reply #1 on: August 11, 2009, 11:47:34 AM »
Is this a new drive or has it been used previously for another OS ?

What sort of controller are you using ?
...

Offline morpion

  • **
  • 29
  • +0/-0
Re: Problem adding second raid drive
« Reply #2 on: August 11, 2009, 11:58:25 AM »
>Is this a new drive or has it been used previously for another OS ?

It's been used before as it was in our old Windoze server

>What sort of controller are you using ?
I'm sorry but I don't know what you are referring to :(

Mike

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Problem adding second raid drive
« Reply #3 on: August 11, 2009, 12:26:21 PM »
Hard disk controller ??

The logs would suggest a problem with the drive. Its making all the right noises but not achieving the right result - possibly due to some proprietry MBR on the drive.

Have you tried running a utility accross the drive that will completely wipe it clean including the MBR then adding it to the system ?

Otherwise suggest a new drive - they are cheap as chips these days. You can spend far more in time trying to resolve this than the cost of the drive.

If it still doesnt play nicely with a known good (and clean) drive, then you need to take it to the bugtracker.
...

Offline morpion

  • **
  • 29
  • +0/-0
Re: Problem adding second raid drive
« Reply #4 on: August 11, 2009, 12:38:32 PM »
Thanks for your swift suggestions.

>Have you tried running a utility accross the drive that will completely wipe it clean including the MBR then >adding it to the system ?

Have you any suggestions for this as I am very new to SME and Linux so still finding my way!

Thanks again

Mike

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Problem adding second raid drive
« Reply #5 on: August 11, 2009, 12:48:49 PM »
hi

as suggested in the log you posted, you should do

Code: [Select]
dd if=/dev/zero of=/dev/hdX bs=512 count=1

where hdX is the hd you want to add.

be carefull, be sure to use the right hd (hdc as I understand)

hth
ciao
Stefano

Offline morpion

  • **
  • 29
  • +0/-0
Re: Problem adding second raid drive
« Reply #6 on: August 11, 2009, 12:58:06 PM »
Thanks Stefano

I have done that but get the following:
Code: [Select]
[root@cfs4 ~]# dd if=/dev/zero of=/dev/hdc/ bs=512 count=1
dd: opening `/dev/hdc/': Is a directory
[root@cfs4 ~]#

I'm confused!

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Problem adding second raid drive
« Reply #7 on: August 11, 2009, 01:03:18 PM »
please re-read my post and check your syntax.. there's a '/' after hdc that shouldn't be there..

Stefano

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Problem adding second raid drive
« Reply #8 on: August 11, 2009, 01:08:37 PM »
Quote
Have you any suggestions for this as I am very new to SME and Linux so still finding my way!

There is nothing linux specific about this.
...

Offline morpion

  • **
  • 29
  • +0/-0
Re: Problem adding second raid drive
« Reply #9 on: August 11, 2009, 01:15:34 PM »
Thanks Stefano. I hadn't realised what a problem one little / could be!

I have done that and it gave me
Code: [Select]
[root@cfs4 ~]# dd if=/dev/zero of=/dev/hdc bs=512 count=1
1+0 records in
1+0 records out

I have now rerun option 5 to add the disk to the array and got the same problem.

Code: [Select]
Aug 11 12:10:57 cfs4 add_drive_to_raid:
Aug 11 12:10:57 cfs4 add_drive_to_raid: sfdisk: ERROR: sector 0 does not have an msdos signature
Aug 11 12:10:57 cfs4 add_drive_to_raid:
Aug 11 12:10:57 cfs4 add_drive_to_raid: Disk /dev/hdc: 38913 cylinders, 255 heads, 63 sectors/track
Aug 11 12:10:57 cfs4 add_drive_to_raid:  /dev/hdc: unrecognized partition
Aug 11 12:10:57 cfs4 add_drive_to_raid: Old situation:
Aug 11 12:10:57 cfs4 add_drive_to_raid: No partitions found
Aug 11 12:10:57 cfs4 add_drive_to_raid: New situation:
Aug 11 12:10:57 cfs4 add_drive_to_raid: Units = blocks of 1024 bytes, counting from 0
Aug 11 12:10:57 cfs4 add_drive_to_raid:
Aug 11 12:10:57 cfs4 add_drive_to_raid:    Device Boot   Start       End    #blocks   Id  System
Aug 11 12:10:57 cfs4 add_drive_to_raid: /dev/hdc1   *        0+   104384     104384+  fd  Linux raid autodetect
Aug 11 12:10:57 cfs4 add_drive_to_raid: /dev/hdc2       104385  312568671  312464287   fd  Linux raid autodetect
Aug 11 12:10:57 cfs4 add_drive_to_raid: /dev/hdc3            0         -          0    0  Empty
Aug 11 12:10:57 cfs4 add_drive_to_raid: /dev/hdc4            0         -          0    0  Empty
Aug 11 12:10:57 cfs4 add_drive_to_raid: Warning: partition 1 does not end at a cylinder boundary
Aug 11 12:10:57 cfs4 add_drive_to_raid: Successfully wrote the new partition table
Aug 11 12:10:57 cfs4 add_drive_to_raid:
Aug 11 12:10:57 cfs4 add_drive_to_raid: Re-reading the partition table ...
Aug 11 12:11:00 cfs4 last message repeated 4 times
Aug 11 12:11:00 cfs4 add_drive_to_raid: If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
Aug 11 12:11:00 cfs4 add_drive_to_raid: to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
Aug 11 12:11:00 cfs4 add_drive_to_raid: (See fdisk(8).)
Aug 11 12:11:00 cfs4 add_drive_to_raid:
Aug 11 12:11:10 cfs4 add_drive_to_raid: mdadm: Cannot open /dev/hdc1: Device or resource busy
Aug 11 12:11:10 cfs4 add_drive_to_raid:
Aug 11 12:11:10 cfs4 add_drive_to_raid: Checking partitions on /dev/hdc...
Aug 11 12:11:10 cfs4 add_drive_to_raid:
Aug 11 12:11:10 cfs4 add_drive_to_raid: Going to add /dev/hdc1 to  /dev/md1
Aug 11 12:11:13 cfs4 add_drive_to_raid: mdadm: Cannot open /dev/hdc2: Device or resource busy
Aug 11 12:11:13 cfs4 add_drive_to_raid: Going to add /dev/hdc2 to  /dev/md2
Aug 11 12:11:28 cfs4 su(pam_unix)[25416]: session closed for user qmailr
Aug 11 12:11:30 cfs4 add_drive_to_raid:
Aug 11 12:11:30 cfs4 add_drive_to_raid: Waiting for boot partition to sync before installing grub...
Aug 11 12:11:30 cfs4 add_drive_to_raid: Probing devices to guess BIOS drives. This may take a long time.
Aug 11 12:11:30 cfs4 add_drive_to_raid:
Aug 11 12:11:30 cfs4 add_drive_to_raid:
Aug 11 12:11:30 cfs4 add_drive_to_raid:     GNU GRUB  version 0.95  (640K lower / 3072K upper memory)
Aug 11 12:11:30 cfs4 add_drive_to_raid:
Aug 11 12:11:30 cfs4 add_drive_to_raid:  [ Minimal BASH-like line editing is supported.  For the first word, TAB
Aug 11 12:11:30 cfs4 add_drive_to_raid:    lists possible command completions.  Anywhere else TAB lists the possible
Aug 11 12:11:30 cfs4 add_drive_to_raid:    completions of a device/filename.]
Aug 11 12:11:30 cfs4 add_drive_to_raid: grub> device (hd0) /dev/hdc
Aug 11 12:11:30 cfs4 add_drive_to_raid: grub> root (hd0,0)
Aug 11 12:11:30 cfs4 add_drive_to_raid:  Filesystem type unknown, partition type 0xfd
Aug 11 12:11:30 cfs4 add_drive_to_raid: grub> setup (hd0)
Aug 11 12:11:30 cfs4 add_drive_to_raid:
Aug 11 12:11:30 cfs4 add_drive_to_raid: Error 17: Cannot mount selected partition
Aug 11 12:11:30 cfs4 add_drive_to_raid: grub> quit

Am I looking at a dead disk here?

Many thanks

Mike

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Problem adding second raid drive
« Reply #10 on: August 11, 2009, 01:35:50 PM »
please check the size of the hds..

in my experience 2 'identical' hds could be of different size

Stefano

Offline morpion

  • **
  • 29
  • +0/-0
Re: Problem adding second raid drive
« Reply #11 on: August 11, 2009, 02:21:13 PM »
I have run fdisk on my two disks and have the following data

Code: [Select]
Disk /dev/hda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 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       38913   312464250   fd  Linux raid autodetect


Code: [Select]
Disk /dev/hdc: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 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       38913   312464287   fd  Linux raid autodetect


The sizes look the same but it is interesting to note that the block size on hdc are different. These are the result of it creating the partitions itself when I select option 5 to rebuild the array.

I would have thought that the system would partition it correctly and be the same as the other disk?

Mike

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Problem adding second raid drive
« Reply #12 on: August 11, 2009, 04:50:18 PM »
Please note what it says every time you create a message here:

Don't report problems here - Please report bugs and potential bugs in the bug tracker

Offline morpion

  • **
  • 29
  • +0/-0
Re: Problem adding second raid drive
« Reply #13 on: August 11, 2009, 05:06:49 PM »
Yea...thanks Charlie.

I appreciate that but I did that last time and my bug was closed as not being a bug so I am none the wiser!

Is there a forum around for things that aren't bugs (because SME server is great) but are problems which newbies like me can ask for help for from more experienced people?

Many thanks
Mike

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Problem adding second raid drive
« Reply #14 on: August 11, 2009, 07:06:34 PM »
morpion

Quote
...I did that last time and my bug was closed as not being a bug so I am none the wiser!

Well that's when you come back to the forums for "non bug" support.


Quote
Is there a forum around for things that aren't bugs...

Well in the case of this forum post, you are now being asked to go to the bug tracker, so please do that.
Your other problem (lodged at bugzilla) was different to this one, so don't prejudge the outcome.

If your problem gets resolved there, then good, if not then come back to the forums here with your issues.

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.