Koozali.org: home of the SME Server

installing sme v10 raid1 not working

Offline umbi

  • ***
  • 100
  • +0/-0
installing sme v10 raid1 not working
« on: February 09, 2024, 12:01:27 PM »
Hi there

i tried to install sme 10 on used 2pcs 1tb ssd disks wd blue.

at the installation i tried automatic partitioning.
I guess it does LVM format.

When installation is finished the raid 1 is not present but i find both disks sda sdb

allso when i log in in cli with admin "raid" its writing "no raid present".

Can someone tell me what im doing wrong?

Thank you

Offline bunkobugsy

  • *
  • 268
  • +4/-0
Re: installing sme v10 raid1 not working
« Reply #1 on: February 09, 2024, 12:04:27 PM »
first https://wiki.koozali.org/Raid#Reusing_Hard_Drives
then at setup simply don't touch disk setup

Offline umbi

  • ***
  • 100
  • +0/-0
Re: installing sme v10 raid1 not working
« Reply #2 on: February 09, 2024, 12:44:42 PM »
thank you,i tried in sme cli :

[root@ ~]#dd if=/dev/zero of=/dev/hdx bs=512 count=1
+
dd if=/dev/zero of=/dev/sda bs=512 count=1
+
[root@ ~]#dd if=/dev/zero of=/dev/sdb bs=512 count=1
+
reboot
reinstall with disk default automatic settings

the same:

[root@ ~]#cat /proc/mdstat

personalities:
unused disks: none
« Last Edit: February 09, 2024, 12:54:03 PM by umbi »

Offline bunkobugsy

  • *
  • 268
  • +4/-0
Re: installing sme v10 raid1 not working
« Reply #3 on: February 09, 2024, 12:51:52 PM »
try again without #  and count=100 for both sda and sdb
you might need the other command too if hdds were used in hw raid
« Last Edit: February 09, 2024, 12:56:34 PM by bunkobugsy »

Offline umbi

  • ***
  • 100
  • +0/-0
Re: installing sme v10 raid1 not working
« Reply #4 on: February 09, 2024, 01:12:58 PM »
i tried now with 2x   250GB SSD Disks :

lsblk
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda            8:0    0 232.9G  0 disk
├─sda1         8:1    0   200M  0 part /boot/efi
├─sda2         8:2    0   500M  0 part /boot
└─sda3         8:3    0 232.2G  0 part
  ├─kss-root 253:0    0 449.4G  0 lvm  /
  └─kss-swap 253:1    0  15.7G  0 lvm  [SWAP]
sdb            8:16   0 232.9G  0 disk
└─sdb1         8:17   0 232.9G  0 part
  └─kss-root 253:0    0 449.4G  0 lvm  /

Offline Jean-Philippe Pialasse

  • *
  • 2,712
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: installing sme v10 raid1 not working
« Reply #5 on: February 09, 2024, 02:12:03 PM »
by default automatic we mean:
do not enter in the disk utility in any way.


if you select automatic in this section you erase the automatic partitioning for SME Server and you get the automatic partitioning for CentOS, i.e. all disks under a large lvm volume without any raid.
 
which is exactly what you show to us!

Offline umbi

  • ***
  • 100
  • +0/-0
Re: installing sme v10 raid1 not working
« Reply #6 on: February 09, 2024, 02:26:44 PM »
That was the smoking gun !
And at first reboot we need wait a lot of time for raid build, may be my misstake was at blank installation to not being patient enough and made a hardware reboot

]# cat /proc/mdstat
Personalities : [raid1]
md9 : active raid1 sdb2[1] sda2[0]
      204736 blocks super 1.0 [2/2] [UU]
        resync=DELAYED
      bitmap: 1/1 pages [4KB], 65536KB chunk

md0 : active raid1 sda1[0] sdb1[1]
      510976 blocks super 1.2 [2/2] [UU]
      bitmap: 0/1 pages [0KB], 65536KB chunk

md1 : active raid1 sda3[0] sdb3[1]
      975911936 blocks super 1.2 [2/2] [UU]
      [======>..............]  resync = 33.1% (323236992/975911936) finish=56.8min speed=191318K/sec
      bitmap: 6/8 pages [24KB], 65536KB chunk


Thank you verry much !!!
« Last Edit: February 09, 2024, 02:36:21 PM by umbi »

Offline Jean-Philippe Pialasse

  • *
  • 2,712
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: installing sme v10 raid1 not working
« Reply #7 on: February 09, 2024, 08:03:25 PM »
on initial install yoi have the raid to sync and also the DH parameter to create for dovecot.  this take a. long time and a lot of cpu.

Offline umbi

  • ***
  • 100
  • +0/-0
Re: installing sme v10 raid1 not working
« Reply #8 on: February 09, 2024, 08:12:34 PM »
I never stop to learn  :lol:

Thank you again Jean-Philippe