6Jun/190

Migration using Plesk

The migration of a website is always a challenging task for the webmaster. Beside a loss of reputation and ranking on search engines, dead links or famous 404-errors, there are some other risks during such a migration. But often it is more dangerous to leave the website on an old server, since old software can become a serious security risk.

Plesk Migrator

If you want to migrate from a current Plesk server with an outdated operation system or an EOL Plesk version, cPanel, Confixx, Helm or DirectAdmin server, Plesk provides the Plesk Migrator.

The Plesk Migrator is an extension which needs to be installed first. Within Plesk navigate to "Extensions", search for "Plesk Migrator" and then you can install it.

After the installation you can open the "Plesk Migrator" at the tab "My Extensions".

The next step is to "Start new Migration" and select the panel type, from which you want to transfer the data. Important: For this you need root access via SSH to the source server. Beside password authentication you can add an SSH key to the server.

If SSH access is not available and only FTP is possible, please see the next chapter Site Importer.

After you have entered the login data, the connection to the source server is started and depending on the server, different migration options are shown.

On a Plesk-to-Plesk migration you can see the subscriptions, customers, reseller and hosting plans.

In addition you can either migrate the customers of a reseller or assign them to a new reseller. After everything is selected, you can continue with a click on "Migrate". At first there are some checks on Apache modules or PHP versions. If there are no errors or you want to ignore possible hints, the migration will start and you can watch the status of the migration.

In case you want to restart the migration after some days, you can click on "Restart Migration".

You can find further information in the Plesk Migration Guide and also in a support article.

Site Importer

In many cases, you already have a running website and want to migrate it with a few clicks. Likely examples are: you have just started with Plesk, you manage your website using a different panel like cPanel or DirectAdmin, or you have a server with a pure LAMP installation.

In this case, Plesk offers an extension called Site Import.

This is also an extension which needs to be installed. Therefore navigate to "Extension" in your Plesk and search for "Site Import", which can be installed then.

There a two different ways to import your website with the Site Importer:

You can login as server administrator and open "Site Importer" at "Extension" - "My Extensions". Alternatively you can navigate to the subscription and select "Website Importing". In the next step, you need to enter the login data for SSH or FTP.

After you entered the login data and clicked "OK", the connection to the source server will be started and the necessary information will be gathered.

If the file structure can not be detected automatically, you can enter additional information like the location of the home directory.

Website software like WordPress, Joomla, Drupal und PrestaShop are recognised automatically and the import is easy. Further information can be found in the Plesk documentation.

Beside websites, this useful extension can also import email accounts. For this choose "Mail Importing" in the subscription. After a click on "Import mail messages", you need to enter the login data and destination email account. If the the email server can not be detected through the login data, you can enter the necessary details at "Show advanced options". With a click on "OK" the import starts.

Additional information is also available on the Plesk website.

Conclusion

We cannot eliminate the risks of a website migration, but minimize them since Plesk offers some useful tools to make a migration easier and reduce the human factor. But the most important thing for a successful migration is a detailed and well thought out planning.

Order a VPS from Contabo and you get the Plesk edition of your choice one month for free! You can also find further information on our Plesk information site.

Posted by: Torsten | Tagged as: , , , , No Comments
24Jan/190

Installation of Softaculous in Plesk and cPanel

Softaculous offers a huge number of scripts which can be installed by the popular „Auto Installer“ under the Plesk and cPanel administration. For Plesk you can activate Softaculous only on a Linux operating system. The free version gives you access to more than 50 scripts whereas the fee-based, fully-licensed version offers around 450 scripts. An overview of the supported scripts can be found here.

Procedure under Plesk

For Plesk 12.0+ versions

The installation of Softaculous under Plesk can be performed by just a few clicks. Please login to your Plesk Control panel with your root user. Afterwards go to the "Server Management -> Extensions" page and click on the "Extensions Catalog" tab. Once done you can search for Softaculous and click on the "Install" button.

Once you have finished the installation of Softaculous you can find it under the "My Extensions" tab.

Please take note that the free version of Softaculous is installed per default. In case that you need the full license for Softaculous, you can order it directly in the "My Extensions" tab next to Softaculous under the "Buy" button.

For older versions of Plesk please use the following procedure for the installation of Softaculous:

1. ionCube loader activation

Befor you start with the activation of the ionCube loader, you have to check if this one is not already installed and enabled on your server.

To check the ionCube version please connect to your server via SSH as root and use the following command:

find / -name 'ioncube_loader_*'

To check if the ionCube loader is activated you can use the following command:

php -m | grep -i ioncube

2. Installation of Softaculous

When the ionCube loader is activated you can continue with the installation of Softaculous. Therefore please take care that you have enabled POSIX. You can check this by executing the following command:

php -m | grep -i posix

In case that POSIX is not enabled, you can enable it in „Tools & Settings“ → „PHP Settings“ → Please select the related PHP handler and continue with the next steps. Once you have taken care that POSIX is enabled, please connect to your server via SSH as root and execute the following commands:

wget -N http://files.softaculous.com/install.sh
chmod 755 install.sh
./install.sh

Once the commands are executed the installer will start with the installation process of Softacoulous. During the installation scripts will be downloaded and the download activity will be shown on the screen. Afterwards you can select Softaculous in your Plesk administration.

Procedure under cPanel/WHM:

1. ionCube loader activation

To activate the ionCube loader on your cPanel administration please follow the steps below:
* Login to WHM (root)
* Got to Server Configuration → Tweak Settings → PHP
* Select „ioncube“ check box for „cPanel PHP loader“
* Click on „Save“ button.
* That's it. This will enable ionCube for you in 3rd party PHP binary.

ioncube_activation

2. Installation of Softaculous

Once you have activated the ionCube loader you have to connect to your server via SSH as root and execute the following commands:

wget -N http://files.softaculous.com/install.sh
chmod 755 install.sh
./install.sh

Afterwards go to WHM > Plugins > Softaculous – Instant Installs

The following webpage should open if the installation was successful:

softaculous_en

There you can purchase the fully licensed version, if required.

General information about Softaculous

More detailed information about Softaculous and an overview of the current apps can be found using the links below:

https://www.softaculous.com/
https://www.softaculous.com/softaculous/apps

31Aug/180

SRV Records – How do I use them correctly?

Definition of an SRV record

With a Service Resource Record (short: SRV record) you can make services, which are usually available via an IP:PORT combination, reachable using a DNS host name. Important to note regarding SRV record is the fact, that they only work if an application has been specifically programmed to make use of them. Examples for this are TeamSpeak3 or Minecraft. SRV-Records can not be used to point a DNS name to an IP address/port combination for arbitrary use by any application.

Example - Teamspeak:
Usually TeamSpeak is using the protocol UDP over port 9987. If you are running a TeamSpeak instance with the IP 123.124.125.126 every client that wants to connect has to enter the IP:port combination of 123.124.125.126:9987. If you change the port or the server IP, you have to inform everyone about the new combination. With SRV records it is possible to connect to TeamSpeak using a DNS host name like ts.mydomain.com

In general every SRV record contains the same information:

_SERVICE._PROTOCOL.yourdomain.tld 86400 IN SRV PRIORITY WEIGHT PORT SERVER

In this example:

_ts3._udp.ts.mydomain.com 86400 IN SRV 0 5 9987 ts.mydomain.com

Values for priority and weight can usually be left at their defaults, they are only used if two or more SRV records with the same name exist. Please note that for the data field, you cannot simply add an IP address here. Instead, you will have to add a valid DNS host name which in turn resolves to an IP address by using an A record, so make sure that the host name you set there exists.

How to create an SRV record at Contabo

  1. Log in into your Contabo customer control panel using https://my.contabo.com
  2. Using the menu item "DNS Zone Management" you can edit a DNS zone and create a new record
  3. The type has to be SRV
  4. Fill in the form. An example can be seen below (please click on the picture in order to increase its size):
  5. The finished record should look like this:

From now on your users can connect to TeamSpeak using only the subdomain ts.mydomain.com

For Minecraft, the record may look like this:

_minecraft._tcp.mc.mydomain.com 86400 IN SRV 0 5 25565 server01.mydomain.com

Please make sure to consult the documentation of your service or application regarding whether SRV records are supported and what scheme they should use.

Posted by: Markus | Tagged as: , , , , No Comments
9Aug/180

Full Monitoring

The optional upgrade Full Monitoring from Contabo is an extensive monitoring tool for your VPS and Dedicated Servers. We are going to present the features of this tool in this tutorial.

Why Full Monitoring?

By the help of Full Monitoring, outages can be detected quickly.

The key benefit of this tool is the immediate notification via SMS (text message) and/or e-mail, should an outage of a server or of only a running service on a server happen. It is like an alert which signals a need for action! We all know and are aware, that a downtime is always a very unpleasant scenario. You can surely understand, that in such a situation it will be beneficial, if you are aware of it immediately. Full Monitoring enables you to react and to take necessary appropriate actions in order to recover all services as soon as possible. In addition other measures can be started, as informing your important customers, for instance.

The administration of services and functions is separated. The contacts - it does not matter if they are e-mail or SMS contacts - can be assigned to the services  which are going to be monitored in any combination.

Furthermore the traffic graphs for VPS and Dedicated Servers can be displayed.

How does Full Monitoring work?

You will receive special login data for Full Monitoring. After logging into Full Monitoring, the screen could look as follows:

We already added two contacts who should be notified. It is only necessary to click on „Add contact“ under „Alert contacts“. Then you can choose the type of contact, with „E-Mail“ and „SMS“ (text message) being the two available options. Please choose the appropriate form of communication depending on your requirements. Under „Services“ you can add services after protocol and port. Particularly, you can assign different contacts to the corresponding services.

In the screenshot you can see that the VPS is online. The services RDP 3389 and http 80 are online, too.

In the following screenshot we reproduce the worst-case scenario when the server is down.

 

In this example, we would send an e-mail to max.mustermann@contabo.com to alert him. In addition we would send a text message to 4912345678.

As a consequence, the services rdp and http would be down, too. We would inform max.mustermann@contabo.com via e-mail and would send a second text message to 4912345678 that RDP is down. In addition we would text a person at 497654321 that the service http is not working.

Given only the webserver is down, but the server is online, we would only send a
text message to 498754321 in this example.

 

For Dedicated Servers already known, we can provide traffic graphs for VPS now as well! In this screenshot you can see the graph for different periods: Daily, weekly, monthly and yearly. For each period you can see the consumed bandwidth for in- and outgoing traffic.

We hope we could introduce this upgrade well and you can see the advantages it has. Could we awake your interest in Full Monitoring? Our whole team would be very pleased to answer your questions. You can find this upgrade during your online order under „Services and upgrades“. You can order the upgrade together with your server online, but it is also possible to order it at any time later by e-mail. For any inquiries, please do not hesitate to contact our customer support team.

Posted by: Alois | Tagged as: , , , No Comments
13Jul/180

Mounting local HDDs via RDP

With RDP it is not only possible to connect to a Windows server. You can also mount local HDDs on the remote Windows server in order to directly transfer data. In this tutorial this process is described step by step.

By the way: In a separate tutorial, we explain how you can connect to your Windows server via RDP. Please read this first in case you are not familiar with RDP yet.

Open your Windows remote desktop connection:

In the sub-menu "Local Resources" you will find the "Local devices and resources" part. Using the "More" button you can choose the HDDs you want to mount on your remote Windows session.



After that you can connect to your server in the way you are used to. During the connection you have to confirm that you really want to allow remote desktop connections to access your local discs.

Once connected you can see the chosen discs directly in the Windows explorer:

Posted by: Julian | Tagged as: , , , , , No Comments
28Jun/180

How do I connect to my Windows server via RDP?

This tutorial will show you how to connect to your Windows VPS or dedicated server at Contabo via RDP from different operating systems.

The following scenarios will be covered:

Connections from desktop operating systems:

  • Establishing a RDP connection from WindowsOS (e.g. Windows 7, 8, 10)
  • Establishing a RDP connection from LinuxOS (e.g. Debian, Ubuntu)
  • Establishing a RDP connection from MacintoshOS (e.g. Apple MacBook)

Connections from mobile devices:

  • Establishing a RDP connection from Android based systems (e.g. Samsung Galaxy)
  • Establishing a RDP connection from iOS based systems (e.g. Apple iPhone)

 

RDP connections from Windows
  • on Windows 7: Please navigate to the "Start icon" of the taskbar and search for "Remote Desktop Connection"
  • bei Windows 8/10: Please navigate to the "Windows icon" of the taskbar and search for "Remote Desktop Connection"

The RDP client should start as follows:

Now you should be able to connect to your server using its hostname (e.g. "vmiXXXXX.contaboserver.net" for VPS or "mXXXX.contaboserver.net" for dedicated servers) or the IP address (e.g. "173.xxx.xxx.xxx"). The RDP session will be established within a few seconds automatically.

Alternatively, you might choose a few options beforehand (e.g. screen resolution and audio settings). Therefore, please click on the "Show Options" button:

Explanations:

  • The screen resolution can be individually modified using the slider
  • If you would like to pass through the audio signal to your local PC, you have to set the "Remote audio playback" function to "Play on this computer"
  • If you would like to make your local printer available on your server, please enable the "Printer" option at the "Local devices and resources" section (Important: The printer device driver must be compellingly installed on your server!)
  • The clipboard is enabled by default, so STRG + C / STRG + V will always work. It can be disabled by disabling its checkbox

 

Troubleshooting:

If you determine issues while connecting to your server, please find enclosed some information about how to fix them:

1. "Remote Desktop can't connect to the remote computer for one of these reasons":

Causes / Solutions:

2. "The remote session was disconnected because there are no Remote Desktop Licence Servers available to provide a license. Please contact the server administrator."

Causes / Solutions:

Obviously, a terminal service was installed on your server and no active licence server has been assigned yet. After the grace period of 90 respectively 120 days, all temporarily licences will be deleted and all further RDP logins will be rejected.

To fix this issue, you either have to delete the terminal service or the affected Windows Registry key

  • If you rent a VPS, you can connect to your server through VNC to perform the required steps:

https://contabo.com/?show=tutorials&tutorial=vnc-connect-vps

  • If you use a dedicated server and you do not have a KVM device attached to your server yet, please get in contact with us at support@contabo.com

* The required server role "Remote Desktop Services" can be deleted at the server manager ("Remove roles and features")
* The affected Registry key can be deleted at the following path:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod

Important: Please be careful while changing settings at the Windows registry! Please create a full backup of the registry beforehand.

* Now please perform a reboot of your server and you should be able to login to your server afterwards again

 

RDP connection from Linux

Alternatively, you can also connect from Linux to your Windows server via RDP. There is a command line based program called "rdesktop" and it is usable for all available linux distributions.

  • Installation:

sudo apt-get install rdesktop

  • Start the RDP connection:

rdesktop <IP address>

Now the RDP connection has been established and you can login to your server using the initial login credentials.

Important information:

  • In order to be able to establish a RDP connection, your Linux system must have an X11 server available. It should be installed by default if you already use a GUI (graphical desktop environment - e.g. "Gnome" or "KDE")
  • Please note, it is generally not recommended to establish a RDP connection through SSH
  • Alternatively, there is another program called 'freeRDP', which can be used instead of 'rdesktop'. Please find more information about it at http://www.freerdp.com/

 

RDP connection from MacOS

In order to be able to establish a RDP connection from MacOS based systems (e.g. Apple MacBook), a RDP client is also required. Please find enclosed a download URL to get the latest RDP client version:

https://itunes.apple.com/us/app/microsoft-remote-desktop/id715768417?mt=12&ign-mpt=uo%3D4

Afterwards, you can start the RDP client following by entering the Windows login credentials (at the "Domain:" field, you can either use the server's IP address or the hostname):



Please always use the latest RDP client version from iTunes, so it is ensured that no connection issues occur!

Troubleshooting:

1. "Remote Desktop Connection cannot verify the identity of the computer that you want to connect to":

=> This kind of error message is mostly caused by an old respectively outdated RDP client version

Causes / Solutions:

  • Please make sure, that you are currently using the latest RDP client version (download-URL above)

 

RDP connection from Android-based systems

To establish a RDP connection from Google-Android-based systems (e.g. Samsung Galaxy) please use the following RDP client directly from the Google App store. You can always download the latest RDP client version here:

https://play.google.com/store/apps/details?id=com.microsoft.rdc.android&hl=en

 

RDP connection from iOS-based systems

Last of all, we would like to inform you about the possibility of how to connect to your Windows server via an iOS-based system (e.g. Apple iPhone).

Please find enclosed the download URL to get the latest RDP client version:

https://itunes.apple.com/us/app/microsoft-remote-desktop/id714464092?mt=8&ign-mpt=uo%3D4

Very important: In order to use the latest RDP client above, iOS version 8.0 is required at least!


If you have any further questions about connecting via RDP to your server or need help, please do not hesitate to contact us at support@contabo.com.

11Jun/180

Establishing a connection to your server via SSH

In this tutorial you will find a guide on how to establish a connection via SSH to your Linux server.

Please note that you will have to replace the place holder <IP Address> in the complete tutorial with the IP address of your server.

Linux

In case you are using a Linux operating system on your local machine you will just have to start a terminal.

To establish the connection to your server please type the following command:

The option -l defines the user which will be connected to. In this case we will use "root".
The option -p defines the port which will be used for the connection. Here we will use the standard SSH port 22.

Should this be the first time you connect to the server, you will have to accept its SSH certificate by typing "yes".

Please insert your password, which you can find in our e-mail "Your Login Data". Kindly note that SSH will not display any letters or symbols when typing the password. You can also copy and paste your password by using the right mouse key (please make sure not to copy your password with blank characters at the end - you can check so by pasting the password into an empty editor file before using it).

Now, click the ‚Enter‘-key. Once done, you should get access to your server via SSH:

The connection has now been established successfully.

Windows

In case you are using a Windows operating system on your local machine, you will have to install a suitable SSH client first.

We recommend to use PuTTy as SSH client:

http://www.putty.org/

After installing PuTTy, open the client and enter the IP address of your Server. The port, in this case the standard SSH port 22, can be changed as well if needed.

Click 'Open' to initiate the connection. You can leave all options to default.

Should this be the first time to connect to the server, you will have to accept its SSH certificate:

Afterwards, you will see the following:

Please insert root (login as:) and your password, which you can find in our e-mail "Your Login Data". Kindly note, SSH will not display any letters or symbols when typing the password. You can also copy and paste your password by using the right mouse key (please make sure not to copy your password with blank characters at the end - you can check so by pasting the password into an empty editor file before using it).

Now, click the ‚Enter‘-key. Once done, you should get access to your server via SSH:

The connection has now been established successfully.

Posted by: Julian | Tagged as: , , , , , , No Comments
21Mar/180

How to manage your RAID controller in Windows

Not long ago, we have shown you in a different tutorial how to manage your raidcontroller in Linux. Below you can find the respective guideline for Windows.

Monitoring a RAID array

A hardware RAID has certain advantages, but also a hardware RAID has to be monitored. We always rely on tried and tested hardware to minimize the risk of a hardware failure, but there is always the risk that hardware fails, therefore monitoring the hardware is even more important to guarantee that the server will keep running properly.

In the case of a software RAID, the operating system generates messages about the RAID; with a hardware RAID, the controller does it itself - but you need a special software to read these messages.

This blog entry shows the installation and use of the Adaptec and LSI software on Windows operating systems.
There are also graphical interfaces available for managing raidcontrollers, such as a web interface.

Please contact our support department in case you are not sure which controller was added to your server.

Updating the controller's firmware or the operating system's driver may lead to a complete loss of all data stored on that RAID!

1. Adaptec

1.1 Installation of the arcconf binary

Open the Powershell as Administrator, you will start at the "Administrator" User folder.
Create a new folder and change to that folder, e.g.:

mkdir C:\raid; chdir C:\raid

The binary can be downloaded via Powershell as well, type in the following command:

iwr -URI http://download.adaptec.com/raid/storage_manager/arcconf_v2_03_22476.zip' -OUTFILE arcconf_v2_03_22476.zip; start arcconf_v2_03_22476.zip

(You could also download the binary with your webbrowser from here )

You should see some directories including the "windows_x64" directory, select that directory and copy it to "C:\raid\".

1.2 Monitoring the raidcontroller

Open the Powershell and change the directory using the following command:

chdir C:\raid\windows_x64\cmdline

You should be able to run the executable by using the following command: " .\arcconf.exe getconfig 1" - this will display all information.

You will get all information regarding the 1st controller installed in your system. In case you have installed more than one controller you could display the information of the 2nd controller by typing ".\arcconf.exe GETCONFIG 2".

A list of available options can be displayed by typing ".\arcconf.exe" .
The most important status can be filtered out by typing ".\arcconf.exe GETCONFIG 1 | findstr Status" into the Powershell.

PS C:\raid\windows_x64\cmdline> .\arcconf.exe GETCONFIG 1 | findstr Status
Controller Status : Optimal
Status : ZMM not installed
Status of Logical Device : Optimal

"ZMM not installed" shows that this controller currently has no BBU (battery backup unit) installed, a BBU can be installed at any time as an upgrade.

A "Degraded" status on a LD (Logical Device) indicates that there must be an issue.

PS C:\raid\windows_x64\cmdline> .\arcconf.exe GETCONFIG 1 | findstr Status
Controller Status : Optimal
Status : ZMM not installed
Status of Logical Device : Degraded

To check if there is any failed drive (in this scenario the SSD failed), type in the following command and you will see the "State : Failed" information:

PS C:\raid\windows_x64\cmdline> .\arcconf.exe GETCONFIG 1 PD
Controllers found: 1
----------------------------------------------------------------------
Physical Device information
----------------------------------------------------------------------
Device #0
Device is a Hard drive
State : Failed
Block Size : 512 Bytes
Failed logical device segments : True
Supported : Yes
Transfer Speed : Failed
Reported Channel,Device(T:L) : 0,0(0:0)
Reported Location : Connector 0, Device 0
Vendor :
Model : Crucial_CT275MX3
Firmware : M0CR040
Serial number : 11111111111111
World-wide name : 500A075116639956
Total Size : 262321 MB
Write Cache : Enabled (write-back)
FRU : None
S.M.A.R.T. : No
S.M.A.R.T. warnings : 0
Power State : Full rpm
Supported Power States : Full power,Powered off,Standby
SSD : Yes
Temperature : Not Supported
NCQ status : Enabled

To replace a failed drive just contact us, we will immediately take care of it. To speed up the process you should provide us with the above output. It shows the S/N and the port that drive is attached to. In this case the S/N is "11111111111111" and the attached Port is "0".

As soon as the drive got replaced the rebuild should start automatically:

PS C:\raid\windows_x64\cmdline> .\arcconf.exe GETCONFIG 1 | findstr Status
Controller Status : Optimal
Status : ZMM not installed
Status of Logical Device : Degraded, Rebuilding ( Rebuild : 1 % )

Depending on your RAID setup this will probably take several hours.

1.3 Installing an available webinterface

For Adaptec controllers there is the "MaxView Storage Manager" available, it can be downloaded here: https://storage.microsemi.com/de-de/speed/raid/storage_manager/msm_windows_x64_v2_03_22476_zip.php

The installer is located within the directory called "manager" - that directory will be created when unpacking the downloaded archive.
You can start the installation by starting "setup_asm_x64.EXE" .
Afterwards you should be able to reach the webinterface on https://<SERVERIP>:8443 .

2. LSI

2.1 Installation of the StorCLI binary

Download of the commandline Binary :

iwr -URI 'https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/1.21.16_StorCLI.zip' -OUTFILE StorCLI.zip;explorer.exe .\StorCLI.zip\versionChangeSet\univ_viva_cli_rel\

A Windows Explorer should popup when using the above command. Now copy "storcli_ALL_OS.zip" to the "C:\raid" directory:

 

Now unzip that file.

 

2.2 Monitoring the raidcontroller

Go to your Powershell and type the following command to access the recently unpacked files:

chdir C:\raid\storcli_All_OS\storcli_All_OS\Windows\

You should be able to call "storCLI.exe", there is also a 64Bit binary.

You can display the current status of the raidcontroller by typing:

PS C:\raid\storcli_All_OS\storcli_All_OS\Windows> .\storcli64.exe /c0 show

TOPOLOGY :
========
-----------------------------------------------------------------------------
DG Arr Row EID:Slot DID Type  State BT       Size PDC  PI SED DS3  FSpace
-----------------------------------------------------------------------------
0 -   -   -        -   RAID1 Optl  N  255.656 GB dflt N  N   dflt N
0 0   -   -        -   RAID1 Optl  N  255.656 GB dflt N  N   dflt N
0 0   0   64:4     12  DRIVE Onln  N  255.656 GB dflt N  N   dflt -
0 0   1   64:5     13  DRIVE Onln  N  255.656 GB dflt N  N   dflt -
----------------------------------------------------------------------------

Example for a failed HDD:

TOPOLOGY :
========
----------------------------------------------------------------------
DG Arr Row EID:Slot DID Type  State BT Size PDC  PI SED DS3  FSpace
----------------------------------------------------------------------
0 -   -   -        -   RAID1 Dgrd  N  255 GB dflt N  N   dflt N
0 0   -   -        -   RAID1 Dgrd  N  255 GB dflt N  N   dflt N
0 0   0   -        -   DRIVE Msng  -  255 GB -    -  -   -    -
0 0   1   64:5     13  DRIVE Onln  N  255 GB dflt N  N   dflt -
---------------------------------------------------------------------

 

PS C:\raid\storcli_All_OS\storcli_All_OS\Windows> .\storcli64.exe /c0 /sall show

Controller = 0
Status = Failure
Description = No drive found!
Detailed Status :
===============
----------------------------------------
Drive Status ErrCd ErrMsg
----------------------------------------
/c0/sALL Failure 255 Drives not found
----------------------------------------

To display the current status of the rebuild you can run:

PS C:\raid\storcli_All_OS\storcli_All_OS\Windows> .\storcli64.exe /c0 /eall /sall show rebuild


Controller = 0
Status = Success
Description = Show Drive Rebuild Status Succeeded.
---------------------------------------------------------
Drive-ID Progress% Status Estimated Time Left
---------------------------------------------------------
/c0/e64/s4 0 In progress -
/c0/e64/s5 - Not in progress -
---------------------------------------------------------

2.3 Installation of a graphical interface

You can download the latest MegaRAID Storage Manager using the following link:

https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/16.05.04.00_MSM_Windows.zip

After downloading, unzip all files. You should be able to access the directory, just run the installation wizard.

Usually you will not have any LDAP authentication, in this case you have to unmark the checkbox when running the installer - otherwise you cannot connect to the manager.

A new shortcut will appear on your desktop, now run that shortcut and type in your login credentials. The following MSM interface should show up:

 

 

 

Posted by: Gianni-Donato | Tagged as: , , , , , No Comments
7Mar/180

How to manage your RAID controller in Linux

Please note: This tutorial focusses on Linux OS. Should you be a Windows user instead, please confer our respective tutorial on how to manage your RAID controller in Windows.

Monitoring a RAID array

A hardware RAID has certain advantages, but also a hardware RAID has to be monitored. We always rely on tried and tested hardware to minimize the risk of a hardware failure, but there is always the risk that hardware fails, therefore monitoring the hardware is even more important to guarantee that the server will keep running properly.

In the case of a software RAID, the operating system generates messages about the RAID; with a hardware RAID, the controller does it itself - but you need a special software to read these messages.

This blog entry shows the installation and use of the Adaptec and LSI software on Linux operating systems.
There are also graphical interfaces available for managing raidcontrollers, such as a web interface.

Please contact our support department in case you are not sure which controller was added to your server.

Please note: Updating the controller's firmware or the operating system's driver may lead to a complete loss of all data stored on that RAID!

For this tutorial some additional software is needed, for Ubuntu 17.10 it can be installed using the following command "apt install zip unzip net-tools"

1. Adaptec

An overview of available software for your Adaptec controller can be found here: https://storage.microsemi.com/en-us/support/series6/index.php

1.1 Installation of the arcconf binary

Installing the binary with the Linux commandline is very easy, you can manage the controller using that binary afterwards.

A download link for the latest available binary can be found on the above mentioned website by clicking on the "Storage Manager Downloads" link.
The "arcconf" binary can be used for various Adaptec products, usually there is no need for additional software.
In this tutorial we are going to download the following binary: https://storage.microsemi.com/en-us/speed/raid/storage_manager/arcconf_v2_03_22476_zip.php

On your commandline just type:

wget http://download.adaptec.com/raid/storage_manager/arcconf_v2_03_22476.zip && unzip arcconf_v2_03_22476.zip

Now move the binary to your binary folder and make it executable:

mv linux_x64/cmdline/arcconf /usr/sbin/ && chmod +x /usr/sbin/arcconf

The "arcconf" command should be available now.

root@contabo:~# arcconf
Controllers found: 1
| UCLI | Adaptec by PMC uniform command line interface
| UCLI | Version 2.03 (B22476)
| UCLI | (C) Adaptec by PMCS 2003-2016
| UCLI | All Rights Reserved

1.2 Monitoring the raidcontroller

Usually the RAID should have an "OPTIMAL" value, in case one HDD fails the controller will start to send an audible alarm signal. That signal will be recognized by our technicians working in the datacenter, in this case we will contact you and inform you about a possible hardware failure.

With the parameter "arcconf GETCONFIG 1" you will get all information regarding the 1st controller installed to your system. In case you have installed more than one controller you could display the information of the 2nd controller by typing "arcconf GETCONFIG 2".

A list of available options can be displayed by typing "arcconf getconfig".

The most important status can be filtered out by typing "arcconf getconfig 1 | grep Status" into the commandline.

root@contabo:~# arcconf getconfig 1 | grep Status
Controller Status : Optimal
Status : ZMM not installed
Status of Logical Device : Optimal

"ZMM not installed" shows that this controller currently has no BBU (batterie backup unit) installed, a BBU can be installed at any time as an upgrade.

A "Degraded" status on a LD (Logical Device) indicates that there must be an issue.

root@contabo:~# arcconf getconfig 1 | grep Status
Controller Status : Optimal
Status : ZMM not installed
Status of Logical Device : Degraded

To check if there is any failed drive (in this scenario the SSD failed), type in the following command and you will see the "State : Failed" information:

root@contabo:~# arcconf getconfig 1 PD
Controllers found: 1
----------------------------------------------------------------------
Physical Device information
----------------------------------------------------------------------
Device #0
Device is a Hard drive
State : Failed
Block Size : 512 Bytes
Failed logical device segments : True
Supported : Yes
Transfer Speed : Failed
Reported Channel,Device(T:L) : 0,0(0:0)
Reported Location : Connector 0, Device 0
Vendor :
Model : Crucial_CT275MX3
Firmware : M0CR040
Serial number : 11111111111111
World-wide name : 500A075116639956
Total Size : 262321 MB
Write Cache : Enabled (write-back)
FRU : None
S.M.A.R.T. : No
S.M.A.R.T. warnings : 0
Power State : Full rpm
Supported Power States : Full power,Powered off,Standby
SSD : Yes
Temperature : Not Supported
NCQ status : Enabled

To replace a failed drive just contact us, we will immediately take care of it. To speed up the process you should provide us with the above output. It shows the S/N and the port that drive is attached to. In this case the S/N is "11111111111111" and the attached Port is "0".

As soon as the drive got replaced the rebuild should start automatically:

root@contabo:~# arcconf getconfig 1 | grep Status
Controller Status : Optimal
Status : ZMM not installed
Status of Logical Device : Degraded, Rebuilding ( Rebuild : 1 % )

Depending on your RAID setup this will probably take several hours.

1.3 Installing an available Webinterface

For Adaptec there is the "MaxView Storage Manager" available, it can be downloaded here: https://storage.microsemi.com/de-de/speed/raid/storage_manager/msm_linux_x64_v2_03_22476_tgz.php

You could also just download it via commandline:

wget http://download.adaptec.com/raid/storage_manager/msm_linux_x64_v2_03_22476.tgz && tar -xzf msm_linux_x64_v2_03_22476.tgz

The installer is located within the directory called "manager" - that directory will be created when unpacking the downloaded archive.
For our system (Ubuntu 17.04) we will install the package using the following command:

dpkg -i manager/StorMan-2.03-22476_amd64.deb

Afterwards you should be able to reach the webinterface at https://<SERVERIP>:8443

2. LSI

2.1 Installation of the StorCLI binary

Download of the commandline Binary :

wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/1.21.16_StorCLI.zip --no-check-certificate && unzip 1.21.16_StorCLI.zip && cd versionChangeSet/univ_viva_cli_rel/ && unzip storcli_All_OS.zip

For our system we will install the Ubuntu package by typing:
dpkg -i storcli_All_OS/Ubuntu/storcli_1.21.06_all.deb

Create a link to make the "storcli" command available to your shell.
ln -s /opt/MegaRAID/storcli/storcli64 /usr/sbin/storcli

2.2 Monitoring the raidcontroller

You can display the current status of the raidcontroller by typing:

root@contabo:~#storcli /c0 show

TOPOLOGY :
========
-----------------------------------------------------------------------------
DG Arr Row EID:Slot DID Type  State BT       Size PDC  PI SED DS3  FSpace
-----------------------------------------------------------------------------
0 -   -   -        -   RAID1 Optl  N  255.656 GB dflt N  N   dflt N
0 0   -   -        -   RAID1 Optl  N  255.656 GB dflt N  N   dflt N
0 0   0   64:4     12  DRIVE Onln  N  255.656 GB dflt N  N   dflt -
0 0   1   64:5     13  DRIVE Onln  N  255.656 GB dflt N  N   dflt -
----------------------------------------------------------------------------

Example of a failed HDD:

TOPOLOGY :
========
----------------------------------------------------------------------
DG Arr Row EID:Slot DID Type  State BT Size PDC  PI SED DS3  FSpace
----------------------------------------------------------------------
0 -   -   -        -   RAID1 Dgrd  N  255 GB dflt N  N   dflt N
0 0   -   -        -   RAID1 Dgrd  N  255 GB dflt N  N   dflt N
0 0   0   -        -   DRIVE Msng  -  255 GB -    -  -   -    -
0 0   1   64:5     13  DRIVE Onln  N  255 GB dflt N  N   dflt -
---------------------------------------------------------------------

root@contabo:~#storcli /c0 /sall show


Controller = 0
Status = Failure
Description = No drive found!
Detailed Status :
===============
----------------------------------------
Drive    Status  ErrCd ErrMsg
----------------------------------------
/c0/sALL Failure   255 Drives not found
----------------------------------------

To display the current status of the rebuild you can run:

root@contabo:~#storcli /c0 /eall /sall show rebuild

Controller = 0
Status = Success
Description = Show Drive Rebuild Status Succeeded.
---------------------------------------------------------
Drive-ID   Progress% Status          Estimated Time Left
---------------------------------------------------------
/c0/e64/s4         0 In progress     -
/c0/e64/s5         - Not in progress -
---------------------------------------------------------

2.3 Installing an available webinterface

Unfortunately, there is currently no webinterface available for Linux.

 

Posted by: Gianni-Donato | Tagged as: , , , , , No Comments
15Dec/170

Basic information about our Webspace

Today we would like to give you some basic usage hints about our webspace packages. First of all, our webspace offers are based on cPanel which is well known and under active development. However, we would like to explain some points and present the most important features. In this post we will refer to the YouTube-playlist of the cPanelTV channel which contains many tutorials directly provided by the producer. You may also find it at the end of our explanations, so you do not have to search for the videos.

Concerning webspace packages there are few basic topics to be considered:

  • Make sure you use safe passwords. cPanel provides the option to generate a password according to chosen criteria and gives feedback of the security level of your password.
  • Installing updates: We maintain the hard- and software your webspace is based on, but do not have acess to your website. Therefore it is always important to keep the used CMS (content management system) up-to-date. Not only the visitors of your websites will thank you for not becoming a victim of possible attacks, but also us, as the risk of spamming via a hacked CMS can be minimized.
  • Commensurability: Our goal is to provide you with a lot of resources at a low price. Yet, you should consider whether a webspace is the best product for the intended purpose. A large online shop containing many products on a webspace is, for example, not recommendable. In case you are planning to host such a large online shop, kindly contact our customer support department and we will gladly assist you in finding the best hosting solution for your needs.

If you have other inquiries, our support will be at hand at the regular times as well. Just contact us!

But now we continue with the original topic of this tutorial, namely presenting some important and basic elements to operate cPanel.

Passwords

Earlier we mentioned safe passwords are important, unfortunately, even more will come with a webspace and add to your long list of already existing passwords. It is quite tempting to use the same password for all services, but this is absolutely not recommendable. An example: An attacker gets to know your administrator password using a security breach of your CMS. This password is also used for the login to cPanel, your email account, as database password and for ftp access. Therefore, the attacker will have access to all those services and will be able to send emails using your name, delete your data or upload illegal content. Unfortunately, this example is not hypothetical but rather common. Consequently our advice is: always use individual and secure passwords. Further examples are provided by cPanel in the video "cPanel Tutorials: How to change your password", where you will also find a tutorial how to change an existing password.

File manager

After your order has been completed, you receive an email with all required information and login details, including a URL to cPanel. After you logged into the system the question you probably ask yourself is "How can I upload my website?". We can inform you that there are multiple ways to proceed:

  1. The most common way is using FTP(S), which stands for "File Transfer Protocol (over SSL)" and is a standardized protocol to transfer files, the letter "S" for securing the connection by using SSL. We always recommend using FTPS, since this guarantees that the file transfer is encrypted, which is not the case if you use plain FTP. More details how you can create an FTP account can be found at the video tutorial "cPanel Tutorials: FTP".
  2. The file manager included in cPanel: This is the easiest way and should work from nearly all sources, in addition, the file manager provides the possibility to edit files or check out the content. A video guide is available, too. It is called "cPanel Tutorials: File Manager".
  3. Another option uses the so called "Web Disk" which uses WebDAV for file transfer and can mount the webspace as a drive within the local PC. Please check out the video "cPanel Tutorials: Web Disk" for more details.

MySQL and PHPMyAdmin

The two points MySQL and PHPMyAdmin need to be mentioned together, PHPMyAdmin is the software part which provides you with access to the databases with the login credentials you set. After you logged into PHPMyAdmin you are free to check the databases, delete records or perform any changes. In addition, you can upload or create a database backup using PHPMyAdmin, too. MySQL is the data base server installed by us. Nowadays nearly all content management systems require a database to save the information which should be shown on your website. A guide how you can create a database and a user ist shown within the video "cPanel Tutorials: MySQL Databases".

Domains

A webspace requires a default domain, which needs to be provided during the order process in order to create the account and provide you with the login details. But of course, additional domains can be added to your webspace. There are different ways to do so:

  1. You can always order new domains from us, for details please consult our website at https://contabo.com/?show=domains.
  2. You can transfer a domain from another provider to us using the auth code which needs to be provided by the current provider.
  3. You can register domains at another provider and use them together with the webspace, but please keep in mind, that this requires that the nameservers are changed to the ones shown within the customer control panel and a DNS zone needs to be created. A few more details:
    Under the menu item "DNS Zone Management" in your Contabo customer control panel at https://my.contabo.com you can create an unlimited number of DNS zones for your domains free of charge. Your domains can be registered by third party providers as well. The DNS zones are stored on our nameservers, and within these DNS zones you can define multiple DNS records such as the "A record", which makes a domain point to a certain IP address. You do not need to specify the DNS records individually when creating a DNS zone; just choose the correct target IP address, working DNS records will be set automatically. After the creation of a proper DNS zone and once our nameservers are assigned to your domain, you can use the domain on your webspace package in a very secure way. Please note that only the present domain provider is able to change the assigned nameservers, thus you will have to contact the domain provider directly, or optionally use an administration panel from your domain provider if there is any available. After all, you need to add the domain in your webspace package using cPanel. You can choose between adding it as an "Alias" (also known as "Parked Domain") or as an "Addon Domain".

An "Addon Domain" will have its own subfolder in your public_html directory. It will also have its own rights such as an independent FTP login and the option to administer email addresses for the new domain.

An "Alias", on the other hand, has no own subfolder, it is linked to the main folder. Creating redirections and email addresses is also possible with "Aliases", of course.

Email

Most likely a webspace is used for email purpose, too. Basically there is one major point which should always be kept in mind: Webspace plans are not designed to send masses of emails. The option "Email" offers quite a lot of different functions and we unfortunately cannot discuss them in detail, but most of them are explained within the cPanelTV videos linked below.

Please note, that the videos may include options which are not offered by us or are not available with all packages. In addition, it is unfortunately not possible to install additional PHP modules upon request. Should you require special modules, we recommend to check out our VPS and Dedicated Server offers.

Softaculous

In order to provide an easy way to use our webspace products, we have a feature included which offers you the possibility to install quite a lot of software packages without having to search for installers, uploading them and performing the manual installation. This feature is called "Softaculous" and you can check out more details by having a look at our homepage:

https://contabo.com/?show=webhosting
https://contabo.com/?show=webapplications

If you have any questions regarding the above mentioned points or other general requests we are available via email and telephone.

 

Update:

Brand new: The Contabo Website Builder - available free of charge in all of our webspace plans. Create your own website in just a couple of minutes!

Posted by: Paul | Tagged as: , , , , No Comments