Changes

From SME Server
Jump to navigationJump to search
490 bytes added ,  23:00, 16 September 2014
no edit summary
Line 1: Line 1: −
'''<big>Setup an SME Server with 2 SSD’s in a RAID1 setup with Over Provisioning</big>'''
+
'''<big>Setup an SME Server with 2 SSD’s in a RAID1 setup with Over Provisioning</big>'''<br />
      −
'''Write Amplification'''
+
'''Write Amplification'''<br />
    
This manual describes how to setup an SME Server with 2 Solid State Drives (SSD’s) in a RAID1 setup with Over Provisioning to prevent Write Amplification.<br />
 
This manual describes how to setup an SME Server with 2 Solid State Drives (SSD’s) in a RAID1 setup with Over Provisioning to prevent Write Amplification.<br />
Line 12: Line 12:  
Also SSD’s in RAID5 is discouraged as it also vastly increases Write Amplification.<br />
 
Also SSD’s in RAID5 is discouraged as it also vastly increases Write Amplification.<br />
 
Because this is a manual on how to setup an SME Server with 2 SSD’s in a RAID1 setup with Over Provisioning to prevent Write Amplification, and not on What Write Amplification is exactly, I will not go into that any further.<br />
 
Because this is a manual on how to setup an SME Server with 2 SSD’s in a RAID1 setup with Over Provisioning to prevent Write Amplification, and not on What Write Amplification is exactly, I will not go into that any further.<br />
For more information on that, this is a good place to start:
+
For more information on that, this is a good place to start: http://en.wikipedia.org/wiki/Write_amplification<br />
http://en.wikipedia.org/wiki/Write_amplification
        −
'''Over Provisioning'''
+
'''Over Provisioning'''<br />
    
Over Provisioning is a fancy term for partitioning xx% less than the full capacity of the disk.<br />
 
Over Provisioning is a fancy term for partitioning xx% less than the full capacity of the disk.<br />
Line 24: Line 23:       −
'''Setup an SME Server with 2 SSD’s in a RAID1 setup with Over Provisioning'''
+
'''Setup an SME Server with 2 SSD’s in a RAID1 setup with Over Provisioning'''<br />
    
In the Boot Menu select Advanced installation options.<br />
 
In the Boot Menu select Advanced installation options.<br />
Line 41: Line 40:  
In this example we choose English.<br />
 
In this example we choose English.<br />
 
[[File:pic04.gif|589px|frameless|none|Picture 4]]
 
[[File:pic04.gif|589px|frameless|none|Picture 4]]
Click next.
+
Click next.<br />
      −
Select your keyboard layout.
+
Select your keyboard layout.<br />
In this example we choose U.S. English.
+
In this example we choose U.S. English.<br />
 
[[File:pic05.gif|587px|frameless|none|Picture 5]]
 
[[File:pic05.gif|587px|frameless|none|Picture 5]]
Click next.
+
Click next.<br />
      −
Select Basic Storage Devices.
+
Select Basic Storage Devices.<br />
 
[[File:pic06.gif|588px|frameless|none|Picture 6]]
 
[[File:pic06.gif|588px|frameless|none|Picture 6]]
Click next.
+
Click next.<br />
      −
Select Yes, discard any data.
+
Select Yes, discard any data.<br />
 
[[File:pic07.gif|590px|frameless|none|Picture 7]]
 
[[File:pic07.gif|590px|frameless|none|Picture 7]]
Click next.
+
Click next.<br />
      −
Select your timezone.
+
Select your timezone.<br />
 
[[File:pic08.gif|589px|frameless|none|Picture 8]]
 
[[File:pic08.gif|589px|frameless|none|Picture 8]]
Click next.
+
Click next.<br />
      −
Select Create Custom Layout.
+
Select Create Custom Layout.<br />
 
[[File:pic09.gif|589px|frameless|none|Picture 9]]
 
[[File:pic09.gif|589px|frameless|none|Picture 9]]
Click next.
+
Click next.<br />
      −
You are given a default RAID1 layout which uses the full disk capacity.
+
You are given a default RAID1 layout which uses the full disk capacity.<br />
This is where we start costomizing the partition layout.
+
This is where we start costomizing the partition layout.<br />
For the example I have two 40GByte SSD disks.
+
For the example I have two 40GByte SSD disks.<br />
Both disks have a 250MB system partition (sda1 and sdb1) and a larger partition for the rest of the data (sda2 and sdb2).
+
Both disks have a 250MB system partition (sda1 and sdb1) and a larger partition for the rest of the data (sda2 and sdb2).<br />
 
[[File:pic10.gif|590px|frameless|none|Picture 10]]
 
[[File:pic10.gif|590px|frameless|none|Picture 10]]
Click next.
+
Click next.<br />
      −
Remove all partitions by selecting sda and sdb and selection delete with both.
+
Remove all partitions by selecting sda and sdb and selection delete with both.<br />
After that you have a 2 partition free SSD’s like shown below.
+
After that you have a 2 partition free SSD’s like shown below.<br />
You can see the disk is 40959 MB in size.
+
You can see the disk is 40959 MB in size.<br />
 
[[File:pic11.gif|590px|frameless|none|Picture 11]]
 
[[File:pic11.gif|590px|frameless|none|Picture 11]]
Now, Over Provisioning usually is set somewhere between 5% and 25% and like said before, there is no right value to set for Over Provisioning.
+
Now, Over Provisioning usually is set somewhere between 5% and 25% and like said before, there is no right value to set for Over Provisioning.<br />
Usually people set it at 10% and that is what most SSD tools advise. Setting it lower than that will age your SSD disk faster and will compromise your SSD’s performance.
+
Usually people set it at 10% and that is what most SSD tools advise. Setting it lower than that will age your SSD disk faster and will compromise your SSD’s performance.<br />
If you are rather safe that sorry and the diskcapacity of your RAID1 set is not an issue you could set it to 15% or 20%.
+
If you are rather safe that sorry and the diskcapacity of your RAID1 set is not an issue you could set it to 15% or 20%.<br />
Setting it higher seems like overkill to me.
+
Setting it higher seems like overkill to me.<br />
In our example we will use 10% Over Provisioning.
+
In our example we will use 10% Over Provisioning.<br />
The system (250MB) and swap (4064MB) partitions will be the same size as in the default setting.
+
The system (250MB) and swap (4064MB) partitions will be the same size as in the default setting.<br />
That will make the size of the larger data partition: 40959MB x 0,9 = 36863MB – 250MB = 36613MB.
+
That will make the size of the larger data partition: 40959MB x 0,9 = 36863MB – 250MB = 36613MB.<br />
      −
We will start bij partitioning disk sda.
+
We will start bij partitioning disk sda.<br />
Select sda and click create.
+
Select sda and click create.<br />
Select RAID Partition and click create.
+
Select RAID Partition and click create.<br />
Set all options like shown in the folowing screen and select OK:
+
Set all options like shown in the folowing screen and select OK:<br />
 
[[File:pic12.gif|293px|frameless|none|Picture 12]]
 
[[File:pic12.gif|293px|frameless|none|Picture 12]]
The size of the partition (250MB) will be the same whatever size SSD you will be using.
+
The size of the partition (250MB) will be the same whatever size SSD you will be using.<br />
      −
Under sda select the Free space and click create.
+
Under sda select the Free space and click create.<br />
Select RAID Partition and click create.
+
Select RAID Partition and click create.<br />
Set all options like shown in the folowing screen and select OK:
+
Set all options like shown in the folowing screen and select OK:<br />
 
[[File:pic13.gif|295px|frameless|none|Picture 13]]
 
[[File:pic13.gif|295px|frameless|none|Picture 13]]
The size of the partition will be 90% of the SSD size - 250MB.
+
The size of the partition will be 90% of the SSD size - 250MB.<br />
So this size will depend on the size SSD you are using and using 10% Over Provisioning.
+
So this size will depend on the size SSD you are using and using 10% Over Provisioning.<br />
      −
Now we will do the same for the disk sdb.
+
Now we will do the same for the disk sdb.<br />
Select sdb and click create.
+
Select sdb and click create.<br />
Select RAID Partition and click create.
+
Select RAID Partition and click create.<br />
Set all options like shown in the folowing screen and select OK:
+
Set all options like shown in the folowing screen and select OK:<br />
 
[[File:pic14.gif|295px|frameless|none|Picture 14]]
 
[[File:pic14.gif|295px|frameless|none|Picture 14]]
The size of the partition (250MB) will be the same whatever size SSD you will be using.
+
The size of the partition (250MB) will be the same whatever size SSD you will be using.<br />
      −
Under sda select the Free space and click create.
+
Under sda select the Free space and click create.<br />
Select RAID Partition and click create.
+
Select RAID Partition and click create.<br />
Set all options like shown in the folowing screen and select OK:
+
Set all options like shown in the folowing screen and select OK:<br />
 
[[File:pic15.gif|294px|frameless|none|Picture 15]]
 
[[File:pic15.gif|294px|frameless|none|Picture 15]]
The size of the partition will be 90% of the SSD size - 250MB.
+
The size of the partition will be 90% of the SSD size - 250MB.<br />
So this size will depend on the size SSD you are using and using 10% Over Provisioning.
+
So this size will depend on the size SSD you are using and using 10% Over Provisioning.<br />
      −
Select Hard Drives and select create.
+
Select Hard Drives and select create.<br />
Select RAID Device and click create.
+
Select RAID Device and click create.<br />
Set all options like shown in the folowing screen and select OK:
+
Set all options like shown in the folowing screen and select OK:<br />
 
[[File:pic16.gif|239px|frameless|none|Picture 16]]
 
[[File:pic16.gif|239px|frameless|none|Picture 16]]
Make sure you select both system partitions sda1 and sdb1 witch both are 250MB.
+
Make sure you select both system partitions sda1 and sdb1 witch both are 250MB.<br />
      −
Select Hard Drives and select create.
+
Select Hard Drives and select create.<br />
Select RAID Device and click create.
+
Select RAID Device and click create.<br />
Set all options like shown in the folowing screen and select OK:
+
Set all options like shown in the folowing screen and select OK:<br />
 
[[File:pic17.gif|240px|frameless|none|Picture 17]]
 
[[File:pic17.gif|240px|frameless|none|Picture 17]]
Make sure you select both system partitions sda2 and sdb2.
+
Make sure you select both system partitions sda2 and sdb2.<br />
      −
Under RAID Devices select md1 and click create.
+
Under RAID Devices select md1 and click create.<br />
Select LVM Volume Group and click create.
+
Select LVM Volume Group and click create.<br />
Select Add and set all options like shown in the folowing screen and select OK:
+
Select Add and set all options like shown in the folowing screen and select OK:<br />
 
[[File:pic18.gif|323px|frameless|none|Picture 18]]
 
[[File:pic18.gif|323px|frameless|none|Picture 18]]
Set the swap size the same as the default setting that was presented to you earlier.
+
Set the swap size the same as the default setting that was presented to you earlier.<br />
      −
Select Add again and set all options like shown in the folowing screen and select OK:
+
Select Add again and set all options like shown in the folowing screen and select OK:<br />
 
[[File:pic19.gif|323px|frameless|none|Picture 19]]
 
[[File:pic19.gif|323px|frameless|none|Picture 19]]
Set the size the same as the maximum size shown in the same window.
+
Set the size the same as the maximum size shown in the same window.<br />
      −
Select OK again in this window to start the installation.
+
Select OK again in this window to start the installation.<br />
 
[[File:pic20.gif|323px|frameless|none|Picture 20]]
 
[[File:pic20.gif|323px|frameless|none|Picture 20]]
      −
The RAID1 set you just created is shown now.
+
The RAID1 set you just created is shown now.<br />
Notice that both sda and sdb have 10% of free space now.
+
Notice that both sda and sdb have 10% of free space now.<br />
 
[[File:pic21.gif|592px|frameless|none|Picture 21]]
 
[[File:pic21.gif|592px|frameless|none|Picture 21]]
Click next.  
+
Click next.<br />
      −
Select Write changes to disk.
+
Select Write changes to disk.<br />
 
[[File:pic22.gif|235px|frameless|none|Picture 22]]
 
[[File:pic22.gif|235px|frameless|none|Picture 22]]
      −
After the partitioning/formatting has finished you will see the screen below:
+
After the partitioning/formatting has finished you will see the screen below:<br />
 
[[File:pic23.gif|593px|frameless|none|Picture 23]]
 
[[File:pic23.gif|593px|frameless|none|Picture 23]]
Click next.
+
Click next.<br />
      −
The packages will now be installed.
+
The packages will now be installed.<br />
 
[[File:pic24.gif|594px|frameless|none|Picture 24]]
 
[[File:pic24.gif|594px|frameless|none|Picture 24]]
      −
After some time your installation will be completed and you are asked to reboot:
+
After some time your installation will be completed and you are asked to reboot:<br />
 
[[File:pic25.gif|592px|frameless|none|Picture 25]]
 
[[File:pic25.gif|592px|frameless|none|Picture 25]]
Click Reboot.
+
Click Reboot.<br />
After reboot, finish your SME configuration as you are used to, set an admin password, IP-settings and so on…
+
After reboot, finish your SME configuration as you are used to, set an admin password, IP-settings and so on…<br />
      −
Login to your server with user root and use the command cat /proc/mdstat to check if your RAID1 set is synchronising:
+
Login to your server with user root and use the command cat /proc/mdstat to check if your RAID1 set is synchronising:<br />
 
[[File:pic26.gif|591px|frameless|none|Picture 26]]
 
[[File:pic26.gif|591px|frameless|none|Picture 26]]
      −
After the synchronisation finished the command cat /proc/mdstat output should look something like this:
+
After the synchronisation finished the command cat /proc/mdstat output should look something like this:<br />
 
[[File:pic27.gif|340px|frameless|none|Picture 27]]
 
[[File:pic27.gif|340px|frameless|none|Picture 27]]
      −
'''Tip:'''  
+
'''Tip:'''<br />
Do not use the admin account to add an SSD disk to a RAID1 set that is custum partitioned to use less than 100% of the disk space from the menu (Option 5. Manage disk redundancy) because the script behind this option will not check how the disk that needs to be cloned is partitioned.
+
Do not use the admin account to add an SSD disk to a RAID1 set that is custum partitioned to use less than 100% of the disk space from the menu (Option 5. Manage disk redundancy) because the script behind this option will not check how the disk that needs to be cloned is partitioned.<br />
The script will add the disk but will partition it using 100% of the disk space even when the first SSD disk in the RAID1 set is partitioned using less than 100% of the disk space.
+
The script will add the disk but will partition it using 100% of the disk space even when the first SSD disk in the RAID1 set is partitioned using less than 100% of the disk space.<br />
63

edits

Navigation menu