Koozali.org: home of the SME Server

Configure software raid

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Configure software raid
« on: September 10, 2018, 09:13:04 PM »
Hello everybody, I have a hp server with sme server 9.2 installed. I have enabled hardware raid controller on the server but neither in sme server it has not been configured as hardware raid nor software raid. I would like to know that could i install software raid on this server without loosing any data. ?  Thanks for your support

Offline wires12

  • **
  • 56
  • +0/-0
Re: Configure software raid
« Reply #1 on: September 11, 2018, 07:11:25 AM »
Hardware and software RAID are mutually exclusive. If you enable (and configure) hardware RAID all the SME installer will see is one drive. OTOH if you disable the hardware RAID controller (best idea...) you can configure available disks in various RAID configurations in the SME installer.

So if you now have hardware RAID and want to switch to software RAID you will have to;

  • Back up your data (best option is in backup to USB disk in the admin terminal interface)
  • Undo the hardware RAID and disable it on your HP server box
  • Reinstall SME server, choose the RAID you want during install
  • Restore your data

For best results be sure to have at least TWO copies of your critical data on TWO different types of media/backup methods.
« Last Edit: September 11, 2018, 07:13:13 AM by wires12 »

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Configure software raid
« Reply #2 on: September 11, 2018, 07:24:14 AM »
Yes wires12 your answer is correct and thanks.
But in my scenario I have not configured hardware raid and not installed os as hardware raid enabled. Only activated smart array adapter on the server. Also sme server is not installed as software raid enabled, that’s why I try to enable software raid now.  :) I can see both the two disk in the fdisk. (If I configured hw raid fdisk shows me one hard disk!!!) Is it possible to do without even reinstalling???

Offline wires12

  • **
  • 56
  • +0/-0
Re: Configure software raid
« Reply #3 on: September 11, 2018, 07:30:36 AM »
I'm sorry but I'm a bit confused.

How many disks are installed in the HP server?

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Configure software raid
« Reply #4 on: September 11, 2018, 07:34:48 AM »
Two disks. I have installed the server as “no raid/no vlm”. That’s why no raid is configured yet.  :sad:

Offline wires12

  • **
  • 56
  • +0/-0
Re: Configure software raid
« Reply #5 on: September 11, 2018, 07:37:50 AM »
Then reinstall with RAID 1 (mirror).

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Configure software raid
« Reply #6 on: September 11, 2018, 07:42:12 AM »
Yes but instead of reinstalling, I can configure software raid on sme server using mdadm. Is it possible to configure that manner or will it be confused with smart array adapter on the server?

Offline wires12

  • **
  • 56
  • +0/-0
Re: Configure software raid
« Reply #7 on: September 11, 2018, 07:45:54 AM »
Why bother? Just reinstall.

(unlessyouaretryingtostartameanderingthreadthatmakeseveryonesheadhurtandgoesnowherewhiledrainingthelastbitsofvitalityfromaoncevibrantcommunity)

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Configure software raid
« Reply #8 on: September 11, 2018, 07:51:13 AM »
It affects to other users who access files on this server and openvpn.  :sad:

Offline ReetP

  • *
  • 3,734
  • +5/-0
Re: Configure software raid
« Reply #9 on: September 11, 2018, 11:22:43 AM »
It affects to other users who access files on this server and openvpn.  :sad:

In that case you should have made sure you knew what you were doing before you started.

"Act in haste, repent at leisure."

It may mean you have to spend a whole night working on it if you don't want to upset your users, but the answer above is your easiest option.

Yes, you could convert to a RAID - there is lots of information online you can find for yourself about how to do this. There are also some clues in the wiki. Just make sure you have a good backup first.

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,734
  • +5/-0
Re: Configure software raid
« Reply #10 on: September 11, 2018, 11:23:02 AM »
(unlessyouaretryingtostartameanderingthreadthatmakeseveryonesheadhurtandgoesnowherewhiledrainingthelastbitsofvitalityfromaoncevibrantcommunity)

Chortle :-)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Configure software raid
« Reply #11 on: September 11, 2018, 01:02:02 PM »
Yes ReetP, first of all i decided to have a backup using dd command. Is it quite worth or another backup option that would be better support for sme server restoration in case of failure?

Offline ReetP

  • *
  • 3,734
  • +5/-0
Re: Configure software raid
« Reply #12 on: September 11, 2018, 02:28:47 PM »
Yes ReetP, first of all i decided to have a backup using dd command. Is it quite worth or another backup option that would be better support for sme server restoration in case of failure?

Yup. Use the SME server backup (and read the wiki carefully on use).

Disconnect the server from the network so it stops collecting any mail etc, run backup from the console, and then 'restore from backup' when you reinstall.

Should work.

dd will copy all your existing partitions etc. with no raid partitions, so dd restore will put you back where you started, which is not what you wanted.

PLEASE go and have a good read about all this and educate yourself about how these things work.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Configure software raid
« Reply #13 on: September 11, 2018, 02:36:44 PM »
Ok reetp. Thanks very much ur support.

Offline ReetP

  • *
  • 3,734
  • +5/-0
Re: Configure software raid
« Reply #14 on: September 11, 2018, 04:18:55 PM »
Ok reetp. Thanks very much ur support.

Make notes as you go, and if you get stuck then come back here with the notes, and what went wrong.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation