Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: smnirosh on September 10, 2018, 09:13:04 PM

Title: Configure software raid
Post by: smnirosh 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
Title: Re: Configure software raid
Post by: wires12 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;


For best results be sure to have at least TWO copies of your critical data on TWO different types of media/backup methods.
Title: Re: Configure software raid
Post by: smnirosh 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???
Title: Re: Configure software raid
Post by: wires12 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?
Title: Re: Configure software raid
Post by: smnirosh 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:
Title: Re: Configure software raid
Post by: wires12 on September 11, 2018, 07:37:50 AM
Then reinstall with RAID 1 (mirror).
Title: Re: Configure software raid
Post by: smnirosh 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?
Title: Re: Configure software raid
Post by: wires12 on September 11, 2018, 07:45:54 AM
Why bother? Just reinstall.

(unlessyouaretryingtostartameanderingthreadthatmakeseveryonesheadhurtandgoesnowherewhiledrainingthelastbitsofvitalityfromaoncevibrantcommunity)
Title: Re: Configure software raid
Post by: smnirosh on September 11, 2018, 07:51:13 AM
It affects to other users who access files on this server and openvpn.  :sad:
Title: Re: Configure software raid
Post by: ReetP 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.

Title: Re: Configure software raid
Post by: ReetP on September 11, 2018, 11:23:02 AM
(unlessyouaretryingtostartameanderingthreadthatmakeseveryonesheadhurtandgoesnowherewhiledrainingthelastbitsofvitalityfromaoncevibrantcommunity)

Chortle :-)
Title: Re: Configure software raid
Post by: smnirosh 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?
Title: Re: Configure software raid
Post by: ReetP 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.
Title: Re: Configure software raid
Post by: smnirosh on September 11, 2018, 02:36:44 PM
Ok reetp. Thanks very much ur support.
Title: Re: Configure software raid
Post by: ReetP 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.