Koozali.org: home of the SME Server

RAID 1 not work!

Offline yythoss

  • *
  • 532
  • +0/-0
    • http://www.hylafax-client.de
RAID 1 not work!
« on: April 09, 2018, 10:24:59 AM »
Hello forum,

I have already discovered the problem on three servers.
After the SME is installed, I added a second disk (when turned off).
Afterwards via Admin console a RAID 1 created. After a few hours RAID's finished md0 and md1.
To check if the RAID also works, I shut down the server and replaced the disks.
sda becomes sdb and sdb becomes sda. The server does not boot anymore.
It shows up to the prompt of grub.
When trying to play a boot image via Rescue, it is said that there is no Linux partition on the disk.
What is wrong? That was never a problem with SME8.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: RAID 1 not work!
« Reply #1 on: April 09, 2018, 11:18:56 AM »
the hd you added is new or are you reusing it?

Offline yythoss

  • *
  • 532
  • +0/-0
    • http://www.hylafax-client.de
Re: RAID 1 not work!
« Reply #2 on: April 09, 2018, 11:22:04 AM »
Both are new

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: RAID 1 not work!
« Reply #3 on: April 09, 2018, 11:29:07 AM »
ok. looks like something isn't working as expected.. OW, grub is not correctly installed on the new disk ('m guessing, BTW)
Please check bugzilla if is there already a bug for it or open a new one giving all the details, thank you

Offline yythoss

  • *
  • 532
  • +0/-0
    • http://www.hylafax-client.de
Re: RAID 1 not work!
« Reply #4 on: April 09, 2018, 11:30:59 AM »
No Help?

Offline yythoss

  • *
  • 532
  • +0/-0
    • http://www.hylafax-client.de
Re: RAID 1 not work!
« Reply #5 on: April 09, 2018, 11:32:48 AM »
I installed grub with this HowTo and I have the same problem:

https://wiki.contribs.org/Raid:Manual_Rebuild

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: RAID 1 not work!
« Reply #6 on: April 09, 2018, 11:34:12 AM »
don't play with your server if it's a production one.
Please go to bugzilla, thank you

Offline byte

  • *
  • 2,183
  • +2/-0
Re: RAID 1 not work!
« Reply #7 on: April 09, 2018, 11:35:09 AM »
Are the drives the same size?
--[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 yythoss

  • *
  • 532
  • +0/-0
    • http://www.hylafax-client.de
Re: RAID 1 not work!
« Reply #8 on: April 09, 2018, 11:36:01 AM »
Yes, both WD RED 2TB

Offline byte

  • *
  • 2,183
  • +2/-0
Re: RAID 1 not work!
« Reply #9 on: April 09, 2018, 11:44:52 AM »
Sounds like you could be experiencing this issue:

https://bugs.contribs.org/show_bug.cgi?id=9247
--[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 yythoss

  • *
  • 532
  • +0/-0
    • http://www.hylafax-client.de
Re: RAID 1 not work!
« Reply #10 on: April 09, 2018, 11:48:33 AM »
No, that is not my problem.

Offline yythoss

  • *
  • 532
  • +0/-0
    • http://www.hylafax-client.de
Re: RAID 1 not work!
« Reply #11 on: April 09, 2018, 11:53:05 AM »
mdstat show this:

[root@server ~]# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdb1[2] sda1[0]
      255936 blocks super 1.0 [2/2] [UU]

md1 : active raid1 sda2[0] sdb2[2]
      1953126400 blocks super 1.1 [2/2] [UU]
      bitmap: 3/15 pages [12KB], 65536KB chunk

unused devices: <none>


fdisk show this:

Good HDD:

Platte /dev/sda: 2000.4 GByte, 2000398934016 Byte
255 Köpfe, 63 Sektoren/Spur, 243201 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xf5ed110b

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1   *           1          32      256000   fd  Linux raid autodetect
Partition 1 endet nicht an einer Zylindergrenze.
/dev/sda2              32      243202  1953257472   fd  Linux raid autodetect


Bad HDD:

Platte /dev/sdb: 2000.4 GByte, 2000398934016 Byte
255 Köpfe, 63 Sektoren/Spur, 243201 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sdb1   *           1          32      256000+  fd  Linux raid autodetect
Partition 1 endet nicht an einer Zylindergrenze.
Partition 1 does not start on physical sector boundary.
/dev/sdb2              32      243202  1953258583   fd  Linux raid autodetect
Partition 2 does not start on physical sector boundary.

Offline yythoss

  • *
  • 532
  • +0/-0
    • http://www.hylafax-client.de
Re: RAID 1 not work!
« Reply #12 on: April 09, 2018, 11:55:44 AM »
I think the partions are the problem. So this is the problem why the rescue CD can't find a partition.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: RAID 1 not work!
« Reply #13 on: April 09, 2018, 11:23:13 PM »
yythoss

Quote
To check if the RAID also works, I shut down the server and replaced the disks.
sda becomes sdb and sdb becomes sda. The server does not boot anymore.
It shows up to the prompt of grub.

Please describe the above more fully & precisely.
If you replace both disks then of course there will be no grub, partition or data,  but I think you mean something else ie you only replace one disk.
Most new disks are formatted NTFS so you will still have to zero the MBR using dd command, before you use the disk.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline yythoss

  • *
  • 532
  • +0/-0
    • http://www.hylafax-client.de
Re: RAID 1 not work!
« Reply #14 on: April 09, 2018, 11:29:18 PM »
No, I replace both disks, not remove both disks.
The HDD's are fresh without any partition.

Now there is a new bug report:

https://bugs.contribs.org/show_bug.cgi?id=10562