<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.ipbrick.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.ipbrick.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Amachado</id>
		<title>wiki.IPBRICK.COM - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.ipbrick.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Amachado"/>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/Special:Contributions/Amachado"/>
		<updated>2026-05-13T12:24:29Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.2</generator>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/Users_accounts_Server/Work-Area_Migration_-_Expediting_the_Migration_Process</id>
		<title>Users accounts Server/Work-Area Migration - Expediting the Migration Process</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/Users_accounts_Server/Work-Area_Migration_-_Expediting_the_Migration_Process"/>
				<updated>2018-08-16T17:24:15Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: Created page with &amp;quot;'''NOTE: This tutorial is provided for systems administrators, it requires strong knowledge of linux command-line environment. One must proceed with caution. '''  = Summary =...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''NOTE: This tutorial is provided for systems administrators, it requires strong knowledge of linux command-line environment. One must proceed with caution. '''&lt;br /&gt;
&lt;br /&gt;
= Summary =&lt;br /&gt;
This procedure helps expediting the migration process of users accounts from one server/workarea to another server/workarea. This is valid for migrating from one server to another (MASTER to SLAVE, or from SLAVE_A to SLAVE_B, or from SLAVE to MASTER).&lt;br /&gt;
&lt;br /&gt;
A sample scenario is that of one standard/basic migration that lasted for several hours with direct impact on users access for all these several hours, can now be accomplished with less than 5 (five) minutes real impact on user.&lt;br /&gt;
&lt;br /&gt;
== Standard Migration ==&lt;br /&gt;
The basic/standard IPBRICK (web interface) procedure consists in:&lt;br /&gt;
* PHASE 1 - change location information in database (IPBRICK.OS MASTER database, and system/LDAP database)&lt;br /&gt;
* PHASE 2 - move user's data files (personal files and maildir) from source to destination&lt;br /&gt;
&lt;br /&gt;
Sometime this procedure may take a long time in &amp;quot;PHASE 2&amp;quot; (moving the data files from source to destination). In some reported scenarios this resulted in several hours per user.&lt;br /&gt;
This depends on several factors, such as:&lt;br /&gt;
* size of user's data files&lt;br /&gt;
** size in bytes&lt;br /&gt;
** size in number of individual files&lt;br /&gt;
* performance of system infrastructure:&lt;br /&gt;
** overall performance of source server, storage/disk, network bandwidth&lt;br /&gt;
** overall performance of destination server, storage/disk, network bandwidth&lt;br /&gt;
&lt;br /&gt;
Meanwhile during the migration process the user may found himself locked out - with no access to his/hers data files (personal files nor maildir).&lt;br /&gt;
&lt;br /&gt;
This is the problem: impact on user's access to its own data files.&lt;br /&gt;
&lt;br /&gt;
== NEW - Assisted Migration ==&lt;br /&gt;
With this procedure we reduce the impact to the minimum time required to perform a simple file sync - less than 5 minutes per user.&lt;br /&gt;
&lt;br /&gt;
Here we will be using a cheat procedure - user's data files migration will be done entirely in a manual procedure, we will ensure that the standard IPBRICK (web interface) will be in charge of migrating an empty folder (instantaneous migration).&lt;br /&gt;
&lt;br /&gt;
Step by step description:&lt;br /&gt;
* ON-LINE - no impact on users access&lt;br /&gt;
** initial copy/synchronization of user's data files from real source user folder (source server / work-area / user folder) to temporary destination folder located at destination filesystem (destination server / work-area) - this may be a long process, may last for several hours but with no user is locked off&lt;br /&gt;
** intermediate synchronization - after finishing the first initial copy you may perform one or more regular intermediate synchronizations, you may register how long this intermediate synchronizations take, this is a very real measure of how long it will take to perform the last synchronization, this is the time the user will be kept off-line (impact on user)&lt;br /&gt;
* OFF-LINE - now it is time to perform the real migration, user will be locked off access to its data files&lt;br /&gt;
** last synchronization - rename real source folder to a temporary folder in the same source filesystem, perform last synchronization from this temporary source folder to the temporary destination folder - synchronization is now complete&lt;br /&gt;
** create an empty source folder for user&lt;br /&gt;
** go to IPBRICK web interface and instruct to move user to the select destination server and destination work area, Apply Configurations - Updated Successfuly&lt;br /&gt;
** go to destination server, destination  work area, confirm that there is an empty folder for the selected user, remove that folder, rename previous temporary destination folder to the correct username&lt;br /&gt;
* ON-LINE - the procedure is now complete &lt;br /&gt;
&lt;br /&gt;
= Requirements =&lt;br /&gt;
&lt;br /&gt;
== CAUTION / ATTENTION ==&lt;br /&gt;
''' This tutorial is provided &amp;quot;as is&amp;quot; for systems administrators, it requires strong knowledge of linux command-line environment. You must proceed with caution and at your own risk.'''&lt;br /&gt;
&lt;br /&gt;
'''We recommend you to read this procedure in advance before you start any intervention in your server. If you don't feel comfortable with the procedures stated here, we recommend you to halt your intervention and opt to request official support from our technicians at support@ipbrick.com  .'''&lt;br /&gt;
&lt;br /&gt;
'''NOTE: You have been warned!'''&lt;br /&gt;
&lt;br /&gt;
== Backup ==&lt;br /&gt;
Before you start this process you must confirm that your backup is up to date. You will be messing around with your users data files, if something brokes or fails, the backup is your only best friend.&lt;br /&gt;
&lt;br /&gt;
== IPBRICK versions ==&lt;br /&gt;
This procedure is valid for IPBRICK.OS up to the current IPBRICK.OS version - at this time v6.3u1.&lt;br /&gt;
&lt;br /&gt;
== File System space availability ==&lt;br /&gt;
Please ensure that the destination filesystem has enough available space to accommodate all of the users data files.&lt;br /&gt;
&lt;br /&gt;
= Sample Procedure =&lt;br /&gt;
'''NOTE: This tutorial is provided for systems administrators, it requires strong knowledge of linux command-line environment. One must proceed with caution. '''&lt;br /&gt;
&lt;br /&gt;
== Source / Destination ==&lt;br /&gt;
In this example for instruction demonstration we will assume the following:&lt;br /&gt;
* username: jack&lt;br /&gt;
* source&lt;br /&gt;
** server IP: 192.168.10.1&lt;br /&gt;
** work area: Work Area 1&lt;br /&gt;
* destination&lt;br /&gt;
** server IP: 192.168.10.2&lt;br /&gt;
** work area: Work Area 2&lt;br /&gt;
&lt;br /&gt;
== Folders ==&lt;br /&gt;
The folders that we will be working with are:&lt;br /&gt;
* REAL source user's account folder - located in source server &amp;lt;code&amp;gt;192.168.10.1&amp;lt;/code&amp;gt; : &amp;lt;code&amp;gt;/home1/_accounts/jack&amp;lt;/code&amp;gt;&lt;br /&gt;
* TEMPORARY destination folder - to be created in destination server &amp;lt;code&amp;gt;192.168.10.2&amp;lt;/code&amp;gt; : &amp;lt;code&amp;gt;/home2/_accounts/_TEMP_jack&amp;lt;/code&amp;gt;&lt;br /&gt;
* TEMPORARY source foldername - to be used only in the last synchronization in source server &amp;lt;code&amp;gt;192.168.10.1&amp;lt;/code&amp;gt; : &amp;lt;code&amp;gt;/home1/_accounts/_DELETEME_jack&amp;lt;/code&amp;gt;&lt;br /&gt;
* BLANK destination folder - to be used in destination server, only after last apply configurations : &amp;lt;code&amp;gt;192.168.10.2&amp;lt;/code&amp;gt; : &amp;lt;code&amp;gt;/home2/_accounts/_BLANK_jack&amp;lt;/code&amp;gt;&lt;br /&gt;
* TEMPORARY destination mount folder - to be used in destination server, only for temporary mounts for copy/synchronization : &amp;lt;code&amp;gt;192.168.10.2&amp;lt;/code&amp;gt; : &amp;lt;code&amp;gt;/mnt/REAL_jack&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Sync Mechanism ==&lt;br /&gt;
In this procedure, for matter of simplicity, we will be using NFS and RSYNC.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' You may use other advanced options such as RSYNC over SSH.&lt;br /&gt;
&lt;br /&gt;
== Detailed technical procedure ==&lt;br /&gt;
&lt;br /&gt;
=== ON-LINE ===&lt;br /&gt;
The procedures in this section allows the user to continue normal access to its own files and maildir. &lt;br /&gt;
&lt;br /&gt;
==== Initial/First Copy ====&lt;br /&gt;
Initial/first copy - only at DESTINATION SERVER  &amp;lt;code&amp;gt;192.168.10.2&amp;lt;/code&amp;gt; &lt;br /&gt;
* create destination folders&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~# mkdir /mnt/REAL_jack&lt;br /&gt;
~# mkdir /home2/_accounts/_TEMP_jack&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* mount source folder at destination server mount point&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~# mount 192.168.10.1:/home1/_accounts/jack /mnt/REAL_jack&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* start first copy/synchronization&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~# rsync -avu --delete /mnt/REAL_jack/  /home2/_accounts/_TEMP_jack/ &amp;gt; /root/jack_rsync.log 2&amp;gt; /root/jack_rsync.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* clean up after first copy/synchronization&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~# umount /mnt/REAL_jack/&lt;br /&gt;
~# rmdir /mnt/REAL_jack/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Intermediate Synchronization(s) ====&lt;br /&gt;
After finishing the first initial copy you may perform one or more regular intermediate synchronizations, you may register how long this intermediate synchronizations take, this is a very real measure of how long it will take to perform the last synchronization, this is the time the user will be kept off-line (impact on user)&lt;br /&gt;
&lt;br /&gt;
We continue to work only at DESTINATION SERVER  &amp;lt;code&amp;gt;192.168.10.2&amp;lt;/code&amp;gt; &lt;br /&gt;
* preparing mount point&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~# mkdir /mnt/REAL_jack&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* mount source folder at destination server mount point&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~# mount 192.168.10.1:/home1/_accounts/jack /mnt/REAL_jack&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* start intermediate synchronization&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~# date ; rsync -avu --delete /mnt/REAL_jack/  /home2/_accounts/_TEMP_jack/ &amp;gt; /root/jack_rsync.log 2&amp;gt; /root/jack_rsync.err ; date&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* clean up after synchronization&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~# umount /mnt/REAL_jack/&lt;br /&gt;
~# rmdir /mnt/REAL_jack/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please take notice of the time lapse in the rsync command. This is the duration of the intermediate synchronization. This is the estimate time for the final synchronization. &lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' You may perform this step multiple times before the final/last synchronization. We recommend you to perform at least one intermediate synchronization immediately before going to the next OFF-LINE step.&lt;br /&gt;
&lt;br /&gt;
=== OFF-LINE ===&lt;br /&gt;
The procedures in this section require the user to be off-line, this is required to ensure that there is no data lost.&lt;br /&gt;
&lt;br /&gt;
'''ATTENTION: this section includes procedures to be executed in the source and in the destination server.'''&lt;br /&gt;
&lt;br /&gt;
==== User is put OFF-LINE ====&lt;br /&gt;
To execute at SOURCE SERVER : &amp;lt;code&amp;gt;192.168.10.1&amp;lt;/code&amp;gt;&lt;br /&gt;
* rename real source folder to a temporary folder&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~# mv /home1/_accounts/jack /home1/_accounts/_DELETEME_jack &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* create temporary source empty user folder&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~# mkdir /home1/_accounts/jack&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
* list/confirm the empty folder (empty listing)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~# ls /home1/_accounts/jack&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== LAST Synchronization ====&lt;br /&gt;
To execute at DESTINATION SERVER : &amp;lt;code&amp;gt;192.168.10.2&amp;lt;/code&amp;gt;&lt;br /&gt;
* preparing mount point&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~# mkdir /mnt/REAL_jack&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* mount source folder at destination server mount point&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~# mount 192.168.10.1:/home1/_accounts/_DELETEME_jack /mnt/REAL_jack&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* start last synchronization&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~# rsync -avu --delete /mnt/REAL_jack/  /home2/_accounts/_TEMP_jack/ &amp;gt; /root/jack_rsync.log 2&amp;gt; /root/jack_rsync.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* clean up after synchronization&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~# umount /mnt/REAL_jack/&lt;br /&gt;
~# rmdir /mnt/REAL_jack/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Efective IPBRICK/System Migration ====&lt;br /&gt;
Go to IPBRICK web interface and instruct to move user (jack) to the select destination server (192.168.10.2) and destination work area (Work Area 2), Apply Configurations.&lt;br /&gt;
&lt;br /&gt;
Updated Successfuly.&lt;br /&gt;
&lt;br /&gt;
To execute at DESTINATION SERVER, &amp;lt;code&amp;gt;192.168.10.2&amp;lt;/code&amp;gt;&lt;br /&gt;
* confirm empty user folder successful migration (in the listing bellow you should get an empty folder)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~# ls /home2/_accounts/jack&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* rename temporary empty folder to final blank folder&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~# mv /home2/_accounts/jack /home2/_accounts/_BLANK_jack&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* rename REAL destination user folder to the final name&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~# mv /home2/_accounts/_TEMP_jack /home2/_accounts/jack&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ON-LINE - Finish ===&lt;br /&gt;
The procedure is now complete. The user may now access to its own personal files and maildir.&lt;br /&gt;
&lt;br /&gt;
=== Last Clean-up ===&lt;br /&gt;
After all validations its now time to perform global cleanup of temporary files/folders, and free space on the source file system/server. &lt;br /&gt;
&lt;br /&gt;
* To execute at DESTINATION SERVER : &amp;lt;code&amp;gt;192.168.10.2&amp;lt;/code&amp;gt; - remove temporary empty folder&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~# rmdir /home2/_accounts/_BLANK_jack&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* To execute at SOURCE SERVER : &amp;lt;code&amp;gt;192.168.10.1&amp;lt;/code&amp;gt; - remove source copy of users folders/files&lt;br /&gt;
** '''ATTENTION: this is a permanent deletion of users files, please proceed with extreme caution'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~# rm -rf /home1/_accounts/_DELETEME_jack&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPBRICK.OS_v6.3_-_Security-Update02_-_Pidgin_SSL_issues</id>
		<title>IPBRICK.OS v6.3 - Security-Update02 - Pidgin SSL issues</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPBRICK.OS_v6.3_-_Security-Update02_-_Pidgin_SSL_issues"/>
				<updated>2018-07-12T16:13:14Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;After installing Security-Update-02 for IPBRICK.OS v6.3, Pidgin users (XMPP client, instant messaging desktop application) may report difficulties connecting to the server. In such scenario please adjust Pidgin settings, one must enforce a stronger encription preferences. Proceed as follows:&lt;br /&gt;
# in the Tools menu select Plugins&lt;br /&gt;
# in the plugins list, select and activate the &amp;quot;NSS Preferences&amp;quot; plugin, then click on &amp;quot;Configure Plugin&amp;quot; &lt;br /&gt;
# in the ciphers list, select and activate &amp;quot;TLS_RSA_WITH_AES_256_CBC_SHA256 (0x003d)&amp;quot;, ok to confirm, and close all windows&lt;br /&gt;
# restart the connection to the server&lt;br /&gt;
&lt;br /&gt;
[[File:Pidgin-sec-up-01-v63.png]]&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/File:Pidgin-sec-up-01-v63.png</id>
		<title>File:Pidgin-sec-up-01-v63.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/File:Pidgin-sec-up-01-v63.png"/>
				<updated>2018-07-12T16:12:37Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPBRICK.OS_v6.3_-_Security-Update02_-_Pidgin_SSL_issues</id>
		<title>IPBRICK.OS v6.3 - Security-Update02 - Pidgin SSL issues</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPBRICK.OS_v6.3_-_Security-Update02_-_Pidgin_SSL_issues"/>
				<updated>2018-07-12T16:11:58Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: Created page with &amp;quot;After installing Security-Update-02 for IPBRICK.OS v6.3, Pidgin users (XMPP client, instant messaging desktop application) may report difficulties connecting to the server. In...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;After installing Security-Update-02 for IPBRICK.OS v6.3, Pidgin users (XMPP client, instant messaging desktop application) may report difficulties connecting to the server. In such scenario please adjust Pidgin settings, one must enforce a stronger encription preferences. Proceed as follows:&lt;br /&gt;
# in the Tools menu select Plugins&lt;br /&gt;
# in the plugins list, select and activate the &amp;quot;NSS Preferences&amp;quot; plugin, then click on &amp;quot;Configure Plugin&amp;quot; &lt;br /&gt;
# in the ciphers list, select and activate &amp;quot;TLS_RSA_WITH_AES_256_CBC_SHA256 (0x003d)&amp;quot;, ok to confirm, and close all windows&lt;br /&gt;
# restart the connection to the server&lt;br /&gt;
&lt;br /&gt;
[[File:pidgin-sec-up-01-v63.png]]&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/Mail_Archiving</id>
		<title>Mail Archiving</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/Mail_Archiving"/>
				<updated>2018-05-16T16:46:39Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Passos de configuração de sistema de mail externo a IPBRICK.OS com iPortalDoc.&lt;br /&gt;
&lt;br /&gt;
= Descrição global =&lt;br /&gt;
* O servidor de mail deverá efectuar cópia/filtro (Bcc) das mensagens a serem processadas/analisadas/arquivadas pelo sistema de gestão documental iPortalDoc (ver regras de filtro sugeridas);&lt;br /&gt;
* O servidor IPBRICK/iPortalDoc vai descarregar via POP3 as mensagens copiadas/filtradas .&lt;br /&gt;
&lt;br /&gt;
= Implementação =&lt;br /&gt;
&lt;br /&gt;
== Servidor de mail do cliente ==&lt;br /&gt;
* Criar conta de ligação - exemplo: ipdoc-filtro&lt;br /&gt;
* Habilitar acesso POP3 à conta ipdoc-filtro;&lt;br /&gt;
** indicar dados de acesso à conta POP3: endereço do servidor POP3, login, senha;&lt;br /&gt;
* Criar filtros de mail - recomendação - copiar em Bcc para o endereço &amp;quot;ipdoc-filtro@dominio.pt&amp;quot; os mails abaixo indicados;&lt;br /&gt;
** Mails associados (Ref&amp;lt;codigo_doc&amp;gt;) : copiar em Bcc todas as mensagens enviadas/recebidas com padrão &amp;quot;Ref&amp;lt;&amp;quot; no corpo ou no assunto;&lt;br /&gt;
** dbdocmails (email@dominio.pt) : copiar em Bcc todas as mensagens recebidas para (To, Cc) conta &amp;quot;email@dominio.pt&amp;quot; - ver mais detalhe na descrição do mecanismo &amp;quot;dbdocmails&amp;quot;&lt;br /&gt;
** Arquivo de mails (*@dominio.pt) : mail archiving :&lt;br /&gt;
*** copiar em Bcc todas as mensagens enviadas a partir do endereço (From: *@dominio.pt);&lt;br /&gt;
*** copiar em Bcc todas as mensagens recebidas no endereço (To: / Cc: *@dominio.pt).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Servidor IPBRICK.OS/IPortalDoc ==&lt;br /&gt;
* Configurar serviço de ligação POP3&lt;br /&gt;
** Fetchmail - ALTERAÇÃO MANUAL&lt;br /&gt;
*** servidor POP3 : mail.dominio.pt&lt;br /&gt;
*** login: &amp;quot;ipdoc-filtro&amp;quot;&lt;br /&gt;
*** senha: ****&lt;br /&gt;
*** entregar mensagens em conta local &amp;quot;receivedmail@ipbrick.dominio.pt&amp;quot; (receivedmail@FQDN)&lt;br /&gt;
* Manutenção automática caixa local &amp;quot;receivedmail&amp;quot; -&lt;br /&gt;
** activar Cópia de mensagens recebidas&lt;br /&gt;
** activar Eliminar automaticamente cópia ao fim de 1 (um) dia&lt;br /&gt;
&lt;br /&gt;
= NOTAS de parametrização =&lt;br /&gt;
* Mails associados : &amp;quot;Ref&amp;lt;&amp;quot; : a sigla &amp;quot;REF&amp;quot; é parametrizável no iPortalDoc, ajustar à sigla definida/em uso na instalação do cliente;&lt;br /&gt;
* dbdocmails : os endereços de email afectos ao serviço &amp;quot;dbdocmails&amp;quot; devem existir no servidor de correio do cliente, o cliente deverá assegurar a manutenção destas caixas/contas no seu servidor de mail;&lt;br /&gt;
* Arquivo de mails  / mail archiving : os endereços associados ao serviço mail archiving devem ser explicitados, podem ser &amp;quot;todos&amp;quot;, ou endereços individuais - a regra acima &amp;quot;*@dominio.pt&amp;quot; deverá ser ajustada aos endereços efectivamente pretendidos;&lt;br /&gt;
* Mails dos workflows - &amp;quot;workflow@iportaldoc.dominio.pt&amp;quot; - este mecanismo deve ser preterido em favor da funcionalidade &amp;quot;dbdocmails&amp;quot;, passar a usar endereços &amp;quot;email@dominio.pt&amp;quot; - implica parametrização no servidor iPortalDoc;&lt;br /&gt;
* FETCHMAIL/ligação POP3 - este mecanismo corre com intervalos de 5 minutos, pode ser alterado MANUALMENTE para intervalos menores - exemplo: 60s.&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/Mail_Archiving</id>
		<title>Mail Archiving</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/Mail_Archiving"/>
				<updated>2018-05-16T16:45:51Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Passos de configuração de sistema de mail externo a IPBRICK.OS com iPortalDoc.&lt;br /&gt;
&lt;br /&gt;
= Descrição global =&lt;br /&gt;
* O servidor de mail deverá efectuar cópia/filtro (Bcc) das mensagens a serem processadas/analisadas/arquivadas pelo sistema de gestão documental iPortalDoc (ver regras de filtro sugeridas);&lt;br /&gt;
* O servidor IPBRICK/iPortalDoc vai descarregar via POP3 as mensagens copiadas/filtradas .&lt;br /&gt;
&lt;br /&gt;
= Modo de implementação =&lt;br /&gt;
&lt;br /&gt;
== Servidor de mail do cliente ==&lt;br /&gt;
* Criar conta de ligação - exemplo: ipdoc-filtro&lt;br /&gt;
* Habilitar acesso POP3 à conta ipdoc-filtro;&lt;br /&gt;
** indicar dados de acesso à conta POP3: endereço do servidor POP3, login, senha;&lt;br /&gt;
* Criar filtros de mail - recomendação - copiar em Bcc para o endereço &amp;quot;ipdoc-filtro@dominio.pt&amp;quot; os mails abaixo indicados;&lt;br /&gt;
** Mails associados (Ref&amp;lt;codigo_doc&amp;gt;) : copiar em Bcc todas as mensagens enviadas/recebidas com padrão &amp;quot;Ref&amp;lt;&amp;quot; no corpo ou no assunto;&lt;br /&gt;
** dbdocmails (email@dominio.pt) : copiar em Bcc todas as mensagens recebidas para (To, Cc) conta &amp;quot;email@dominio.pt&amp;quot; - ver mais detalhe na descrição do mecanismo &amp;quot;dbdocmails&amp;quot;&lt;br /&gt;
** Arquivo de mails (*@dominio.pt) : mail archiving :&lt;br /&gt;
*** copiar em Bcc todas as mensagens enviadas a partir do endereço (From: *@dominio.pt);&lt;br /&gt;
*** copiar em Bcc todas as mensagens recebidas no endereço (To: / Cc: *@dominio.pt).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Servidor IPBRICK.OS/IPortalDoc ==&lt;br /&gt;
* Configurar serviço de ligação POP3&lt;br /&gt;
** Fetchmail - ALTERAÇÃO MANUAL&lt;br /&gt;
*** servidor POP3 : mail.dominio.pt&lt;br /&gt;
*** login: &amp;quot;ipdoc-filtro&amp;quot;&lt;br /&gt;
*** senha: ****&lt;br /&gt;
*** entregar mensagens em conta local &amp;quot;receivedmail@ipbrick.dominio.pt&amp;quot; (receivedmail@FQDN)&lt;br /&gt;
* Manutenção automática caixa local &amp;quot;receivedmail&amp;quot; -&lt;br /&gt;
** activar Cópia de mensagens recebidas&lt;br /&gt;
** activar Eliminar automaticamente cópia ao fim de 1 (um) dia&lt;br /&gt;
&lt;br /&gt;
= NOTAS de parametrização =&lt;br /&gt;
* Mails associados : &amp;quot;Ref&amp;lt;&amp;quot; : a sigla &amp;quot;REF&amp;quot; é parametrizável no iPortalDoc, ajustar à sigla definida/em uso na instalação do cliente;&lt;br /&gt;
* dbdocmails : os endereços de email afectos ao serviço &amp;quot;dbdocmails&amp;quot; devem existir no servidor de correio do cliente, o cliente deverá assegurar a manutenção destas caixas/contas no seu servidor de mail;&lt;br /&gt;
* Arquivo de mails  / mail archiving : os endereços associados ao serviço mail archiving devem ser explicitados, podem ser &amp;quot;todos&amp;quot;, ou endereços individuais - a regra acima &amp;quot;*@dominio.pt&amp;quot; deverá ser ajustada aos endereços efectivamente pretendidos;&lt;br /&gt;
* Mails dos workflows - &amp;quot;workflow@iportaldoc.dominio.pt&amp;quot; - este mecanismo deve ser preterido em favor da funcionalidade &amp;quot;dbdocmails&amp;quot;, passar a usar endereços &amp;quot;email@dominio.pt&amp;quot; - implica parametrização no servidor iPortalDoc;&lt;br /&gt;
* FETCHMAIL/ligação POP3 - este mecanismo corre com intervalos de 5 minutos, pode ser alterado MANUALMENTE para intervalos menores - exemplo: 60s.&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPortalDoc_use_multiple_volumes</id>
		<title>IPortalDoc use multiple volumes</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPortalDoc_use_multiple_volumes"/>
				<updated>2018-04-23T17:59:04Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: Created page with &amp;quot;= Motivation = How to rearrange filestorage of an IPBRICK.OS with IPortalDoc.  == Ojectives == * to separate DATA from Operating System (OS) * to allocate filestorage warehous...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Motivation =&lt;br /&gt;
How to rearrange filestorage of an IPBRICK.OS with IPortalDoc.&lt;br /&gt;
&lt;br /&gt;
== Ojectives ==&lt;br /&gt;
* to separate DATA from Operating System (OS)&lt;br /&gt;
* to allocate filestorage warehouse to a separate volume, a new volume that can grow dynamically&lt;br /&gt;
* to allocate database binaries to a separate volume, a new volume that can grow dynamically, preferencially utilize faster disks&lt;br /&gt;
&lt;br /&gt;
== More Info - LVM ==&lt;br /&gt;
Before proceed we recommed you to read the [[Map new LVM]] section.&lt;br /&gt;
&lt;br /&gt;
= Technical Procedure =&lt;br /&gt;
Overview of the procedure:&lt;br /&gt;
* on-line - without stoping the services&lt;br /&gt;
** to prepare the new volumes (recommendation see [[MAP new LVM]])&lt;br /&gt;
** initial and intermediate synchronizatione the contents from the old to the new volume&lt;br /&gt;
* off-line - stop services and perform the final synchronization &lt;br /&gt;
** stop the services&lt;br /&gt;
** perform final synchronization of contents&lt;br /&gt;
** to replace mount point&lt;br /&gt;
** to restart services&lt;br /&gt;
* validation and final maintenance&lt;br /&gt;
** validate that all services are performing as expected&lt;br /&gt;
** do system maintenance, clean data not used, free old space&lt;br /&gt;
&lt;br /&gt;
== Start Point ==&lt;br /&gt;
For the purpose of this section, we will assume the existence of the following volumes:&lt;br /&gt;
* /dev/sda :: operating system installation&lt;br /&gt;
** Volume Group : /dev/vgsystem1/ :  lvdata1  lvos  lvswap  lvvar&lt;br /&gt;
* /dev/sdb :: disk to be used by database binaries (postgresql)&lt;br /&gt;
** Volume Group : /dev/vgipdocdb/ : lvipdocdb  [ext4]&lt;br /&gt;
* /dev/sdc :: disk to be used by warehouse&lt;br /&gt;
** Volume Group : /dev/vgipdocarm/ : lvipdocarm [ext4]&lt;br /&gt;
&lt;br /&gt;
For more information on the preparation of the new LVM volumes/filesystem please refer to [[MAP new LVM]].&lt;br /&gt;
&lt;br /&gt;
== On-Line ==&lt;br /&gt;
These steps may be executed with the system on-line, in production state.&lt;br /&gt;
&lt;br /&gt;
*TODO*&lt;br /&gt;
&lt;br /&gt;
== Off-Line ==&lt;br /&gt;
These steps imply that service is not available, stop services for final synchronization.&lt;br /&gt;
&lt;br /&gt;
*TODO*&lt;br /&gt;
&lt;br /&gt;
== Final Maintenance ==&lt;br /&gt;
*Todo*&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/Map_new_LVM</id>
		<title>Map new LVM</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/Map_new_LVM"/>
				<updated>2018-04-23T17:17:50Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* FSTAB - Mount at boot time */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Presentation =&lt;br /&gt;
IPBRICK.OS v6.3 installed in LVM. Clients decides to map a new HDD to migrate users data. Here we describe the process to prepare a new LVM volume and move an existing homedirs/workareas to the new LVM filesystem.&lt;br /&gt;
&lt;br /&gt;
== NOTE ==&lt;br /&gt;
'''IMPORTANT''' : this procedure is to be executed at IPBRICK.OS linux command line as super-user (su - root). This procedure is to be executed by a system administrator with some linux console knowledge. The instructions here presented were collected from a real scenario, meanwhile you are required to check, verifiy and adapt to your own installation. &lt;br /&gt;
&lt;br /&gt;
== Contents ==&lt;br /&gt;
In the following sections you'll find:&lt;br /&gt;
* Scenarios - list of typical applications&lt;br /&gt;
* Technical procedures&lt;br /&gt;
&lt;br /&gt;
= Scenarios =&lt;br /&gt;
The typical scenario is:&lt;br /&gt;
* one disk for operating system&lt;br /&gt;
* one disk for users data&lt;br /&gt;
* one disk for database binaries&lt;br /&gt;
&lt;br /&gt;
These apply to:&lt;br /&gt;
* FileServer - users data separated from the operating system (OS) installation&lt;br /&gt;
* MailServer - users data separated from the OS&lt;br /&gt;
* iPortalDoc - data warehouse separated from the OS, database binaries in an independente volume&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Technical Procedures =&lt;br /&gt;
In this section we will be working with the following setup:&lt;br /&gt;
* IPBRICK.OS v6.3&lt;br /&gt;
* OS installation using LVM&lt;br /&gt;
* HDD setup:&lt;br /&gt;
** sda - the first HDD - OS installation&lt;br /&gt;
** sdb - the second HDD - for user data&lt;br /&gt;
** sdc - the third HDD - for user data&lt;br /&gt;
&lt;br /&gt;
We will be working with LVM. All physical disks are to be grouped in one new volume group.&lt;br /&gt;
&lt;br /&gt;
== Identify Blocks/Disks ==&lt;br /&gt;
LSBLK : helps you identify physical disks and their current assignment&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# lsblk &lt;br /&gt;
NAME                         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT&lt;br /&gt;
sda                            8:0    0    50G  0 disk &lt;br /&gt;
├─sda1                         8:1    0   1.9G  0 part &lt;br /&gt;
└─sda2                         8:2    0  48.1G  0 part &lt;br /&gt;
  ├─vgsystem1-lvos (dm-0)    254:0    0    15G  0 lvm  /&lt;br /&gt;
  ├─vgsystem1-lvswap (dm-1)  254:1    0     2G  0 lvm  [SWAP]&lt;br /&gt;
  ├─vgsystem1-lvvar (dm-2)   254:2    0    20G  0 lvm  /var&lt;br /&gt;
  └─vgsystem1-lvdata1 (dm-3) 254:3    0  11.1G  0 lvm  /srv/data1&lt;br /&gt;
sdb                            8:16   0     2T  0 disk &lt;br /&gt;
sdc                            8:32   0     2T  0 disk &lt;br /&gt;
sr0                           11:0    1  1024M  0 rom  &lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Partitioning ==&lt;br /&gt;
PARTED : the tool to create partition table and partitions&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# parted /dev/sdb&lt;br /&gt;
GNU Parted 2.3&lt;br /&gt;
Using /dev/sdb&lt;br /&gt;
Welcome to GNU Parted! Type 'help' to view a list of commands.&lt;br /&gt;
(parted) mktable gpt                                                      &lt;br /&gt;
(parted) print                                                            &lt;br /&gt;
Model: Msft Virtual Disk (scsi)&lt;br /&gt;
Disk /dev/sdb: 2199GB&lt;br /&gt;
Sector size (logical/physical): 512B/4096B&lt;br /&gt;
Partition Table: gpt&lt;br /&gt;
&lt;br /&gt;
Number  Start  End  Size  File system  Name  Flags&lt;br /&gt;
&lt;br /&gt;
(parted) mkpart&lt;br /&gt;
Partition name?  []?                                                      &lt;br /&gt;
File system type?  [ext2]?                                                &lt;br /&gt;
Start? 1                                                                  &lt;br /&gt;
End? 2199GB                                                               &lt;br /&gt;
(parted) print                                                            &lt;br /&gt;
Model: Msft Virtual Disk (scsi)&lt;br /&gt;
Disk /dev/sdb: 2199GB&lt;br /&gt;
Sector size (logical/physical): 512B/4096B&lt;br /&gt;
Partition Table: gpt&lt;br /&gt;
&lt;br /&gt;
Number  Start   End     Size    File system  Name  Flags&lt;br /&gt;
 1      1049kB  2199GB  2199GB&lt;br /&gt;
&lt;br /&gt;
(parted) select /dev/sdc                                                  &lt;br /&gt;
Using /dev/sdc&lt;br /&gt;
(parted) print                                                            &lt;br /&gt;
Error: /dev/sdc: unrecognised disk label                                  &lt;br /&gt;
(parted) mktable gpt                                                      &lt;br /&gt;
(parted) print                                                            &lt;br /&gt;
Model: Msft Virtual Disk (scsi)&lt;br /&gt;
Disk /dev/sdc: 2199GB&lt;br /&gt;
Sector size (logical/physical): 512B/4096B&lt;br /&gt;
Partition Table: gpt&lt;br /&gt;
&lt;br /&gt;
Number  Start  End  Size  File system  Name  Flags&lt;br /&gt;
                                                               &lt;br /&gt;
(parted) mkpart                                                           &lt;br /&gt;
Partition name?  []?                                                      &lt;br /&gt;
File system type?  [ext2]?                                                &lt;br /&gt;
Start? 1                                                                  &lt;br /&gt;
End? 2199GB                                                               &lt;br /&gt;
(parted) print                                                            &lt;br /&gt;
Model: Msft Virtual Disk (scsi)&lt;br /&gt;
Disk /dev/sdc: 2199GB&lt;br /&gt;
Sector size (logical/physical): 512B/4096B&lt;br /&gt;
Partition Table: gpt&lt;br /&gt;
&lt;br /&gt;
Number  Start   End     Size    File system  Name  Flags&lt;br /&gt;
 1      1049kB  2199GB  2199GB&lt;br /&gt;
&lt;br /&gt;
(parted) quit                                                             &lt;br /&gt;
Information: You may need to update /etc/fstab.                           &lt;br /&gt;
&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
Check the new blocks:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# lsblk&lt;br /&gt;
NAME                         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT&lt;br /&gt;
sda                            8:0    0    50G  0 disk &lt;br /&gt;
├─sda1                         8:1    0   1.9G  0 part &lt;br /&gt;
└─sda2                         8:2    0  48.1G  0 part &lt;br /&gt;
  ├─vgsystem1-lvos (dm-0)    254:0    0    15G  0 lvm  /&lt;br /&gt;
  ├─vgsystem1-lvswap (dm-1)  254:1    0     2G  0 lvm  [SWAP]&lt;br /&gt;
  ├─vgsystem1-lvvar (dm-2)   254:2    0    20G  0 lvm  /var&lt;br /&gt;
  └─vgsystem1-lvdata1 (dm-3) 254:3    0  11.1G  0 lvm  /srv/data1&lt;br /&gt;
sdb                            8:16   0     2T  0 disk &lt;br /&gt;
└─sdb1                         8:17   0     2T  0 part &lt;br /&gt;
sdc                            8:32   0     2T  0 disk &lt;br /&gt;
└─sdc1                         8:33   0     2T  0 part &lt;br /&gt;
sr0                           11:0    1  1024M  0 rom  &lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== LVM configuration ==&lt;br /&gt;
'''PVCREATE''' : initialize the physical volumes&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# pvcreate /dev/sdb1 /dev/sdc1&lt;br /&gt;
  Writing physical volume data to disk &amp;quot;/dev/sdb1&amp;quot;&lt;br /&gt;
  Physical volume &amp;quot;/dev/sdb1&amp;quot; successfully created&lt;br /&gt;
  Writing physical volume data to disk &amp;quot;/dev/sdc1&amp;quot;&lt;br /&gt;
  Physical volume &amp;quot;/dev/sdc1&amp;quot; successfully created&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''VGCREATE''' : initialize the volume group&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# vgcreate vgshares /dev/sdb1 /dev/sdc1&lt;br /&gt;
  Volume group &amp;quot;vgshares&amp;quot; successfully created&lt;br /&gt;
ipbrick:~#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''VGDISPLAY''' : displays information on the volume groups&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# vgdisplay vgshares&lt;br /&gt;
  --- Volume group ---&lt;br /&gt;
  VG Name               vgshares&lt;br /&gt;
  System ID             &lt;br /&gt;
  Format                lvm2&lt;br /&gt;
  Metadata Areas        2&lt;br /&gt;
  Metadata Sequence No  1&lt;br /&gt;
  VG Access             read/write&lt;br /&gt;
  VG Status             resizable&lt;br /&gt;
  MAX LV                0&lt;br /&gt;
  Cur LV                0&lt;br /&gt;
  Open LV               0&lt;br /&gt;
  Max PV                0&lt;br /&gt;
  Cur PV                2&lt;br /&gt;
  Act PV                2&lt;br /&gt;
  VG Size               4.00 TiB&lt;br /&gt;
  PE Size               4.00 MiB&lt;br /&gt;
  Total PE              1048574&lt;br /&gt;
  Alloc PE / Size       0 / 0   &lt;br /&gt;
  Free  PE / Size       1048574 / 4.00 TiB&lt;br /&gt;
  VG UUID               3htRDP-4EEE-xG24-VBrj-cUYP-dkUW-m1h8Ya&lt;br /&gt;
   &lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''LVCREATE''' : creates logical volume&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# lvcreate -l 100%FREE -n lvshares vgshares&lt;br /&gt;
  Logical volume &amp;quot;lvshares&amp;quot; created&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''LVDISPLAY''' : displays information on the logical volume&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# lvdisplay vgshares&lt;br /&gt;
  --- Logical volume ---&lt;br /&gt;
  LV Path                /dev/vgshares/lvshares&lt;br /&gt;
  LV Name                lvshares&lt;br /&gt;
  VG Name                vgshares&lt;br /&gt;
  LV UUID                JrTaAv-WYtf-SDCe-tzHl-6e0Z-VAJF-rjV5dn&lt;br /&gt;
  LV Write Access        read/write&lt;br /&gt;
  LV Creation host, time gestdoc, 2018-04-20 18:02:24 +0100&lt;br /&gt;
  LV Status              available&lt;br /&gt;
  # open                 0&lt;br /&gt;
  LV Size                4.00 TiB&lt;br /&gt;
  Current LE             1048574&lt;br /&gt;
  Segments               2&lt;br /&gt;
  Allocation             inherit&lt;br /&gt;
  Read ahead sectors     auto&lt;br /&gt;
  - currently set to     256&lt;br /&gt;
  Block device           254:4&lt;br /&gt;
   &lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FileSystem Configuration ==&lt;br /&gt;
'''MKFS.EXT4''' : initialize filesystem with EXT4 format&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# mkfs.ext4 /dev/vgshares/lvshares &lt;br /&gt;
mke2fs 1.42.5 (29-Jul-2012)&lt;br /&gt;
Filesystem label=&lt;br /&gt;
OS type: Linux&lt;br /&gt;
Block size=4096 (log=2)&lt;br /&gt;
Fragment size=4096 (log=2)&lt;br /&gt;
Stride=0 blocks, Stripe width=0 blocks&lt;br /&gt;
268435456 inodes, 1073739776 blocks&lt;br /&gt;
53686988 blocks (5.00%) reserved for the super user&lt;br /&gt;
First data block=0&lt;br /&gt;
Maximum filesystem blocks=4294967296&lt;br /&gt;
32768 block groups&lt;br /&gt;
32768 blocks per group, 32768 fragments per group&lt;br /&gt;
8192 inodes per group&lt;br /&gt;
Superblock backups stored on blocks: &lt;br /&gt;
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, &lt;br /&gt;
	4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, &lt;br /&gt;
	102400000, 214990848, 512000000, 550731776, 644972544&lt;br /&gt;
&lt;br /&gt;
Allocating group tables: done                            &lt;br /&gt;
Writing inode tables: done                            &lt;br /&gt;
Creating journal (32768 blocks): done&lt;br /&gt;
Writing superblocks and filesystem accounting information: done       &lt;br /&gt;
&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Test-drive the new filesystem:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# mount /dev/vgshares/lvshares /mnt/&lt;br /&gt;
ipbrick:~# df -h&lt;br /&gt;
Filesystem                     Size  Used Avail Use% Mounted on&lt;br /&gt;
rootfs                          15G  4.6G  9.4G  33% /&lt;br /&gt;
udev                            10M     0   10M   0% /dev&lt;br /&gt;
tmpfs                          1.6G  964K  1.6G   1% /run&lt;br /&gt;
/dev/mapper/vgsystem1-lvos      15G  4.6G  9.4G  33% /&lt;br /&gt;
tmpfs                          5.0M     0  5.0M   0% /run/lock&lt;br /&gt;
tmpfs                          3.2G     0  3.2G   0% /run/shm&lt;br /&gt;
/dev/mapper/vgsystem1-lvvar     20G  1.5G   18G   8% /var&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /srv/data1&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /home1&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /home2&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /var/spool/hylafax&lt;br /&gt;
/dev/mapper/vgshares-lvshares  4.0T   67M  3.8T   1% /mnt&lt;br /&gt;
ipbrick:~# umount /mnt&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FSTAB - Mount at boot time ==&lt;br /&gt;
The final step of this procedure is to register the mountpoint in the fstab file. In this section we provide a samples scenario, you may need to adapt to your own needs. From the manual:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
NAME: &lt;br /&gt;
       static information about the filesystems&lt;br /&gt;
NAME&lt;br /&gt;
       fstab - static information about the filesystems&lt;br /&gt;
&lt;br /&gt;
SYNOPSIS&lt;br /&gt;
       /etc/fstab&lt;br /&gt;
&lt;br /&gt;
DESCRIPTION&lt;br /&gt;
       The  file  fstab  contains  descriptive  information  about the various file systems.  &lt;br /&gt;
       fstab is only read by programs, and not written; it is the duty of the system&lt;br /&gt;
       administrator to properly create and maintain this file.  Each filesystem is described &lt;br /&gt;
       on a separate line; fields on each line are  separated  by  tabs  or  spaces.&lt;br /&gt;
       Lines  starting  with  '#'  are  comments, blank lines are ignored. The order of records &lt;br /&gt;
       in fstab is important because fsck(8), mount(8), and umount(8) sequentially&lt;br /&gt;
       iterate through fstab doing their thing.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''BLKID''' : identify blocks id&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# blkid &lt;br /&gt;
/dev/sda2: UUID=&amp;quot;exMrHD-qgY3-c8cy-Ao0t-Z6TG-JNiG-L2boKk&amp;quot; TYPE=&amp;quot;LVM2_member&amp;quot; &lt;br /&gt;
/dev/mapper/vgsystem1-lvos: LABEL=&amp;quot;LVOS&amp;quot; UUID=&amp;quot;7f1dd815-0e0e-4148-bf55-e3b443de0afd&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/mapper/vgsystem1-lvswap: UUID=&amp;quot;b6de4b36-9f16-432b-9475-636008e5efed&amp;quot; TYPE=&amp;quot;swap&amp;quot; &lt;br /&gt;
/dev/mapper/vgsystem1-lvvar: LABEL=&amp;quot;LVVAR&amp;quot; UUID=&amp;quot;69a75bac-56e9-4ec6-b3a8-3f31b91019a3&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1: LABEL=&amp;quot;LVDATA1&amp;quot; UUID=&amp;quot;c8c681b9-6cd5-40a1-a075-279b7745ccce&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sdc1: UUID=&amp;quot;qXYDO1-oExh-O1Bb-3swI-exLi-o8YC-ReAPQb&amp;quot; TYPE=&amp;quot;LVM2_member&amp;quot; &lt;br /&gt;
/dev/sdb1: UUID=&amp;quot;cuECJ4-w5Hl-PzMd-btZ3-8I49-tcye-VBkS4x&amp;quot; TYPE=&amp;quot;LVM2_member&amp;quot; &lt;br /&gt;
/dev/mapper/vgshares-lvshares: UUID=&amp;quot;31875c98-c036-4718-ba3e-1d4212fe091b&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''FSTAB''' : filesystem fstab file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# cat /etc/fstab&lt;br /&gt;
# /etc/fstab: static file system information.&lt;br /&gt;
#&lt;br /&gt;
# &amp;lt;file system&amp;gt; &amp;lt;mount point&amp;gt;   &amp;lt;type&amp;gt;  &amp;lt;options&amp;gt;       &amp;lt;dump&amp;gt;  &amp;lt;pass&amp;gt;&lt;br /&gt;
proc		/proc		proc	defaults		0	0&lt;br /&gt;
/dev/mapper/vgsystem1-lvos	/	ext4	errors=remount-ro	0	1&lt;br /&gt;
/dev/vgsystem1/lvswap	none	swap	sw	0	0&lt;br /&gt;
/dev/fd0	/floppy		auto	user,noauto		0	0&lt;br /&gt;
/dev/cdrom	/cdrom		iso9660	ro,user,noauto		0	0&lt;br /&gt;
/dev/mapper/vgsystem1-lvvar	/var	ext4	defaults	0	2&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1	/srv/data1	ext4	defaults,usrquota,grpquota,user_xattr,acl	0	2&lt;br /&gt;
/srv/data1/home1   /home1   none     bind                0      0&lt;br /&gt;
/srv/data1/home2   /home2   none     bind                0      0&lt;br /&gt;
LABEL=ipbrick-D	/opt/system/backupDB	auto	user,noauto		0	0&lt;br /&gt;
/home1/_fax   /var/spool/hylafax   none     bind                0      0&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create mount point, update fstab and do the mount.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# mkdir /home3&lt;br /&gt;
ipbrick:~# echo &amp;quot;/dev/mapper/vgshares-lvshares   /home3   ext4   defaults,usrquota,grpquota,user_xattr,acl  0   2&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
ipbrick:~# cat /etc/fstab&lt;br /&gt;
# /etc/fstab: static file system information.&lt;br /&gt;
#&lt;br /&gt;
# &amp;lt;file system&amp;gt; &amp;lt;mount point&amp;gt;   &amp;lt;type&amp;gt;  &amp;lt;options&amp;gt;       &amp;lt;dump&amp;gt;  &amp;lt;pass&amp;gt;&lt;br /&gt;
proc		/proc		proc	defaults		0	0&lt;br /&gt;
/dev/mapper/vgsystem1-lvos	/	ext4	errors=remount-ro	0	1&lt;br /&gt;
/dev/vgsystem1/lvswap	none	swap	sw	0	0&lt;br /&gt;
/dev/fd0	/floppy		auto	user,noauto		0	0&lt;br /&gt;
/dev/cdrom	/cdrom		iso9660	ro,user,noauto		0	0&lt;br /&gt;
/dev/mapper/vgsystem1-lvvar	/var	ext4	defaults	0	2&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1	/srv/data1	ext4	defaults,usrquota,grpquota,user_xattr,acl	0	2&lt;br /&gt;
/srv/data1/home1   /home1   none     bind                0      0&lt;br /&gt;
/srv/data1/home2   /home2   none     bind                0      0&lt;br /&gt;
LABEL=ipbrick-D	/opt/system/backupDB	auto	user,noauto		0	0&lt;br /&gt;
/home1/_fax   /var/spool/hylafax   none     bind                0      0&lt;br /&gt;
/dev/mapper/vgshares-lvshares   /home3   ext4   defaults,usrquota,grpquota,user_xattr,acl  0   2&lt;br /&gt;
ipbrick:~# mount /home3&lt;br /&gt;
ipbrick:~# df -h&lt;br /&gt;
Filesystem                     Size  Used Avail Use% Mounted on&lt;br /&gt;
rootfs                          15G  4.6G  9.4G  33% /&lt;br /&gt;
udev                            10M     0   10M   0% /dev&lt;br /&gt;
tmpfs                          1.6G  964K  1.6G   1% /run&lt;br /&gt;
/dev/mapper/vgsystem1-lvos      15G  4.6G  9.4G  33% /&lt;br /&gt;
tmpfs                          5.0M     0  5.0M   0% /run/lock&lt;br /&gt;
tmpfs                          3.2G     0  3.2G   0% /run/shm&lt;br /&gt;
/dev/mapper/vgsystem1-lvvar     20G  1.5G   18G   8% /var&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /srv/data1&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /home1&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /home2&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /var/spool/hylafax&lt;br /&gt;
/dev/mapper/vgshares-lvshares  4.0T   67M  3.8T   1% /home3&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Initialize basic structure:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# cd /home3/&lt;br /&gt;
ipbrick:/home3# mkdir _accounts _shares&lt;br /&gt;
ipbrick:/home3# ls -al&lt;br /&gt;
total 32&lt;br /&gt;
drwxr-xr-x  5 root root  4096 Apr 20 18:15 .&lt;br /&gt;
drwxr-xr-x 29 root root  4096 Apr 20 18:12 ..&lt;br /&gt;
drwxr-xr-x  2 root root  4096 Apr 20 18:15 _accounts&lt;br /&gt;
drwx------  2 root root 16384 Apr 20 18:05 lost+found&lt;br /&gt;
drwxr-xr-x  2 root root  4096 Apr 20 18:15 _shares&lt;br /&gt;
ipbrick:/home3# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/Map_new_LVM</id>
		<title>Map new LVM</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/Map_new_LVM"/>
				<updated>2018-04-23T17:16:40Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* FSTAB - Mount at boot time */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Presentation =&lt;br /&gt;
IPBRICK.OS v6.3 installed in LVM. Clients decides to map a new HDD to migrate users data. Here we describe the process to prepare a new LVM volume and move an existing homedirs/workareas to the new LVM filesystem.&lt;br /&gt;
&lt;br /&gt;
== NOTE ==&lt;br /&gt;
'''IMPORTANT''' : this procedure is to be executed at IPBRICK.OS linux command line as super-user (su - root). This procedure is to be executed by a system administrator with some linux console knowledge. The instructions here presented were collected from a real scenario, meanwhile you are required to check, verifiy and adapt to your own installation. &lt;br /&gt;
&lt;br /&gt;
== Contents ==&lt;br /&gt;
In the following sections you'll find:&lt;br /&gt;
* Scenarios - list of typical applications&lt;br /&gt;
* Technical procedures&lt;br /&gt;
&lt;br /&gt;
= Scenarios =&lt;br /&gt;
The typical scenario is:&lt;br /&gt;
* one disk for operating system&lt;br /&gt;
* one disk for users data&lt;br /&gt;
* one disk for database binaries&lt;br /&gt;
&lt;br /&gt;
These apply to:&lt;br /&gt;
* FileServer - users data separated from the operating system (OS) installation&lt;br /&gt;
* MailServer - users data separated from the OS&lt;br /&gt;
* iPortalDoc - data warehouse separated from the OS, database binaries in an independente volume&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Technical Procedures =&lt;br /&gt;
In this section we will be working with the following setup:&lt;br /&gt;
* IPBRICK.OS v6.3&lt;br /&gt;
* OS installation using LVM&lt;br /&gt;
* HDD setup:&lt;br /&gt;
** sda - the first HDD - OS installation&lt;br /&gt;
** sdb - the second HDD - for user data&lt;br /&gt;
** sdc - the third HDD - for user data&lt;br /&gt;
&lt;br /&gt;
We will be working with LVM. All physical disks are to be grouped in one new volume group.&lt;br /&gt;
&lt;br /&gt;
== Identify Blocks/Disks ==&lt;br /&gt;
LSBLK : helps you identify physical disks and their current assignment&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# lsblk &lt;br /&gt;
NAME                         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT&lt;br /&gt;
sda                            8:0    0    50G  0 disk &lt;br /&gt;
├─sda1                         8:1    0   1.9G  0 part &lt;br /&gt;
└─sda2                         8:2    0  48.1G  0 part &lt;br /&gt;
  ├─vgsystem1-lvos (dm-0)    254:0    0    15G  0 lvm  /&lt;br /&gt;
  ├─vgsystem1-lvswap (dm-1)  254:1    0     2G  0 lvm  [SWAP]&lt;br /&gt;
  ├─vgsystem1-lvvar (dm-2)   254:2    0    20G  0 lvm  /var&lt;br /&gt;
  └─vgsystem1-lvdata1 (dm-3) 254:3    0  11.1G  0 lvm  /srv/data1&lt;br /&gt;
sdb                            8:16   0     2T  0 disk &lt;br /&gt;
sdc                            8:32   0     2T  0 disk &lt;br /&gt;
sr0                           11:0    1  1024M  0 rom  &lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Partitioning ==&lt;br /&gt;
PARTED : the tool to create partition table and partitions&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# parted /dev/sdb&lt;br /&gt;
GNU Parted 2.3&lt;br /&gt;
Using /dev/sdb&lt;br /&gt;
Welcome to GNU Parted! Type 'help' to view a list of commands.&lt;br /&gt;
(parted) mktable gpt                                                      &lt;br /&gt;
(parted) print                                                            &lt;br /&gt;
Model: Msft Virtual Disk (scsi)&lt;br /&gt;
Disk /dev/sdb: 2199GB&lt;br /&gt;
Sector size (logical/physical): 512B/4096B&lt;br /&gt;
Partition Table: gpt&lt;br /&gt;
&lt;br /&gt;
Number  Start  End  Size  File system  Name  Flags&lt;br /&gt;
&lt;br /&gt;
(parted) mkpart&lt;br /&gt;
Partition name?  []?                                                      &lt;br /&gt;
File system type?  [ext2]?                                                &lt;br /&gt;
Start? 1                                                                  &lt;br /&gt;
End? 2199GB                                                               &lt;br /&gt;
(parted) print                                                            &lt;br /&gt;
Model: Msft Virtual Disk (scsi)&lt;br /&gt;
Disk /dev/sdb: 2199GB&lt;br /&gt;
Sector size (logical/physical): 512B/4096B&lt;br /&gt;
Partition Table: gpt&lt;br /&gt;
&lt;br /&gt;
Number  Start   End     Size    File system  Name  Flags&lt;br /&gt;
 1      1049kB  2199GB  2199GB&lt;br /&gt;
&lt;br /&gt;
(parted) select /dev/sdc                                                  &lt;br /&gt;
Using /dev/sdc&lt;br /&gt;
(parted) print                                                            &lt;br /&gt;
Error: /dev/sdc: unrecognised disk label                                  &lt;br /&gt;
(parted) mktable gpt                                                      &lt;br /&gt;
(parted) print                                                            &lt;br /&gt;
Model: Msft Virtual Disk (scsi)&lt;br /&gt;
Disk /dev/sdc: 2199GB&lt;br /&gt;
Sector size (logical/physical): 512B/4096B&lt;br /&gt;
Partition Table: gpt&lt;br /&gt;
&lt;br /&gt;
Number  Start  End  Size  File system  Name  Flags&lt;br /&gt;
                                                               &lt;br /&gt;
(parted) mkpart                                                           &lt;br /&gt;
Partition name?  []?                                                      &lt;br /&gt;
File system type?  [ext2]?                                                &lt;br /&gt;
Start? 1                                                                  &lt;br /&gt;
End? 2199GB                                                               &lt;br /&gt;
(parted) print                                                            &lt;br /&gt;
Model: Msft Virtual Disk (scsi)&lt;br /&gt;
Disk /dev/sdc: 2199GB&lt;br /&gt;
Sector size (logical/physical): 512B/4096B&lt;br /&gt;
Partition Table: gpt&lt;br /&gt;
&lt;br /&gt;
Number  Start   End     Size    File system  Name  Flags&lt;br /&gt;
 1      1049kB  2199GB  2199GB&lt;br /&gt;
&lt;br /&gt;
(parted) quit                                                             &lt;br /&gt;
Information: You may need to update /etc/fstab.                           &lt;br /&gt;
&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
Check the new blocks:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# lsblk&lt;br /&gt;
NAME                         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT&lt;br /&gt;
sda                            8:0    0    50G  0 disk &lt;br /&gt;
├─sda1                         8:1    0   1.9G  0 part &lt;br /&gt;
└─sda2                         8:2    0  48.1G  0 part &lt;br /&gt;
  ├─vgsystem1-lvos (dm-0)    254:0    0    15G  0 lvm  /&lt;br /&gt;
  ├─vgsystem1-lvswap (dm-1)  254:1    0     2G  0 lvm  [SWAP]&lt;br /&gt;
  ├─vgsystem1-lvvar (dm-2)   254:2    0    20G  0 lvm  /var&lt;br /&gt;
  └─vgsystem1-lvdata1 (dm-3) 254:3    0  11.1G  0 lvm  /srv/data1&lt;br /&gt;
sdb                            8:16   0     2T  0 disk &lt;br /&gt;
└─sdb1                         8:17   0     2T  0 part &lt;br /&gt;
sdc                            8:32   0     2T  0 disk &lt;br /&gt;
└─sdc1                         8:33   0     2T  0 part &lt;br /&gt;
sr0                           11:0    1  1024M  0 rom  &lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== LVM configuration ==&lt;br /&gt;
'''PVCREATE''' : initialize the physical volumes&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# pvcreate /dev/sdb1 /dev/sdc1&lt;br /&gt;
  Writing physical volume data to disk &amp;quot;/dev/sdb1&amp;quot;&lt;br /&gt;
  Physical volume &amp;quot;/dev/sdb1&amp;quot; successfully created&lt;br /&gt;
  Writing physical volume data to disk &amp;quot;/dev/sdc1&amp;quot;&lt;br /&gt;
  Physical volume &amp;quot;/dev/sdc1&amp;quot; successfully created&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''VGCREATE''' : initialize the volume group&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# vgcreate vgshares /dev/sdb1 /dev/sdc1&lt;br /&gt;
  Volume group &amp;quot;vgshares&amp;quot; successfully created&lt;br /&gt;
ipbrick:~#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''VGDISPLAY''' : displays information on the volume groups&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# vgdisplay vgshares&lt;br /&gt;
  --- Volume group ---&lt;br /&gt;
  VG Name               vgshares&lt;br /&gt;
  System ID             &lt;br /&gt;
  Format                lvm2&lt;br /&gt;
  Metadata Areas        2&lt;br /&gt;
  Metadata Sequence No  1&lt;br /&gt;
  VG Access             read/write&lt;br /&gt;
  VG Status             resizable&lt;br /&gt;
  MAX LV                0&lt;br /&gt;
  Cur LV                0&lt;br /&gt;
  Open LV               0&lt;br /&gt;
  Max PV                0&lt;br /&gt;
  Cur PV                2&lt;br /&gt;
  Act PV                2&lt;br /&gt;
  VG Size               4.00 TiB&lt;br /&gt;
  PE Size               4.00 MiB&lt;br /&gt;
  Total PE              1048574&lt;br /&gt;
  Alloc PE / Size       0 / 0   &lt;br /&gt;
  Free  PE / Size       1048574 / 4.00 TiB&lt;br /&gt;
  VG UUID               3htRDP-4EEE-xG24-VBrj-cUYP-dkUW-m1h8Ya&lt;br /&gt;
   &lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''LVCREATE''' : creates logical volume&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# lvcreate -l 100%FREE -n lvshares vgshares&lt;br /&gt;
  Logical volume &amp;quot;lvshares&amp;quot; created&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''LVDISPLAY''' : displays information on the logical volume&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# lvdisplay vgshares&lt;br /&gt;
  --- Logical volume ---&lt;br /&gt;
  LV Path                /dev/vgshares/lvshares&lt;br /&gt;
  LV Name                lvshares&lt;br /&gt;
  VG Name                vgshares&lt;br /&gt;
  LV UUID                JrTaAv-WYtf-SDCe-tzHl-6e0Z-VAJF-rjV5dn&lt;br /&gt;
  LV Write Access        read/write&lt;br /&gt;
  LV Creation host, time gestdoc, 2018-04-20 18:02:24 +0100&lt;br /&gt;
  LV Status              available&lt;br /&gt;
  # open                 0&lt;br /&gt;
  LV Size                4.00 TiB&lt;br /&gt;
  Current LE             1048574&lt;br /&gt;
  Segments               2&lt;br /&gt;
  Allocation             inherit&lt;br /&gt;
  Read ahead sectors     auto&lt;br /&gt;
  - currently set to     256&lt;br /&gt;
  Block device           254:4&lt;br /&gt;
   &lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FileSystem Configuration ==&lt;br /&gt;
'''MKFS.EXT4''' : initialize filesystem with EXT4 format&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# mkfs.ext4 /dev/vgshares/lvshares &lt;br /&gt;
mke2fs 1.42.5 (29-Jul-2012)&lt;br /&gt;
Filesystem label=&lt;br /&gt;
OS type: Linux&lt;br /&gt;
Block size=4096 (log=2)&lt;br /&gt;
Fragment size=4096 (log=2)&lt;br /&gt;
Stride=0 blocks, Stripe width=0 blocks&lt;br /&gt;
268435456 inodes, 1073739776 blocks&lt;br /&gt;
53686988 blocks (5.00%) reserved for the super user&lt;br /&gt;
First data block=0&lt;br /&gt;
Maximum filesystem blocks=4294967296&lt;br /&gt;
32768 block groups&lt;br /&gt;
32768 blocks per group, 32768 fragments per group&lt;br /&gt;
8192 inodes per group&lt;br /&gt;
Superblock backups stored on blocks: &lt;br /&gt;
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, &lt;br /&gt;
	4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, &lt;br /&gt;
	102400000, 214990848, 512000000, 550731776, 644972544&lt;br /&gt;
&lt;br /&gt;
Allocating group tables: done                            &lt;br /&gt;
Writing inode tables: done                            &lt;br /&gt;
Creating journal (32768 blocks): done&lt;br /&gt;
Writing superblocks and filesystem accounting information: done       &lt;br /&gt;
&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Test-drive the new filesystem:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# mount /dev/vgshares/lvshares /mnt/&lt;br /&gt;
ipbrick:~# df -h&lt;br /&gt;
Filesystem                     Size  Used Avail Use% Mounted on&lt;br /&gt;
rootfs                          15G  4.6G  9.4G  33% /&lt;br /&gt;
udev                            10M     0   10M   0% /dev&lt;br /&gt;
tmpfs                          1.6G  964K  1.6G   1% /run&lt;br /&gt;
/dev/mapper/vgsystem1-lvos      15G  4.6G  9.4G  33% /&lt;br /&gt;
tmpfs                          5.0M     0  5.0M   0% /run/lock&lt;br /&gt;
tmpfs                          3.2G     0  3.2G   0% /run/shm&lt;br /&gt;
/dev/mapper/vgsystem1-lvvar     20G  1.5G   18G   8% /var&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /srv/data1&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /home1&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /home2&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /var/spool/hylafax&lt;br /&gt;
/dev/mapper/vgshares-lvshares  4.0T   67M  3.8T   1% /mnt&lt;br /&gt;
ipbrick:~# umount /mnt&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FSTAB - Mount at boot time ==&lt;br /&gt;
The final step of this procedure is to register the mountpoint in the fstab file. In this section we provide a samples scenario, you may need to adapt to your own needs. From the manual:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
NAME: &lt;br /&gt;
       static information about the filesystems&lt;br /&gt;
NAME&lt;br /&gt;
       fstab - static information about the filesystems&lt;br /&gt;
&lt;br /&gt;
SYNOPSIS&lt;br /&gt;
       /etc/fstab&lt;br /&gt;
&lt;br /&gt;
DESCRIPTION&lt;br /&gt;
       The  file  fstab  contains  descriptive  information  about the various file systems.  &lt;br /&gt;
       fstab is only read by programs, and not written; it is the duty of the system&lt;br /&gt;
       administrator to properly create and maintain this file.  Each filesystem is described &lt;br /&gt;
       on a separate line; fields on each line are  separated  by  tabs  or  spaces.&lt;br /&gt;
       Lines  starting  with  '#'  are  comments, blank lines are ignored. The order of records &lt;br /&gt;
       in fstab is important because fsck(8), mount(8), and umount(8) sequentially&lt;br /&gt;
       iterate through fstab doing their thing.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
T&lt;br /&gt;
&lt;br /&gt;
'''BLKID''' : identify blocks id&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# blkid &lt;br /&gt;
/dev/sda2: UUID=&amp;quot;exMrHD-qgY3-c8cy-Ao0t-Z6TG-JNiG-L2boKk&amp;quot; TYPE=&amp;quot;LVM2_member&amp;quot; &lt;br /&gt;
/dev/mapper/vgsystem1-lvos: LABEL=&amp;quot;LVOS&amp;quot; UUID=&amp;quot;7f1dd815-0e0e-4148-bf55-e3b443de0afd&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/mapper/vgsystem1-lvswap: UUID=&amp;quot;b6de4b36-9f16-432b-9475-636008e5efed&amp;quot; TYPE=&amp;quot;swap&amp;quot; &lt;br /&gt;
/dev/mapper/vgsystem1-lvvar: LABEL=&amp;quot;LVVAR&amp;quot; UUID=&amp;quot;69a75bac-56e9-4ec6-b3a8-3f31b91019a3&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1: LABEL=&amp;quot;LVDATA1&amp;quot; UUID=&amp;quot;c8c681b9-6cd5-40a1-a075-279b7745ccce&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sdc1: UUID=&amp;quot;qXYDO1-oExh-O1Bb-3swI-exLi-o8YC-ReAPQb&amp;quot; TYPE=&amp;quot;LVM2_member&amp;quot; &lt;br /&gt;
/dev/sdb1: UUID=&amp;quot;cuECJ4-w5Hl-PzMd-btZ3-8I49-tcye-VBkS4x&amp;quot; TYPE=&amp;quot;LVM2_member&amp;quot; &lt;br /&gt;
/dev/mapper/vgshares-lvshares: UUID=&amp;quot;31875c98-c036-4718-ba3e-1d4212fe091b&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''FSTAB''' : filesystem fstab file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# cat /etc/fstab&lt;br /&gt;
# /etc/fstab: static file system information.&lt;br /&gt;
#&lt;br /&gt;
# &amp;lt;file system&amp;gt; &amp;lt;mount point&amp;gt;   &amp;lt;type&amp;gt;  &amp;lt;options&amp;gt;       &amp;lt;dump&amp;gt;  &amp;lt;pass&amp;gt;&lt;br /&gt;
proc		/proc		proc	defaults		0	0&lt;br /&gt;
/dev/mapper/vgsystem1-lvos	/	ext4	errors=remount-ro	0	1&lt;br /&gt;
/dev/vgsystem1/lvswap	none	swap	sw	0	0&lt;br /&gt;
/dev/fd0	/floppy		auto	user,noauto		0	0&lt;br /&gt;
/dev/cdrom	/cdrom		iso9660	ro,user,noauto		0	0&lt;br /&gt;
/dev/mapper/vgsystem1-lvvar	/var	ext4	defaults	0	2&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1	/srv/data1	ext4	defaults,usrquota,grpquota,user_xattr,acl	0	2&lt;br /&gt;
/srv/data1/home1   /home1   none     bind                0      0&lt;br /&gt;
/srv/data1/home2   /home2   none     bind                0      0&lt;br /&gt;
LABEL=ipbrick-D	/opt/system/backupDB	auto	user,noauto		0	0&lt;br /&gt;
/home1/_fax   /var/spool/hylafax   none     bind                0      0&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create mount point, update fstab and do the mount.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# mkdir /home3&lt;br /&gt;
ipbrick:~# echo &amp;quot;/dev/mapper/vgshares-lvshares   /home3   ext4   defaults,usrquota,grpquota,user_xattr,acl  0   2&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
ipbrick:~# cat /etc/fstab&lt;br /&gt;
# /etc/fstab: static file system information.&lt;br /&gt;
#&lt;br /&gt;
# &amp;lt;file system&amp;gt; &amp;lt;mount point&amp;gt;   &amp;lt;type&amp;gt;  &amp;lt;options&amp;gt;       &amp;lt;dump&amp;gt;  &amp;lt;pass&amp;gt;&lt;br /&gt;
proc		/proc		proc	defaults		0	0&lt;br /&gt;
/dev/mapper/vgsystem1-lvos	/	ext4	errors=remount-ro	0	1&lt;br /&gt;
/dev/vgsystem1/lvswap	none	swap	sw	0	0&lt;br /&gt;
/dev/fd0	/floppy		auto	user,noauto		0	0&lt;br /&gt;
/dev/cdrom	/cdrom		iso9660	ro,user,noauto		0	0&lt;br /&gt;
/dev/mapper/vgsystem1-lvvar	/var	ext4	defaults	0	2&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1	/srv/data1	ext4	defaults,usrquota,grpquota,user_xattr,acl	0	2&lt;br /&gt;
/srv/data1/home1   /home1   none     bind                0      0&lt;br /&gt;
/srv/data1/home2   /home2   none     bind                0      0&lt;br /&gt;
LABEL=ipbrick-D	/opt/system/backupDB	auto	user,noauto		0	0&lt;br /&gt;
/home1/_fax   /var/spool/hylafax   none     bind                0      0&lt;br /&gt;
/dev/mapper/vgshares-lvshares   /home3   ext4   defaults,usrquota,grpquota,user_xattr,acl  0   2&lt;br /&gt;
ipbrick:~# mount /home3&lt;br /&gt;
ipbrick:~# df -h&lt;br /&gt;
Filesystem                     Size  Used Avail Use% Mounted on&lt;br /&gt;
rootfs                          15G  4.6G  9.4G  33% /&lt;br /&gt;
udev                            10M     0   10M   0% /dev&lt;br /&gt;
tmpfs                          1.6G  964K  1.6G   1% /run&lt;br /&gt;
/dev/mapper/vgsystem1-lvos      15G  4.6G  9.4G  33% /&lt;br /&gt;
tmpfs                          5.0M     0  5.0M   0% /run/lock&lt;br /&gt;
tmpfs                          3.2G     0  3.2G   0% /run/shm&lt;br /&gt;
/dev/mapper/vgsystem1-lvvar     20G  1.5G   18G   8% /var&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /srv/data1&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /home1&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /home2&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /var/spool/hylafax&lt;br /&gt;
/dev/mapper/vgshares-lvshares  4.0T   67M  3.8T   1% /home3&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Initialize basic structure:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# cd /home3/&lt;br /&gt;
ipbrick:/home3# mkdir _accounts _shares&lt;br /&gt;
ipbrick:/home3# ls -al&lt;br /&gt;
total 32&lt;br /&gt;
drwxr-xr-x  5 root root  4096 Apr 20 18:15 .&lt;br /&gt;
drwxr-xr-x 29 root root  4096 Apr 20 18:12 ..&lt;br /&gt;
drwxr-xr-x  2 root root  4096 Apr 20 18:15 _accounts&lt;br /&gt;
drwx------  2 root root 16384 Apr 20 18:05 lost+found&lt;br /&gt;
drwxr-xr-x  2 root root  4096 Apr 20 18:15 _shares&lt;br /&gt;
ipbrick:/home3# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/Map_new_LVM</id>
		<title>Map new LVM</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/Map_new_LVM"/>
				<updated>2018-04-20T17:54:30Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: Created page with &amp;quot;= Presentation = IPBRICK.OS v6.3 installed in LVM. Clients decides to map a new HDD to migrate users data. Here we describe the process to prepare a new LVM volume and move an...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Presentation =&lt;br /&gt;
IPBRICK.OS v6.3 installed in LVM. Clients decides to map a new HDD to migrate users data. Here we describe the process to prepare a new LVM volume and move an existing homedirs/workareas to the new LVM filesystem.&lt;br /&gt;
&lt;br /&gt;
== NOTE ==&lt;br /&gt;
'''IMPORTANT''' : this procedure is to be executed at IPBRICK.OS linux command line as super-user (su - root). This procedure is to be executed by a system administrator with some linux console knowledge. The instructions here presented were collected from a real scenario, meanwhile you are required to check, verifiy and adapt to your own installation. &lt;br /&gt;
&lt;br /&gt;
== Contents ==&lt;br /&gt;
In the following sections you'll find:&lt;br /&gt;
* Scenarios - list of typical applications&lt;br /&gt;
* Technical procedures&lt;br /&gt;
&lt;br /&gt;
= Scenarios =&lt;br /&gt;
The typical scenario is:&lt;br /&gt;
* one disk for operating system&lt;br /&gt;
* one disk for users data&lt;br /&gt;
* one disk for database binaries&lt;br /&gt;
&lt;br /&gt;
These apply to:&lt;br /&gt;
* FileServer - users data separated from the operating system (OS) installation&lt;br /&gt;
* MailServer - users data separated from the OS&lt;br /&gt;
* iPortalDoc - data warehouse separated from the OS, database binaries in an independente volume&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Technical Procedures =&lt;br /&gt;
In this section we will be working with the following setup:&lt;br /&gt;
* IPBRICK.OS v6.3&lt;br /&gt;
* OS installation using LVM&lt;br /&gt;
* HDD setup:&lt;br /&gt;
** sda - the first HDD - OS installation&lt;br /&gt;
** sdb - the second HDD - for user data&lt;br /&gt;
** sdc - the third HDD - for user data&lt;br /&gt;
&lt;br /&gt;
We will be working with LVM. All physical disks are to be grouped in one new volume group.&lt;br /&gt;
&lt;br /&gt;
== Identify Blocks/Disks ==&lt;br /&gt;
LSBLK : helps you identify physical disks and their current assignment&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# lsblk &lt;br /&gt;
NAME                         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT&lt;br /&gt;
sda                            8:0    0    50G  0 disk &lt;br /&gt;
├─sda1                         8:1    0   1.9G  0 part &lt;br /&gt;
└─sda2                         8:2    0  48.1G  0 part &lt;br /&gt;
  ├─vgsystem1-lvos (dm-0)    254:0    0    15G  0 lvm  /&lt;br /&gt;
  ├─vgsystem1-lvswap (dm-1)  254:1    0     2G  0 lvm  [SWAP]&lt;br /&gt;
  ├─vgsystem1-lvvar (dm-2)   254:2    0    20G  0 lvm  /var&lt;br /&gt;
  └─vgsystem1-lvdata1 (dm-3) 254:3    0  11.1G  0 lvm  /srv/data1&lt;br /&gt;
sdb                            8:16   0     2T  0 disk &lt;br /&gt;
sdc                            8:32   0     2T  0 disk &lt;br /&gt;
sr0                           11:0    1  1024M  0 rom  &lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Partitioning ==&lt;br /&gt;
PARTED : the tool to create partition table and partitions&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# parted /dev/sdb&lt;br /&gt;
GNU Parted 2.3&lt;br /&gt;
Using /dev/sdb&lt;br /&gt;
Welcome to GNU Parted! Type 'help' to view a list of commands.&lt;br /&gt;
(parted) mktable gpt                                                      &lt;br /&gt;
(parted) print                                                            &lt;br /&gt;
Model: Msft Virtual Disk (scsi)&lt;br /&gt;
Disk /dev/sdb: 2199GB&lt;br /&gt;
Sector size (logical/physical): 512B/4096B&lt;br /&gt;
Partition Table: gpt&lt;br /&gt;
&lt;br /&gt;
Number  Start  End  Size  File system  Name  Flags&lt;br /&gt;
&lt;br /&gt;
(parted) mkpart&lt;br /&gt;
Partition name?  []?                                                      &lt;br /&gt;
File system type?  [ext2]?                                                &lt;br /&gt;
Start? 1                                                                  &lt;br /&gt;
End? 2199GB                                                               &lt;br /&gt;
(parted) print                                                            &lt;br /&gt;
Model: Msft Virtual Disk (scsi)&lt;br /&gt;
Disk /dev/sdb: 2199GB&lt;br /&gt;
Sector size (logical/physical): 512B/4096B&lt;br /&gt;
Partition Table: gpt&lt;br /&gt;
&lt;br /&gt;
Number  Start   End     Size    File system  Name  Flags&lt;br /&gt;
 1      1049kB  2199GB  2199GB&lt;br /&gt;
&lt;br /&gt;
(parted) select /dev/sdc                                                  &lt;br /&gt;
Using /dev/sdc&lt;br /&gt;
(parted) print                                                            &lt;br /&gt;
Error: /dev/sdc: unrecognised disk label                                  &lt;br /&gt;
(parted) mktable gpt                                                      &lt;br /&gt;
(parted) print                                                            &lt;br /&gt;
Model: Msft Virtual Disk (scsi)&lt;br /&gt;
Disk /dev/sdc: 2199GB&lt;br /&gt;
Sector size (logical/physical): 512B/4096B&lt;br /&gt;
Partition Table: gpt&lt;br /&gt;
&lt;br /&gt;
Number  Start  End  Size  File system  Name  Flags&lt;br /&gt;
                                                               &lt;br /&gt;
(parted) mkpart                                                           &lt;br /&gt;
Partition name?  []?                                                      &lt;br /&gt;
File system type?  [ext2]?                                                &lt;br /&gt;
Start? 1                                                                  &lt;br /&gt;
End? 2199GB                                                               &lt;br /&gt;
(parted) print                                                            &lt;br /&gt;
Model: Msft Virtual Disk (scsi)&lt;br /&gt;
Disk /dev/sdc: 2199GB&lt;br /&gt;
Sector size (logical/physical): 512B/4096B&lt;br /&gt;
Partition Table: gpt&lt;br /&gt;
&lt;br /&gt;
Number  Start   End     Size    File system  Name  Flags&lt;br /&gt;
 1      1049kB  2199GB  2199GB&lt;br /&gt;
&lt;br /&gt;
(parted) quit                                                             &lt;br /&gt;
Information: You may need to update /etc/fstab.                           &lt;br /&gt;
&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
Check the new blocks:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# lsblk&lt;br /&gt;
NAME                         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT&lt;br /&gt;
sda                            8:0    0    50G  0 disk &lt;br /&gt;
├─sda1                         8:1    0   1.9G  0 part &lt;br /&gt;
└─sda2                         8:2    0  48.1G  0 part &lt;br /&gt;
  ├─vgsystem1-lvos (dm-0)    254:0    0    15G  0 lvm  /&lt;br /&gt;
  ├─vgsystem1-lvswap (dm-1)  254:1    0     2G  0 lvm  [SWAP]&lt;br /&gt;
  ├─vgsystem1-lvvar (dm-2)   254:2    0    20G  0 lvm  /var&lt;br /&gt;
  └─vgsystem1-lvdata1 (dm-3) 254:3    0  11.1G  0 lvm  /srv/data1&lt;br /&gt;
sdb                            8:16   0     2T  0 disk &lt;br /&gt;
└─sdb1                         8:17   0     2T  0 part &lt;br /&gt;
sdc                            8:32   0     2T  0 disk &lt;br /&gt;
└─sdc1                         8:33   0     2T  0 part &lt;br /&gt;
sr0                           11:0    1  1024M  0 rom  &lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== LVM configuration ==&lt;br /&gt;
'''PVCREATE''' : initialize the physical volumes&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# pvcreate /dev/sdb1 /dev/sdc1&lt;br /&gt;
  Writing physical volume data to disk &amp;quot;/dev/sdb1&amp;quot;&lt;br /&gt;
  Physical volume &amp;quot;/dev/sdb1&amp;quot; successfully created&lt;br /&gt;
  Writing physical volume data to disk &amp;quot;/dev/sdc1&amp;quot;&lt;br /&gt;
  Physical volume &amp;quot;/dev/sdc1&amp;quot; successfully created&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''VGCREATE''' : initialize the volume group&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# vgcreate vgshares /dev/sdb1 /dev/sdc1&lt;br /&gt;
  Volume group &amp;quot;vgshares&amp;quot; successfully created&lt;br /&gt;
ipbrick:~#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''VGDISPLAY''' : displays information on the volume groups&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# vgdisplay vgshares&lt;br /&gt;
  --- Volume group ---&lt;br /&gt;
  VG Name               vgshares&lt;br /&gt;
  System ID             &lt;br /&gt;
  Format                lvm2&lt;br /&gt;
  Metadata Areas        2&lt;br /&gt;
  Metadata Sequence No  1&lt;br /&gt;
  VG Access             read/write&lt;br /&gt;
  VG Status             resizable&lt;br /&gt;
  MAX LV                0&lt;br /&gt;
  Cur LV                0&lt;br /&gt;
  Open LV               0&lt;br /&gt;
  Max PV                0&lt;br /&gt;
  Cur PV                2&lt;br /&gt;
  Act PV                2&lt;br /&gt;
  VG Size               4.00 TiB&lt;br /&gt;
  PE Size               4.00 MiB&lt;br /&gt;
  Total PE              1048574&lt;br /&gt;
  Alloc PE / Size       0 / 0   &lt;br /&gt;
  Free  PE / Size       1048574 / 4.00 TiB&lt;br /&gt;
  VG UUID               3htRDP-4EEE-xG24-VBrj-cUYP-dkUW-m1h8Ya&lt;br /&gt;
   &lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''LVCREATE''' : creates logical volume&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# lvcreate -l 100%FREE -n lvshares vgshares&lt;br /&gt;
  Logical volume &amp;quot;lvshares&amp;quot; created&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''LVDISPLAY''' : displays information on the logical volume&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# lvdisplay vgshares&lt;br /&gt;
  --- Logical volume ---&lt;br /&gt;
  LV Path                /dev/vgshares/lvshares&lt;br /&gt;
  LV Name                lvshares&lt;br /&gt;
  VG Name                vgshares&lt;br /&gt;
  LV UUID                JrTaAv-WYtf-SDCe-tzHl-6e0Z-VAJF-rjV5dn&lt;br /&gt;
  LV Write Access        read/write&lt;br /&gt;
  LV Creation host, time gestdoc, 2018-04-20 18:02:24 +0100&lt;br /&gt;
  LV Status              available&lt;br /&gt;
  # open                 0&lt;br /&gt;
  LV Size                4.00 TiB&lt;br /&gt;
  Current LE             1048574&lt;br /&gt;
  Segments               2&lt;br /&gt;
  Allocation             inherit&lt;br /&gt;
  Read ahead sectors     auto&lt;br /&gt;
  - currently set to     256&lt;br /&gt;
  Block device           254:4&lt;br /&gt;
   &lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FileSystem Configuration ==&lt;br /&gt;
'''MKFS.EXT4''' : initialize filesystem with EXT4 format&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# mkfs.ext4 /dev/vgshares/lvshares &lt;br /&gt;
mke2fs 1.42.5 (29-Jul-2012)&lt;br /&gt;
Filesystem label=&lt;br /&gt;
OS type: Linux&lt;br /&gt;
Block size=4096 (log=2)&lt;br /&gt;
Fragment size=4096 (log=2)&lt;br /&gt;
Stride=0 blocks, Stripe width=0 blocks&lt;br /&gt;
268435456 inodes, 1073739776 blocks&lt;br /&gt;
53686988 blocks (5.00%) reserved for the super user&lt;br /&gt;
First data block=0&lt;br /&gt;
Maximum filesystem blocks=4294967296&lt;br /&gt;
32768 block groups&lt;br /&gt;
32768 blocks per group, 32768 fragments per group&lt;br /&gt;
8192 inodes per group&lt;br /&gt;
Superblock backups stored on blocks: &lt;br /&gt;
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, &lt;br /&gt;
	4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, &lt;br /&gt;
	102400000, 214990848, 512000000, 550731776, 644972544&lt;br /&gt;
&lt;br /&gt;
Allocating group tables: done                            &lt;br /&gt;
Writing inode tables: done                            &lt;br /&gt;
Creating journal (32768 blocks): done&lt;br /&gt;
Writing superblocks and filesystem accounting information: done       &lt;br /&gt;
&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Test-drive the new filesystem:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# mount /dev/vgshares/lvshares /mnt/&lt;br /&gt;
ipbrick:~# df -h&lt;br /&gt;
Filesystem                     Size  Used Avail Use% Mounted on&lt;br /&gt;
rootfs                          15G  4.6G  9.4G  33% /&lt;br /&gt;
udev                            10M     0   10M   0% /dev&lt;br /&gt;
tmpfs                          1.6G  964K  1.6G   1% /run&lt;br /&gt;
/dev/mapper/vgsystem1-lvos      15G  4.6G  9.4G  33% /&lt;br /&gt;
tmpfs                          5.0M     0  5.0M   0% /run/lock&lt;br /&gt;
tmpfs                          3.2G     0  3.2G   0% /run/shm&lt;br /&gt;
/dev/mapper/vgsystem1-lvvar     20G  1.5G   18G   8% /var&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /srv/data1&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /home1&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /home2&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /var/spool/hylafax&lt;br /&gt;
/dev/mapper/vgshares-lvshares  4.0T   67M  3.8T   1% /mnt&lt;br /&gt;
ipbrick:~# umount /mnt&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== FSTAB - Mount at boot time ==&lt;br /&gt;
'''BLKID''' : identify blocks id&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# blkid &lt;br /&gt;
/dev/sda2: UUID=&amp;quot;exMrHD-qgY3-c8cy-Ao0t-Z6TG-JNiG-L2boKk&amp;quot; TYPE=&amp;quot;LVM2_member&amp;quot; &lt;br /&gt;
/dev/mapper/vgsystem1-lvos: LABEL=&amp;quot;LVOS&amp;quot; UUID=&amp;quot;7f1dd815-0e0e-4148-bf55-e3b443de0afd&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/mapper/vgsystem1-lvswap: UUID=&amp;quot;b6de4b36-9f16-432b-9475-636008e5efed&amp;quot; TYPE=&amp;quot;swap&amp;quot; &lt;br /&gt;
/dev/mapper/vgsystem1-lvvar: LABEL=&amp;quot;LVVAR&amp;quot; UUID=&amp;quot;69a75bac-56e9-4ec6-b3a8-3f31b91019a3&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1: LABEL=&amp;quot;LVDATA1&amp;quot; UUID=&amp;quot;c8c681b9-6cd5-40a1-a075-279b7745ccce&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
/dev/sdc1: UUID=&amp;quot;qXYDO1-oExh-O1Bb-3swI-exLi-o8YC-ReAPQb&amp;quot; TYPE=&amp;quot;LVM2_member&amp;quot; &lt;br /&gt;
/dev/sdb1: UUID=&amp;quot;cuECJ4-w5Hl-PzMd-btZ3-8I49-tcye-VBkS4x&amp;quot; TYPE=&amp;quot;LVM2_member&amp;quot; &lt;br /&gt;
/dev/mapper/vgshares-lvshares: UUID=&amp;quot;31875c98-c036-4718-ba3e-1d4212fe091b&amp;quot; TYPE=&amp;quot;ext4&amp;quot; &lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''FSTAB''' : filesystem fstab file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# cat /etc/fstab&lt;br /&gt;
# /etc/fstab: static file system information.&lt;br /&gt;
#&lt;br /&gt;
# &amp;lt;file system&amp;gt; &amp;lt;mount point&amp;gt;   &amp;lt;type&amp;gt;  &amp;lt;options&amp;gt;       &amp;lt;dump&amp;gt;  &amp;lt;pass&amp;gt;&lt;br /&gt;
proc		/proc		proc	defaults		0	0&lt;br /&gt;
/dev/mapper/vgsystem1-lvos	/	ext4	errors=remount-ro	0	1&lt;br /&gt;
/dev/vgsystem1/lvswap	none	swap	sw	0	0&lt;br /&gt;
/dev/fd0	/floppy		auto	user,noauto		0	0&lt;br /&gt;
/dev/cdrom	/cdrom		iso9660	ro,user,noauto		0	0&lt;br /&gt;
/dev/mapper/vgsystem1-lvvar	/var	ext4	defaults	0	2&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1	/srv/data1	ext4	defaults,usrquota,grpquota,user_xattr,acl	0	2&lt;br /&gt;
/srv/data1/home1   /home1   none     bind                0      0&lt;br /&gt;
/srv/data1/home2   /home2   none     bind                0      0&lt;br /&gt;
LABEL=ipbrick-D	/opt/system/backupDB	auto	user,noauto		0	0&lt;br /&gt;
/home1/_fax   /var/spool/hylafax   none     bind                0      0&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create mount point, update fstab and do the mount.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# mkdir /home3&lt;br /&gt;
ipbrick:~# echo &amp;quot;/dev/mapper/vgshares-lvshares   /home3   ext4   defaults,usrquota,grpquota,user_xattr,acl  0   2&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
ipbrick:~# cat /etc/fstab&lt;br /&gt;
# /etc/fstab: static file system information.&lt;br /&gt;
#&lt;br /&gt;
# &amp;lt;file system&amp;gt; &amp;lt;mount point&amp;gt;   &amp;lt;type&amp;gt;  &amp;lt;options&amp;gt;       &amp;lt;dump&amp;gt;  &amp;lt;pass&amp;gt;&lt;br /&gt;
proc		/proc		proc	defaults		0	0&lt;br /&gt;
/dev/mapper/vgsystem1-lvos	/	ext4	errors=remount-ro	0	1&lt;br /&gt;
/dev/vgsystem1/lvswap	none	swap	sw	0	0&lt;br /&gt;
/dev/fd0	/floppy		auto	user,noauto		0	0&lt;br /&gt;
/dev/cdrom	/cdrom		iso9660	ro,user,noauto		0	0&lt;br /&gt;
/dev/mapper/vgsystem1-lvvar	/var	ext4	defaults	0	2&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1	/srv/data1	ext4	defaults,usrquota,grpquota,user_xattr,acl	0	2&lt;br /&gt;
/srv/data1/home1   /home1   none     bind                0      0&lt;br /&gt;
/srv/data1/home2   /home2   none     bind                0      0&lt;br /&gt;
LABEL=ipbrick-D	/opt/system/backupDB	auto	user,noauto		0	0&lt;br /&gt;
/home1/_fax   /var/spool/hylafax   none     bind                0      0&lt;br /&gt;
/dev/mapper/vgshares-lvshares   /home3   ext4   defaults,usrquota,grpquota,user_xattr,acl  0   2&lt;br /&gt;
ipbrick:~# mount /home3&lt;br /&gt;
ipbrick:~# df -h&lt;br /&gt;
Filesystem                     Size  Used Avail Use% Mounted on&lt;br /&gt;
rootfs                          15G  4.6G  9.4G  33% /&lt;br /&gt;
udev                            10M     0   10M   0% /dev&lt;br /&gt;
tmpfs                          1.6G  964K  1.6G   1% /run&lt;br /&gt;
/dev/mapper/vgsystem1-lvos      15G  4.6G  9.4G  33% /&lt;br /&gt;
tmpfs                          5.0M     0  5.0M   0% /run/lock&lt;br /&gt;
tmpfs                          3.2G     0  3.2G   0% /run/shm&lt;br /&gt;
/dev/mapper/vgsystem1-lvvar     20G  1.5G   18G   8% /var&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /srv/data1&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /home1&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /home2&lt;br /&gt;
/dev/mapper/vgsystem1-lvdata1   11G   44M   11G   1% /var/spool/hylafax&lt;br /&gt;
/dev/mapper/vgshares-lvshares  4.0T   67M  3.8T   1% /home3&lt;br /&gt;
ipbrick:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Initialize basic structure:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick:~# cd /home3/&lt;br /&gt;
ipbrick:/home3# mkdir _accounts _shares&lt;br /&gt;
ipbrick:/home3# ls -al&lt;br /&gt;
total 32&lt;br /&gt;
drwxr-xr-x  5 root root  4096 Apr 20 18:15 .&lt;br /&gt;
drwxr-xr-x 29 root root  4096 Apr 20 18:12 ..&lt;br /&gt;
drwxr-xr-x  2 root root  4096 Apr 20 18:15 _accounts&lt;br /&gt;
drwx------  2 root root 16384 Apr 20 18:05 lost+found&lt;br /&gt;
drwxr-xr-x  2 root root  4096 Apr 20 18:15 _shares&lt;br /&gt;
ipbrick:/home3# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/Generate_Let%27s_Encrypts_certs_for_IPBrick</id>
		<title>Generate Let's Encrypts certs for IPBrick</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/Generate_Let%27s_Encrypts_certs_for_IPBrick"/>
				<updated>2018-03-01T18:33:42Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: Created page with &amp;quot;To generate a certificate you must do the following:  1 Install certbot-auto (eg. on /home1/_locals/operator)     wget https://dl.eff.org/certbot-auto     chmod a+x certbot-au...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To generate a certificate you must do the following:&lt;br /&gt;
&lt;br /&gt;
1 Install certbot-auto (eg. on /home1/_locals/operator)&lt;br /&gt;
    wget https://dl.eff.org/certbot-auto&lt;br /&gt;
    chmod a+x certbot-auto&lt;br /&gt;
&lt;br /&gt;
    More info on https://certbot.eff.org/#debianwheezy-other&lt;br /&gt;
&lt;br /&gt;
2 Change the virtualhosts that will require certificates and write protect them:&lt;br /&gt;
        eg. 200-200-light.domain.com&lt;br /&gt;
        Insert lines:&lt;br /&gt;
          SSLCertificateFile /etc/letsencrypt/live/ucoip.domain.com/cert.pem&lt;br /&gt;
          SSLCertificateKeyFile /etc/letsencrypt/live/ucoip.domain.com/privkey.pem&lt;br /&gt;
          SSLCertificateChainFile /etc/letsencrypt/live/ucoip.domain.com/chain.pem&lt;br /&gt;
&lt;br /&gt;
        Write protect the files: eg. chattr +i 200-200-light.domain.com&lt;br /&gt;
&lt;br /&gt;
3 If you want to use CAFE Phone or UCoIP Page WebPhone you need:&lt;br /&gt;
        Change file /etc/webrtc2sip/config.xml&lt;br /&gt;
        Modify ssl-certificates section:&lt;br /&gt;
          &amp;lt;ssl-certificates&amp;gt;&lt;br /&gt;
              /etc/letsencrypt/live/ucoip.domain.com/privkey.pem;&lt;br /&gt;
              /etc/letsencrypt/live/ucoip.domain.com/cert.pem;&lt;br /&gt;
              *;&lt;br /&gt;
          &amp;lt;/ssl-certificates&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        Restart service webrtc2sip:&lt;br /&gt;
          /etc/init.d/webrtc2sip stop&lt;br /&gt;
          /etc/init.d/webrtc2sip start&lt;br /&gt;
&lt;br /&gt;
        Write protect the file: eg. chattr +i /etc/webrtc2sip/config.xml&lt;br /&gt;
&lt;br /&gt;
4 If you want to use UCoIP/CAFE Video Conference (WebRTC ) you need:&lt;br /&gt;
        Copy certs into folder /opt/ucoip/site/rtc/signalmaster/ssl and create an empty ca.crt&lt;br /&gt;
            cp /etc/letsencrypt/live/ucoip.domain/privkey.pem /opt/ucoip/site/rtc/signalmaster/ssl/private.key&lt;br /&gt;
            cp /etc/letsencrypt/live/ucoip.domain.com/cert.pem /opt/ucoip/site/rtc/signalmaster/ssl/certificate.crt&lt;br /&gt;
            touch /opt/ucoip/site/rtc/signalmaster/ssl/ca.crt&lt;br /&gt;
 &lt;br /&gt;
        Change permissons and restart service:&lt;br /&gt;
            chown webrtc.webrtc /opt/ucoip/site/rtc/signalmaster/ssl/*&lt;br /&gt;
            /etc/init.d/webrtc_signal stop&lt;br /&gt;
            /etc/init.d/webrtc_signal start&lt;br /&gt;
&lt;br /&gt;
5 Generate the certs with the command:&lt;br /&gt;
        /etc/init.d/apache2 stop&lt;br /&gt;
        /home1/_locals/operator/certbot-auto certonly --standalone -d ucoip.domain.com -d webrtcproxy.domain.com -d .....&lt;br /&gt;
        /etc/init.d/apache2 start&lt;br /&gt;
        The cert will be created on folder: /etc/letsencrypt/live&lt;br /&gt;
&lt;br /&gt;
6 Create a script to renew the cert and call the command on cron.d (Certificates valid for 90 days)&lt;br /&gt;
    Script (eg. /home1/_locals/operator/renewcerts.sh)&lt;br /&gt;
    #!/bin/sh&lt;br /&gt;
    echo &amp;quot;***********&amp;quot; $(date +&amp;quot;%m-%d-%Y - %H:%M&amp;quot;) &amp;gt;&amp;gt; /var/log/le-renew.log&lt;br /&gt;
    /etc/init.d/apache2 stop &amp;gt;&amp;gt; /var/log/le-renew.log&lt;br /&gt;
    /home1/_locals/operator/certbot-auto renew &amp;gt;&amp;gt; /var/log/le-renew.log&lt;br /&gt;
    cp /etc/letsencrypt/live/ucoip.domain.com/privkey.pem /opt/ucoip/site/rtc/signalmaster/ssl/private.key &amp;gt;&amp;gt; /var/log/le-renew.log&lt;br /&gt;
    cp /etc/letsencrypt/live/ucoip.domain.com/cert.pem /opt/ucoip/site/rtc/signalmaster/ssl/certificate.crt &amp;gt;&amp;gt; /var/log/le-renew.log&lt;br /&gt;
    /etc/init.d/apache2 start &amp;gt;&amp;gt; /var/log/le-renew.log&lt;br /&gt;
    /etc/init.d/webrtc_signal stop &amp;gt;&amp;gt; /var/log/le-renew.log&lt;br /&gt;
    /etc/init.d/webrtc_signal start &amp;gt;&amp;gt; /var/log/le-renew.log&lt;br /&gt;
&lt;br /&gt;
7. Place the script in cron.d and add execution permissions to this script&lt;br /&gt;
    vi /etc/cron.d/letsencrypt &lt;br /&gt;
    01 04 */15 * * root /home1/_locals/operator/renewcerts.sh&lt;br /&gt;
    ipbrick:~# ls -la /etc/cron.d/letsencrypt &lt;br /&gt;
    -rw-r--r-- 1 root root 58 Feb 23 16:15 /etc/cron.d/letsencrypt&lt;br /&gt;
&lt;br /&gt;
     chmod 755 /home1/_locals/operator/renewcerts.sh&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPortalDoc_External_MailServer_Integration</id>
		<title>IPortalDoc External MailServer Integration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPortalDoc_External_MailServer_Integration"/>
				<updated>2018-01-16T18:38:35Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page goal is to demonstrate how to integrate iPortalDoc with another mailserver.&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
== iPortalDoc e-mail integration features ==&lt;br /&gt;
iPortalDoc supports the following email integration features:&lt;br /&gt;
* workflows - ''WORKFLOW_NAME@iportaldoc.yourdomain.com''&lt;br /&gt;
** start a new document workflow using the attached file in the incoming e-mail to the WORKFLOW_NAME&lt;br /&gt;
* associated e-mails - default ''REF&amp;lt;document_code&amp;gt;''&lt;br /&gt;
** all e-mails transported through yourcompany mail server, that have ''REF&amp;lt;document_code&amp;gt;'' in the subject and/or in the body, should be copied, archived in iPortalDoc and associated to the document with ''document_code''&lt;br /&gt;
* DBDOCMAILS module&lt;br /&gt;
** selected emails are to be processed by iPortalDoc - to be used to start a new document workflow &lt;br /&gt;
* MAIL ARCHIVING&lt;br /&gt;
** all emails from selected mailboxes are to be processed/archived by iPortalDoc&lt;br /&gt;
 &lt;br /&gt;
== Scenarios ==&lt;br /&gt;
We will analyse the following scenarios:&lt;br /&gt;
* INTERNAL - mailserver is in the LAN, or it is in a private routed network, it has connectivity with the iPortalDoc server&lt;br /&gt;
** SMTP route - it is feasible to implement a SMTP route, so we will prefer this connection type&lt;br /&gt;
* EXTERNAL - mailserver is not in a private routed network, it does not have connectivity with the iPortalDoc server - generic or cloud scenarios&lt;br /&gt;
** POP Connector / fetchmail - mails are delivered in a specific mailbox, iPortalDoc server will download the messages using fetchmail&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= INTERNAL - SMTP Route =&lt;br /&gt;
In this scenario we will configure a SMTP route for iPortalDoc.&lt;br /&gt;
# all mails destinated to &amp;quot;@iportaldoc.yourdomain.com&amp;quot; are to be smtp routed to iPortalDoc server&lt;br /&gt;
&lt;br /&gt;
== Filters ==&lt;br /&gt;
* workflows - this feature is automatically resolved by the smtp routed defined above, no additional settings are required &lt;br /&gt;
* associated e-mails - create an e-mail filter for:&lt;br /&gt;
** e-mails that have expression REF&amp;lt; in the subject or in the body are to be BCC copied to &amp;quot;receivedmail@iportaldoc.yourdomain.com&amp;quot;&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPortalDoc_External_MailServer_Integration</id>
		<title>IPortalDoc External MailServer Integration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPortalDoc_External_MailServer_Integration"/>
				<updated>2018-01-16T18:06:37Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page goal is to demonstrate how to integrate iPortalDoc with another mailserver.&lt;br /&gt;
&lt;br /&gt;
== Scenarios ==&lt;br /&gt;
We will analyse the following scenarios:&lt;br /&gt;
* INTERNAL - mailserver is in the LAN, or it is in a private routed network, it has connectivity with the iPortalDoc server&lt;br /&gt;
** SMTP route - it is feasible to implement a SMTP route&lt;br /&gt;
* EXTERNAL - mailserver is not in a private routed network, it does not have connectivity with the iPortalDoc server - generic or cloud scenarios&lt;br /&gt;
** POP Connector / fetchmail - mails are delivered in a specific mailbox and download , SMTP route is not an option, it is not feasible to implement a SMTP route&lt;br /&gt;
&lt;br /&gt;
= INTERNAL - SMTP Route =&lt;br /&gt;
In this scenario we will configure a SMTP route for iPortalDoc.&lt;br /&gt;
# all mails destinated to &amp;quot;@iportaldoc.yourdomain.com&amp;quot; are to be smtp routed to iPortalDoc server&lt;br /&gt;
&lt;br /&gt;
== Filters ==&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPortalDoc_External_MailServer_Integration</id>
		<title>IPortalDoc External MailServer Integration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPortalDoc_External_MailServer_Integration"/>
				<updated>2018-01-16T17:59:29Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page goal is to demonstrate how to integrate iPortalDoc with another mailserver.&lt;br /&gt;
&lt;br /&gt;
== Scenarios ==&lt;br /&gt;
We will analyse the following scenarios:&lt;br /&gt;
* INTERNAL - mailserver is in the LAN, or it is in a private routed network, it has connectivity with the iPortalDoc server&lt;br /&gt;
** SMTP route - it is feasible to implement a SMTP route&lt;br /&gt;
* EXTERNAL - mailserver is not in a private routed network, it does not have connectivity with the iPortalDoc server - generic or cloud scenarios&lt;br /&gt;
** SMTP route - it is not feasible to implement a SMTP route&lt;br /&gt;
&lt;br /&gt;
= INTERNAL - SMTP Route =&lt;br /&gt;
In this scenario we will configure a SMTP route for iPortalDoc.&lt;br /&gt;
# all mails destinated to &amp;quot;@iportaldoc.yourdomain.com&amp;quot; are to be smtp routed to iPortalDoc server&lt;br /&gt;
#&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPortalDoc_External_MailServer_Integration</id>
		<title>IPortalDoc External MailServer Integration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPortalDoc_External_MailServer_Integration"/>
				<updated>2018-01-16T13:59:46Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: Created page with &amp;quot;This page goal is to demonstrate how to integrate iPortalDoc with another mailserver.  == Scenarios == We will analyse the following scenarios: * INTERNAL - mailserver is in t...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page goal is to demonstrate how to integrate iPortalDoc with another mailserver.&lt;br /&gt;
&lt;br /&gt;
== Scenarios ==&lt;br /&gt;
We will analyse the following scenarios:&lt;br /&gt;
* INTERNAL - mailserver is in the LAN, or it is in a private routed network, it has connectivity with the iPortalDoc server&lt;br /&gt;
** SMTP route - it is feasible to implement a SMTP route&lt;br /&gt;
* EXTERNAL - mailserver is not in a private routed network, it does not have connectivity with the iPortalDoc server - generic or cloud scenarios&lt;br /&gt;
** SMTP route - it is not feasible to implement a SMTP route&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/Migrating_an_iPortalDoc_from_IPBRICK_5.x_to_6.1</id>
		<title>Migrating an iPortalDoc from IPBRICK 5.x to 6.1</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/Migrating_an_iPortalDoc_from_IPBRICK_5.x_to_6.1"/>
				<updated>2017-09-29T15:35:28Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''' ***PAGE ON CONSTRUCTION*** '''&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This procedure is also valid for upgrades from IPBRICK v5.x to v6.1 or greater.&lt;br /&gt;
&lt;br /&gt;
This next procedure will explain how to update an IPBrick version 5.x with iPortalDoc to an IPBrick version 6.1 with iPortalDoc.&lt;br /&gt;
After this migration, iPortalDoc will be in version 4.2.1 running on top of IPBrick version 6.1. After this procedure is fully completed, you can update iPortalDoc to its newer version.&lt;br /&gt;
&lt;br /&gt;
== Before Migrating: ==&lt;br /&gt;
&lt;br /&gt;
Check iPortalDoc's version: iPortalDoc needs to be at least in version 4.2.1 (or greater) before the migration to an IPBrick version 6.1 or greater.&lt;br /&gt;
&lt;br /&gt;
In this procedure, we will assume three possible scenarios in IPBrick version 5.3:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Scenario A - iPortalDoc is installed with version 4.0.1'''&lt;br /&gt;
&lt;br /&gt;
* IPD-400000 | iPortalDoc v4.0&lt;br /&gt;
* IPD-400001 | iPortalDoc v4.0.u1&lt;br /&gt;
&lt;br /&gt;
'''Scenario B - iPortalDoc is installed with version 4.2.1''' &lt;br /&gt;
&lt;br /&gt;
* IPD-420000 | iPortalDoc v4.2&lt;br /&gt;
* IPD-420001 | iPortalDoc v4.2.u1&lt;br /&gt;
&lt;br /&gt;
'''Scenario C - UCoIP is installed with version 3.0'''&lt;br /&gt;
&lt;br /&gt;
* IPD-400000 | iPortalDoc v4.0&lt;br /&gt;
* BIL-200000 | ipbrick-billing - Billing Software v2.0.&lt;br /&gt;
* UFI-300000 | ucoip4iportaldoc - UCoIP for iPortalDoc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Scenarios A and B ===&lt;br /&gt;
&lt;br /&gt;
'''If iPortalDoc is installed with version 4.0.1 (Scenario A) start by installing the necessary updates until it reaches version 4.2.1.'''&lt;br /&gt;
&lt;br /&gt;
* Install:&lt;br /&gt;
# iPortalDoc version 4.0 update 2: iportaldoc-v4_0-2.deb&lt;br /&gt;
# iPortalDoc version 4.0 update 3: iportaldoc-v4_0-3.deb&lt;br /&gt;
# iPortalDoc version 4.0 update 4: iportaldoc-v4_0-4.deb&lt;br /&gt;
# iPortalDoc version 4.0 update 5: iportaldoc-v4_0-5.deb&lt;br /&gt;
#* Apply configurations&lt;br /&gt;
# iPortalDoc version 4.2: iportaldoc-v4_2.deb&lt;br /&gt;
#* Apply configurations&lt;br /&gt;
# iPortalDoc version 4.2 update 1: iportaldoc-v4_2-1.deb (available here: [http://eshop.ipbrick.com/eshop/software_info.php?cPath=3_40_44_108&amp;amp;products_id=784])&lt;br /&gt;
#* Apply configurations&lt;br /&gt;
&lt;br /&gt;
'''If your iPortalDoc is already in version 4.2.1 (Scenario B), or if you have just updated it to this version (Scenario A), you can continue from this point on, without having to install any more updates.'''&lt;br /&gt;
&lt;br /&gt;
* Check IP Contacts version: It needs to be at least in version 4.9 before the migration to an IPBrick version 6.1 (please find the download link on the bottom of this page).&lt;br /&gt;
&lt;br /&gt;
Note: If Contacts is already in version 5.0.1 you don't need to apply any update.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Backup iPortalDoc's DB (command [http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb5])&lt;br /&gt;
&lt;br /&gt;
Eg:&lt;br /&gt;
 ./ipbrickdb_ipb5 --dump --dbname dbdoc --file dump_file_path&lt;br /&gt;
&lt;br /&gt;
* If there's an iPortalDoc Light, update to version 3.2, please follow this by backing up the data&lt;br /&gt;
&lt;br /&gt;
Eg:&lt;br /&gt;
 ./ipbrickdb_ipb5 --dump --dbname dbdoc_leve --file dump_file_path&lt;br /&gt;
&lt;br /&gt;
* Before migrating IPBrick 5.3 we recommend that you update IPBrick version at least till update 11, since this update will install Groupware version 1.2.11-2:&lt;br /&gt;
** IPBrick v5.3 - update 11 [http://eshop.ipbrick.com/eshop/software_info.php?cPath=3_73_6_38&amp;amp;products_id=581]&lt;br /&gt;
&lt;br /&gt;
'''NOTE: Check your browser's version if you are using Internet Explorer. iPortalDoc is fully compatible with Internet Explorer version 9 or higher.'''&lt;br /&gt;
&lt;br /&gt;
''' iPortalDoc is also compatible with Google Chrome and Mozilla Firefox.'''&lt;br /&gt;
&lt;br /&gt;
=== Scenario C - UCoIP is installed with iPortalDoc version 4.0 ===&lt;br /&gt;
&lt;br /&gt;
* Install:&lt;br /&gt;
# iPortalDoc version 4.0 update 1: iportaldoc-v4_0-1.deb&lt;br /&gt;
# iPortalDoc version 4.0 update 2: iportaldoc-v4_0-2.deb&lt;br /&gt;
# iPortalDoc version 4.0 update 3: iportaldoc-v4_0-3.deb&lt;br /&gt;
# iPortalDoc version 4.0 update 4: iportaldoc-v4_0-4.deb&lt;br /&gt;
# iPortalDoc version 4.0 update 5: iportaldoc-v4_0-5.deb&lt;br /&gt;
#* Apply configurations&lt;br /&gt;
# UCoIP Recording version 4 (you may find its link on the bottom of the page)&lt;br /&gt;
#* Apply configurations&lt;br /&gt;
# iPortalDoc version 4.2 update 1: iportaldoc-v4_2-1.deb (available here: [http://eshop.ipbrick.com/eshop/software_info.php?cPath=3_40_44_108&amp;amp;products_id=784])&lt;br /&gt;
#* Apply configurations&lt;br /&gt;
&lt;br /&gt;
* Check IP Contacts version: It needs to be at least in version 4.9 before the migration to an IPBrick version 6.1 (please find the download link on the bottom of this page).&lt;br /&gt;
&lt;br /&gt;
Note: If Contacts is already in version 5.0.1 you don't need to apply any update.&lt;br /&gt;
&lt;br /&gt;
* Backup iPortalDoc's DB (command [http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb5])&lt;br /&gt;
&lt;br /&gt;
Eg:&lt;br /&gt;
 ./ipbrickdb_ipb5 --dump --dbname dbdoc --file dump_file_path&lt;br /&gt;
&lt;br /&gt;
* If there's an iPortalDoc Light, update to version 3.2, please follow this by backing up the data&lt;br /&gt;
&lt;br /&gt;
Eg:&lt;br /&gt;
 ./ipbrickdb_ipb5 --dump --dbname dbdoc_leve --file dump_file_path&lt;br /&gt;
&lt;br /&gt;
* Before migrating IPBrick 5.3 we recommend that you update IPBrick version at least till update 11, since this update will install Groupware version 1.2.11-2:&lt;br /&gt;
** IPBrick v5.3 - update 11 [http://eshop.ipbrick.com/eshop/software_info.php?cPath=3_73_6_38&amp;amp;products_id=581]&lt;br /&gt;
&lt;br /&gt;
'''NOTE: Check your browser's version if you are using Internet Explorer. iPortalDoc is fully compatible with Internet Explorer version 9 or higher.'''&lt;br /&gt;
&lt;br /&gt;
''' iPortalDoc is also compatible with Google Chrome and Mozilla Firefox.'''&lt;br /&gt;
&lt;br /&gt;
== After the installation of IPBrick version 6.1: ==&lt;br /&gt;
&lt;br /&gt;
* Install iPortalDoc v4.2 [http://eshop.ipbrick.com/eshop/software_info.php?cPath=3_40_85&amp;amp;products_id=694]&lt;br /&gt;
'''Note:''' If you have UCoIP, please install UCoIP Recording version 4.0 and skip the step above, since the UCoIP Recording package already includes iPortalDoc v4.2; you may find its link on the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
* Install update 1 for iPortalDoc v4.2 [http://eshop.ipbrick.com/eshop/software_info.php?cPath=3_40_44_108&amp;amp;products_id=802]&lt;br /&gt;
&lt;br /&gt;
Note: If you had any other updates for iPortalDoc installed in version 5.x, you now need to install them again in IPBrick version 6.1.&lt;br /&gt;
&lt;br /&gt;
* If IPBrick 5.x had IP Contacts version 5.0.1 installed, you can update it now to the same version but for IPBrick version 6.1 (please find the link on the bottom of the page).&lt;br /&gt;
&lt;br /&gt;
* Replace IPBrick's configurations that were migrated to IPBrick 6.1.&lt;br /&gt;
&lt;br /&gt;
* Restore iPortalDoc's DB [http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb6]&lt;br /&gt;
&lt;br /&gt;
Eg:&lt;br /&gt;
 ./ipbrickdb_ipb6  --restore --dbname dbdoc          --file /home1/_work/dump_dbdoc.sql&lt;br /&gt;
&lt;br /&gt;
* If there is an iPortalDoc Light, restore the DB&lt;br /&gt;
&lt;br /&gt;
Eg:&lt;br /&gt;
 ./ipbrickdb_ipb6  --restore --ipdoclight --dbname dbdoc_leve --file file_com_dump&lt;br /&gt;
&lt;br /&gt;
* Rebuild iPortalDoc workflow accounts:&lt;br /&gt;
    a) Definitions Menu -&amp;gt; Configuration Interface&lt;br /&gt;
    b) Poplist on the right (Menu) -&amp;gt; Workflows&lt;br /&gt;
    c) Click on the Rebuild button&lt;br /&gt;
&lt;br /&gt;
* Rebuild share &amp;quot;Access&amp;quot; and the account of Associated Emails to Documents, of iPortalDoc:&lt;br /&gt;
    a) Access Share: Definitions -&amp;gt; Configuration Interface-&amp;gt; Build Global FS&lt;br /&gt;
    b) Emails associated to documents: Definitions -&amp;gt; Configuration Interface -&amp;gt; Build Global mailFS&lt;br /&gt;
       (This task is scheduled to be executed at midnight);&lt;br /&gt;
&lt;br /&gt;
* Contacts application: rebuild entities and contacts&lt;br /&gt;
    a) Administration -&amp;gt; Rebuild Contacts&lt;br /&gt;
&lt;br /&gt;
* Update iPortalDoc till the last official update&lt;br /&gt;
&lt;br /&gt;
== Useful links: ==&lt;br /&gt;
&lt;br /&gt;
IPContacts v4.8 update to install in an IPBrick v5 [http://downloads3.ipbrick.com/wiki/ipbrick-contacts_4.8_all.deb]&lt;br /&gt;
&lt;br /&gt;
IPContacts v4.9 update to install in an IPBrick v5 [[Media:Ipbrick-contacts_4.9_all.deb |[7]]]&lt;br /&gt;
&lt;br /&gt;
IPContacts v5.0.1 update to install in an IPBrick v6.1 [http://eshop.ipbrick.com/eshop/software_info.php?cPath=3_73_35&amp;amp;products_id=891]&lt;br /&gt;
&lt;br /&gt;
UCoIP Recording v4.0 update to install in an IPBrick v5 [[http://eshop.ipbrick.com/eshop/software_info.php?cPath=3_40_51&amp;amp;products_id=799[8]]]&lt;br /&gt;
&lt;br /&gt;
Script ipbrickdb_ipb5: [http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb5 |[9]]&lt;br /&gt;
&lt;br /&gt;
md5sum: 7339475f75c10cd7b54347f0cf6a5361&lt;br /&gt;
&lt;br /&gt;
Script ipbrickdb_ipb6: [http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb6 |[10]]&lt;br /&gt;
&lt;br /&gt;
md5sum: 5d071c63f9a0a9a23802682a45f9e9fa&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/UCoIP_DNS/firewall_configuration</id>
		<title>UCoIP DNS/firewall configuration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/UCoIP_DNS/firewall_configuration"/>
				<updated>2017-07-19T09:52:02Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* DNS configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=DNS configuration=&lt;br /&gt;
&lt;br /&gt;
In order to get the full UCoIP concept working at LAN/Internet it's necessary to configure some DNS records at internal and external DNS servers of the company domain. &lt;br /&gt;
&lt;br /&gt;
Next is given an example for the public DNS zone configuration. In that example lets suppose that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DNS domain: domain.com&lt;br /&gt;
IPBrick FQDN: srv001.domain.com&lt;br /&gt;
Public IP associated to IPBrick: 85.86.87.88&lt;br /&gt;
User UCoIP page to create: jsmith.domain.com &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So in this case we need to configure the following DNS records:&lt;br /&gt;
&lt;br /&gt;
A records:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srv001.domain.com.            IN A     85.86.87.88&lt;br /&gt;
voip.domain.com.              IN A     85.86.87.88&lt;br /&gt;
webrtc.domain.com.            IN A     85.86.87.88&lt;br /&gt;
cafe.domain.com.              IN A     85.86.87.88&lt;br /&gt;
ucoip.domain.com.             IN A     85.86.87.88&lt;br /&gt;
im.domain.com.                IN A     85.86.87.88&lt;br /&gt;
iportaldoc.domain.com.        IN A     85.86.87.88&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CNAME records:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
contacts.domain.com.           IN CNAME   srv001.domain.com.&lt;br /&gt;
jwchat.domain.com.             IN CNAME   srv001.domain.com.&lt;br /&gt;
light.domain.com. 	       IN CNAME   srv001.domain.com.&lt;br /&gt;
webphone.domain.com.           IN CNAME   srv001.domain.com.&lt;br /&gt;
groupware.domain.com.	       IN CNAME   srv001.domain.com.&lt;br /&gt;
webmail.domain.com. 	       IN CNAME   srv001.domain.com.&lt;br /&gt;
webrtcproxy.domain.com.        IN CNAME   srv001.domain.com.&lt;br /&gt;
autoconfig.domain.com.         IN CNAME   srv001.domain.com.&lt;br /&gt;
autodiscover.domain.com.       IN CNAME   srv001.domain.com.&lt;br /&gt;
*.domain.com.                  IN CNAME   ucoip.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV records for VoIP (SIP):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_sips._tcp.domain.com.     IN     SRV   1   0   5061   voip.domain.com.&lt;br /&gt;
_sip._tcp.domain.com.      IN     SRV   1   0   5060   voip.domain.com.&lt;br /&gt;
_sip._udp.domain.com.      IN     SRV   1   0   5060   voip.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV records for chat (Jabber/XMPP):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_jabber._tcp.domain.com.       IN SRV 5 0 5269 im.domain.com.&lt;br /&gt;
_xmpp-server._tcp.domain.com.  IN SRV 5 0 5269 im.domain.com.&lt;br /&gt;
_xmpp-client._tcp.domain.com.  IN SRV 5 0 5222 im.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for UCoIP:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_ucoip._tcp.domain.com.        IN SRV 1 0 80   ucoip.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for CAFE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_cafe._tcp.domain.com.         IN SRV 1 0 443  cafe.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for WebRTC:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_webrtc._tcp.domain.com.       IN SRV 1 0 8888 webrtc.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If IPBrick will be the email server, we need to modify/add the MX record:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
domain.com.         IN MX       5     srv001.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SPF - Sender Policy Framework&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
domain.com          IN TXT      &amp;quot;v=spf1 mx ip4:85.86.87.88 -all&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Costumer ISP must add this PTR record at reverse DNS zone:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 88.87.86.85.in-addr.arpa.     IN PTR      srv001.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Firewall/Router configuration=&lt;br /&gt;
&lt;br /&gt;
UCoIP concept uses many services running on their standard ports. IPBrick firewall is prepared to accept all this traffic at public interface (eth1).&lt;br /&gt;
&lt;br /&gt;
But if IPBrick public interface is behind a NAT at Router/Firewall, its necessary to forward the necessary traffic to IPBrick. The list is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
HTTP           - 80 TCP&lt;br /&gt;
HTTPS          - 443 TCP&lt;br /&gt;
SMTP           - 25 TCP&lt;br /&gt;
SIP            - 5060 UDP/TCP&lt;br /&gt;
SIPS           - 5061 TCP&lt;br /&gt;
RTP            - 40000:45000 UDP&lt;br /&gt;
RTP            - 50000:55000 UDP&lt;br /&gt;
RTP            - 60000:65000 UDP&lt;br /&gt;
XMPP-client    - 5222 TCP&lt;br /&gt;
XMPP-server    - 5269 TCP&lt;br /&gt;
XMPPS          - 5223 TCP&lt;br /&gt;
WebRTC         - 8888 TCP&lt;br /&gt;
Webphone       - 10060 UDP/TCP&lt;br /&gt;
Webphone       - 10062 TCP&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: With update04_6.1, it's crucial too to have a Wildcard SSL Certificate. More information here:&lt;br /&gt;
&lt;br /&gt;
[http://eshop.ipbrick.com/eshop/software_info.php?cPath=7_74_16&amp;amp;products_id=907&amp;amp;language=en Update04 security guide]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.ipbrick.com/index.php/How_to_buy_and_configure_a_SSL_certificate_at_IPBrick_6.1 How to buy and configure a SSL certificate at IPBrick]&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/UCoIP_DNS/firewall_configuration</id>
		<title>UCoIP DNS/firewall configuration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/UCoIP_DNS/firewall_configuration"/>
				<updated>2017-07-19T09:51:26Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* DNS configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=DNS configuration=&lt;br /&gt;
&lt;br /&gt;
In order to get the full UCoIP concept working at LAN/Internet it's necessary to configure some DNS records at internal and external DNS servers of the company domain. &lt;br /&gt;
&lt;br /&gt;
Next is given an example for the public DNS zone configuration. In that example lets suppose that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DNS domain: domain.com&lt;br /&gt;
IPBrick FQDN: srv001.domain.com&lt;br /&gt;
Public IP associated to IPBrick: 85.86.87.88&lt;br /&gt;
User UCoIP page to create: jsmith.domain.com &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So in this case we need to configure the following DNS records:&lt;br /&gt;
&lt;br /&gt;
A records:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srv001.domain.com.            IN A     85.86.87.88&lt;br /&gt;
voip.domain.com.              IN A     85.86.87.88&lt;br /&gt;
webrtc.domain.com.            IN A     85.86.87.88&lt;br /&gt;
cafe.domain.com.              IN A     85.86.87.88&lt;br /&gt;
ucoip.domain.com.             IN A     85.86.87.88&lt;br /&gt;
im.domain.com.                IN A     85.86.87.88&lt;br /&gt;
iportaldoc.domain.com.        IN A     85.86.87.88&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CNAME records:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
contacts.domain.com.           IN CNAME   srv001.domain.com.&lt;br /&gt;
jwchat.domain.com.             IN CNAME   srv001.domain.com.&lt;br /&gt;
light.domain.com. 	       IN CNAME   srv001.domain.com.&lt;br /&gt;
webphone.domain.com.           IN CNAME   srv001.domain.com.&lt;br /&gt;
groupware.domain.com.	       IN CNAME   srv001.domain.com.&lt;br /&gt;
webmail.domain.com. 	       IN CNAME   srv001.domain.com.&lt;br /&gt;
webrtcproxy.domain.com.        IN CNAME   srv001.domain.com.&lt;br /&gt;
autoconfig.domain.com.        IN CNAME   srv001.domain.com.&lt;br /&gt;
autodiscover.domain.com.        IN CNAME   srv001.domain.com.&lt;br /&gt;
*.domain.com.                  IN CNAME   ucoip.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV records for VoIP (SIP):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_sips._tcp.domain.com.     IN     SRV   1   0   5061   voip.domain.com.&lt;br /&gt;
_sip._tcp.domain.com.      IN     SRV   1   0   5060   voip.domain.com.&lt;br /&gt;
_sip._udp.domain.com.      IN     SRV   1   0   5060   voip.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV records for chat (Jabber/XMPP):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_jabber._tcp.domain.com.       IN SRV 5 0 5269 im.domain.com.&lt;br /&gt;
_xmpp-server._tcp.domain.com.  IN SRV 5 0 5269 im.domain.com.&lt;br /&gt;
_xmpp-client._tcp.domain.com.  IN SRV 5 0 5222 im.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for UCoIP:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_ucoip._tcp.domain.com.        IN SRV 1 0 80   ucoip.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for CAFE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_cafe._tcp.domain.com.         IN SRV 1 0 443  cafe.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for WebRTC:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_webrtc._tcp.domain.com.       IN SRV 1 0 8888 webrtc.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If IPBrick will be the email server, we need to modify/add the MX record:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
domain.com.         IN MX       5     srv001.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SPF - Sender Policy Framework&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
domain.com          IN TXT      &amp;quot;v=spf1 mx ip4:85.86.87.88 -all&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Costumer ISP must add this PTR record at reverse DNS zone:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 88.87.86.85.in-addr.arpa.     IN PTR      srv001.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Firewall/Router configuration=&lt;br /&gt;
&lt;br /&gt;
UCoIP concept uses many services running on their standard ports. IPBrick firewall is prepared to accept all this traffic at public interface (eth1).&lt;br /&gt;
&lt;br /&gt;
But if IPBrick public interface is behind a NAT at Router/Firewall, its necessary to forward the necessary traffic to IPBrick. The list is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
HTTP           - 80 TCP&lt;br /&gt;
HTTPS          - 443 TCP&lt;br /&gt;
SMTP           - 25 TCP&lt;br /&gt;
SIP            - 5060 UDP/TCP&lt;br /&gt;
SIPS           - 5061 TCP&lt;br /&gt;
RTP            - 40000:45000 UDP&lt;br /&gt;
RTP            - 50000:55000 UDP&lt;br /&gt;
RTP            - 60000:65000 UDP&lt;br /&gt;
XMPP-client    - 5222 TCP&lt;br /&gt;
XMPP-server    - 5269 TCP&lt;br /&gt;
XMPPS          - 5223 TCP&lt;br /&gt;
WebRTC         - 8888 TCP&lt;br /&gt;
Webphone       - 10060 UDP/TCP&lt;br /&gt;
Webphone       - 10062 TCP&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: With update04_6.1, it's crucial too to have a Wildcard SSL Certificate. More information here:&lt;br /&gt;
&lt;br /&gt;
[http://eshop.ipbrick.com/eshop/software_info.php?cPath=7_74_16&amp;amp;products_id=907&amp;amp;language=en Update04 security guide]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.ipbrick.com/index.php/How_to_buy_and_configure_a_SSL_certificate_at_IPBrick_6.1 How to buy and configure a SSL certificate at IPBrick]&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/Configurations_for_OpenVPN_client</id>
		<title>Configurations for OpenVPN client</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/Configurations_for_OpenVPN_client"/>
				<updated>2016-10-04T14:45:24Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* Linux - Native openVPN client */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= SSL =&lt;br /&gt;
&lt;br /&gt;
Each user needs its own certificate. These are generated in the IPBrick communications server.&lt;br /&gt;
Next, we will see the configuration data necessary for several devices.&lt;br /&gt;
&lt;br /&gt;
NOTE: The attached configuration is protected by a unique password for each certificate/user.&lt;br /&gt;
 &lt;br /&gt;
== Smartphones/tablets - install OpenVPN client ==&lt;br /&gt;
&lt;br /&gt;
=== iOS IPhone/IPad : Apple Store (iTunes) : OpenVPN Connect ===&lt;br /&gt;
&lt;br /&gt;
* Download and install the application from:&lt;br /&gt;
** https://itunes.apple.com/pt/app/openvpn-connect/id590379981?mt=8&lt;br /&gt;
* Install the certificate: the certificado.zip needs to be handled and rewritten so it fits all together in a single .ovpn file (see an example here: [[How_to_rewrite_an_OpenVPN_file|How to rewrite an OpenVPN file]]);&lt;br /&gt;
* Send the .ovpn file to the device, click to open and it will be automatically associated to the openVPN APP.&lt;br /&gt;
&lt;br /&gt;
=== Android : Google Play : OpenVPN Connect ===&lt;br /&gt;
&lt;br /&gt;
* Download and install the application from:&lt;br /&gt;
** https://play.google.com/store/apps/details?id=net.openvpn.openvpn&lt;br /&gt;
* Install the certificate: the certificado.zip needs to be handled and rewritten so it fits all together in a single .ovpn file;&lt;br /&gt;
* Send the .ovpn file to the device, click to open and it will be automatically associated to the openVPN APP.&lt;br /&gt;
&lt;br /&gt;
== PCs / Laptops ==&lt;br /&gt;
&lt;br /&gt;
=== MAC OS - TunnelBlick ===&lt;br /&gt;
&lt;br /&gt;
* Download and install the client application from:&lt;br /&gt;
** https://tunnelblick.net/downloads.html&lt;br /&gt;
* Install certificate: decompress the certified file to the folder &amp;quot;certificado&amp;quot;, change the name of the folder for &amp;quot;certificado.tblk&amp;quot; (add the extension .tblk) and you'll notice that, when the folder's name is being changed, the icon of the folder will also change to one associated to tunnelblick, so you'll only have to click on this icon and it will appear an option to install;&lt;br /&gt;
* Start connection: click on the tunnelblick icon in the upper right-hand corner (near the clock) and connect - insert the password of the certificate (as an option, you may save the password by clicking in the keys).&lt;br /&gt;
&lt;br /&gt;
=== Windows XP/7/Vista/8/10 - openVPN ===&lt;br /&gt;
* Download and install the client application from:&lt;br /&gt;
** https://openvpn.net/index.php/download/community-downloads.html&lt;br /&gt;
* Install and configure the desktop shortcut to execute always as an Administrator;&lt;br /&gt;
* Install certificate: decompress the certificado.zip to the folder %programfiles%\openvpn\config\ (check and adjust the path according to the installation);&lt;br /&gt;
* Start connection: &lt;br /&gt;
&lt;br /&gt;
=== Linux - Native openVPN client ===&lt;br /&gt;
&lt;br /&gt;
* openvpn, network-manager-openvpn&lt;br /&gt;
* Ubuntu, Debian : apt-get install network-manager-openvpn-gnome&lt;br /&gt;
&lt;br /&gt;
After installing the client application, it's necessary to &amp;quot;double-click&amp;quot; on the attached file, which contains all the information on VPN configurations.&lt;br /&gt;
&lt;br /&gt;
After completing the configuration, every time you wish to start the VPN connection, you just have to initiate the client application and give instructions to establish the recorded connection. It is also possible to memorize the credentials (password) to open the certificate.&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/UCoIP_DNS/firewall_configuration</id>
		<title>UCoIP DNS/firewall configuration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/UCoIP_DNS/firewall_configuration"/>
				<updated>2016-08-09T16:29:20Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=DNS configuration=&lt;br /&gt;
&lt;br /&gt;
In order to get the full UCoIP concept working at LAN/Internet it's necessary to configure some DNS records at internal and external DNS servers of the company domain. &lt;br /&gt;
&lt;br /&gt;
Next is given an example for the public DNS zone configuration. In that example lets suppose that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DNS domain: domain.com&lt;br /&gt;
IPBrick FQDN: srv001.domain.com&lt;br /&gt;
Public IP associated to IPBrick: 85.86.87.88&lt;br /&gt;
User UCoIP page to create: jsmith.domain.com &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So in this case we need to configure the following DNS records:&lt;br /&gt;
&lt;br /&gt;
A records:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srv001.domain.com.        IN A     85.86.87.88&lt;br /&gt;
voip.domain.com.          IN A     85.86.87.88&lt;br /&gt;
webrtc.domain.com.        IN A     85.86.87.88&lt;br /&gt;
cafe.domain.com.          IN A     85.86.87.88&lt;br /&gt;
ucoip.domain.com.         IN A     85.86.87.88&lt;br /&gt;
im.domain.com.            IN A     85.86.87.88&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CNAME records:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
jwchat.domain.com.             IN CNAME   srv001.domain.com.&lt;br /&gt;
webphone.domain.com.           IN CNAME   srv001.domain.com.&lt;br /&gt;
groupware.domain.com.	       IN CNAME   srv001.domain.com.&lt;br /&gt;
webmail.domain.com. 	       IN CNAME   srv001.domain.com.&lt;br /&gt;
webrtcproxy.domain.com.        IN CNAME   srv001.domain.com.&lt;br /&gt;
*.domain.com.                  IN CNAME   ucoip.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV records for VoIP (SIP):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_sips._tcp.domain.com.     IN     SRV   1   0   5061   voip.domain.com.&lt;br /&gt;
_sip._tcp.domain.com.      IN     SRV   1   0   5060   voip.domain.com.&lt;br /&gt;
_sip._udp.domain.com.      IN     SRV   1   0   5060   voip.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV records for chat (Jabber/XMPP):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_jabber._tcp.domain.com.       IN SRV 5 0 5269 im.domain.com.&lt;br /&gt;
_xmpp-server._tcp.domain.com.  IN SRV 5 0 5269 im.domain.com.&lt;br /&gt;
_xmpp-client._tcp.domain.com.  IN SRV 5 0 5222 im.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for UCoIP:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_ucoip._tcp.domain.com.        IN SRV 1 0 80   ucoip.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for CAFE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_cafe._tcp.domain.com.         IN SRV 1 0 443  cafe.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for WebRTC:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_webrtc._tcp.domain.com.       IN SRV 1 0 8888 webrtc.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If IPBrick will be the email server, we need to modify/add the MX record:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
domain.com.         IN MX       5     srv001.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SPF - Sender Policy Framework&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
domain.com          IN TXT      &amp;quot;v=spf1 mx ip4:85.86.87.88 -all&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Costumer ISP must add this PTR record at reverse DNS zone:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 88.87.86.85.in-addr.arpa.     IN PTR      srv001.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Firewall/Router configuration=&lt;br /&gt;
&lt;br /&gt;
UCoIP concept uses many services running on their standard ports. IPBrick firewall is prepared to accept all this traffic at public interface (eth1).&lt;br /&gt;
&lt;br /&gt;
But if IPBrick public interface is behind a NAT at Router/Firewall, its necessary to forward the necessary traffic to IPBrick. The list is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
HTTP           - 80 TCP&lt;br /&gt;
HTTPS          - 443 TCP&lt;br /&gt;
SMTP           - 25 TCP&lt;br /&gt;
SIP            - 5060 UDP/TCP&lt;br /&gt;
SIPS           - 5061 TCP&lt;br /&gt;
RTP            - 40000:45000 UDP&lt;br /&gt;
RTP            - 50000:55000 UDP&lt;br /&gt;
RTP            - 60000:65000 UDP&lt;br /&gt;
XMPP-client    - 5222 TCP&lt;br /&gt;
XMPP-server    - 5269 TCP&lt;br /&gt;
XMPPS          - 5223 TCP&lt;br /&gt;
WebRTC         - 8888 TCP&lt;br /&gt;
Webphone       - 10060 UDP/TCP&lt;br /&gt;
Webphone       - 10062 TCP&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: With update04_6.1, it's crucial too to have a Wildcard SSL Certificate. More information here:&lt;br /&gt;
&lt;br /&gt;
[http://eshop.ipbrick.com/eshop/software_info.php?cPath=7_74_16&amp;amp;products_id=907&amp;amp;language=en Update04 security guide]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.ipbrick.com/index.php/How_to_buy_and_configure_a_SSL_certificate_at_IPBrick_6.1 How to buy and configure a SSL certificate at IPBrick]&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/UCoIP_DNS/firewall_configuration</id>
		<title>UCoIP DNS/firewall configuration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/UCoIP_DNS/firewall_configuration"/>
				<updated>2016-08-09T16:28:42Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=DNS configuration=&lt;br /&gt;
&lt;br /&gt;
In order to get the full UCoIP concept working at LAN/Internet it's necessary to configure some DNS records at internal and external DNS servers of the company domain. &lt;br /&gt;
&lt;br /&gt;
Next is given an example for the public DNS zone configuration. In that example lets suppose that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DNS domain: domain.com&lt;br /&gt;
IPBrick FQDN: srv001.domain.com&lt;br /&gt;
Public IP associated to IPBrick: 85.86.87.88&lt;br /&gt;
User UCoIP page to create: jsmith.domain.com &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So in this case we need to configure the following DNS records:&lt;br /&gt;
&lt;br /&gt;
A records:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srv001.domain.com.        IN A     85.86.87.88&lt;br /&gt;
voip.domain.com.          IN A     85.86.87.88&lt;br /&gt;
webrtc.domain.com.        IN A     85.86.87.88&lt;br /&gt;
cafe.domain.com.          IN A     85.86.87.88&lt;br /&gt;
ucoip.domain.com.         IN A     85.86.87.88&lt;br /&gt;
im.domain.com.            IN A     85.86.87.88&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CNAME records:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
jwchat.domain.com.             IN CNAME   srv001.domain.com.&lt;br /&gt;
webphone.domain.com.           IN CNAME   srv001.domain.com.&lt;br /&gt;
groupware.domain.com.	       IN CNAME   srv001.domain.com.&lt;br /&gt;
webmail.domain.com. 	       IN CNAME   srv001.domain.com.&lt;br /&gt;
webrtcproxy.domain.com.        IN CNAME   srv001.domain.com.&lt;br /&gt;
*.domain.com.                  IN CNAME   srv001.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV records for VoIP (SIP):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_sips._tcp.domain.com.     IN     SRV   1   0   5061   voip.domain.com.&lt;br /&gt;
_sip._tcp.domain.com.      IN     SRV   1   0   5060   voip.domain.com.&lt;br /&gt;
_sip._udp.domain.com.      IN     SRV   1   0   5060   voip.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV records for chat (Jabber/XMPP):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_jabber._tcp.domain.com.       IN SRV 5 0 5269 im.domain.com.&lt;br /&gt;
_xmpp-server._tcp.domain.com.  IN SRV 5 0 5269 im.domain.com.&lt;br /&gt;
_xmpp-client._tcp.domain.com.  IN SRV 5 0 5222 im.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for UCoIP:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_ucoip._tcp.domain.com.        IN SRV 1 0 80   ucoip.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for CAFE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_cafe._tcp.domain.com.         IN SRV 1 0 443  cafe.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for WebRTC:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_webrtc._tcp.domain.com.       IN SRV 1 0 8888 webrtc.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If IPBrick will be the email server, we need to modify/add the MX record:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
domain.com.         IN MX       5     srv001.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SPF - Sender Policy Framework&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
domain.com          IN TXT      &amp;quot;v=spf1 mx ip4:85.86.87.88 -all&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Costumer ISP must add this PTR record at reverse DNS zone:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 88.87.86.85.in-addr.arpa.     IN PTR      srv001.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Firewall/Router configuration=&lt;br /&gt;
&lt;br /&gt;
UCoIP concept uses many services running on their standard ports. IPBrick firewall is prepared to accept all this traffic at public interface (eth1).&lt;br /&gt;
&lt;br /&gt;
But if IPBrick public interface is behind a NAT at Router/Firewall, its necessary to forward the necessary traffic to IPBrick. The list is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
HTTP           - 80 TCP&lt;br /&gt;
HTTPS          - 443 TCP&lt;br /&gt;
SMTP           - 25 TCP&lt;br /&gt;
SIP            - 5060 UDP/TCP&lt;br /&gt;
SIPS           - 5061 TCP&lt;br /&gt;
RTP            - 40000:45000 UDP&lt;br /&gt;
RTP            - 50000:55000 UDP&lt;br /&gt;
RTP            - 60000:65000 UDP&lt;br /&gt;
XMPP-client    - 5222 TCP&lt;br /&gt;
XMPP-server    - 5269 TCP&lt;br /&gt;
XMPPS          - 5223 TCP&lt;br /&gt;
WebRTC         - 8888 TCP&lt;br /&gt;
Webphone       - 10060 UDP/TCP&lt;br /&gt;
Webphone       - 10062 TCP&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: With update04_6.1, it's crucial too to have a Wildcard SSL Certificate. More information here:&lt;br /&gt;
&lt;br /&gt;
[http://eshop.ipbrick.com/eshop/software_info.php?cPath=7_74_16&amp;amp;products_id=907&amp;amp;language=en Update04 security guide]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.ipbrick.com/index.php/How_to_buy_and_configure_a_SSL_certificate_at_IPBrick_6.1 How to buy and configure a SSL certificate at IPBrick]&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/UCoIP_DNS/firewall_configuration</id>
		<title>UCoIP DNS/firewall configuration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/UCoIP_DNS/firewall_configuration"/>
				<updated>2016-08-09T16:16:10Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* DNS configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=DNS configuration=&lt;br /&gt;
&lt;br /&gt;
In order to get the full UCoIP concept working at LAN/Internet it's necessary to configure some DNS records at internal and external DNS servers of the company domain. &lt;br /&gt;
&lt;br /&gt;
Next is given an example for the public DNS zone configuration. In that example lets suppose that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DNS domain: domain.com&lt;br /&gt;
IPBrick FQDN: srv001.domain.com&lt;br /&gt;
Public IP associated to IPBrick: 85.86.87.88&lt;br /&gt;
User UCoIP page to create: jsmith.domain.com &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So in this case we need to configure the following DNS records:&lt;br /&gt;
&lt;br /&gt;
A records:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srv001.domain.com.        IN A     85.86.87.88&lt;br /&gt;
voip.domain.com.          IN A     85.86.87.88&lt;br /&gt;
webrtc.domain.com.        IN A     85.86.87.88&lt;br /&gt;
cafe.domain.com.          IN A     85.86.87.88&lt;br /&gt;
ucoip.domain.com.         IN A     85.86.87.88&lt;br /&gt;
im.domain.com.            IN A     85.86.87.88&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CNAME records:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
jwchat.domain.com.             IN CNAME   srv001.domain.com.&lt;br /&gt;
webphone.domain.com.           IN CNAME   srv001.domain.com.&lt;br /&gt;
groupware.domain.com.	       IN CNAME   srv001.domain.com.&lt;br /&gt;
webmail.domain.com. 	       IN CNAME   srv001.domain.com.&lt;br /&gt;
jsmith.domain.com.             IN CNAME   srv001.domain.com.&lt;br /&gt;
webrtcproxy.domain.com.        IN CNAME   srv001.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV records for VoIP (SIP):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_sips._tcp.domain.com.     IN     SRV   1   0   5061   voip.domain.com.&lt;br /&gt;
_sip._tcp.domain.com.      IN     SRV   1   0   5060   voip.domain.com.&lt;br /&gt;
_sip._udp.domain.com.      IN     SRV   1   0   5060   voip.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV records for chat (Jabber/XMPP):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_jabber._tcp.domain.com.       IN SRV 5 0 5269 im.domain.com.&lt;br /&gt;
_xmpp-server._tcp.domain.com.  IN SRV 5 0 5269 im.domain.com.&lt;br /&gt;
_xmpp-client._tcp.domain.com.  IN SRV 5 0 5222 im.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for UCoIP:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_ucoip._tcp.domain.com.        IN SRV 1 0 80   ucoip.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for CAFE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_cafe._tcp.domain.com.         IN SRV 1 0 443  cafe.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for WebRTC:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_webrtc._tcp.domain.com.       IN SRV 1 0 8888 webrtc.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If IPBrick will be the email server, we need to modify/add the MX record:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
domain.com.         IN MX       5     srv001.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SPF - Sender Policy Framework&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
domain.com          IN TXT      &amp;quot;v=spf1 mx ip4:85.86.87.88 -all&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Costumer ISP must add this PTR record at reverse DNS zone:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 88.87.86.85.in-addr.arpa.     IN PTR      srv001.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Firewall/Router configuration=&lt;br /&gt;
&lt;br /&gt;
UCoIP concept uses many services running on their standard ports. IPBrick firewall is prepared to accept all this traffic at public interface (eth1).&lt;br /&gt;
&lt;br /&gt;
But if IPBrick public interface is behind a NAT at Router/Firewall, its necessary to forward the necessary traffic to IPBrick. The list is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
HTTP           - 80 TCP&lt;br /&gt;
HTTPS          - 443 TCP&lt;br /&gt;
SMTP           - 25 TCP&lt;br /&gt;
SIP            - 5060 UDP/TCP&lt;br /&gt;
SIPS           - 5061 TCP&lt;br /&gt;
RTP            - 40000:45000 UDP&lt;br /&gt;
RTP            - 50000:55000 UDP&lt;br /&gt;
RTP            - 60000:65000 UDP&lt;br /&gt;
XMPP-client    - 5222 TCP&lt;br /&gt;
XMPP-server    - 5269 TCP&lt;br /&gt;
XMPPS          - 5223 TCP&lt;br /&gt;
WebRTC         - 8888 TCP&lt;br /&gt;
Webphone       - 10060 UDP/TCP&lt;br /&gt;
Webphone       - 10062 TCP&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: With update04_6.1, it's crucial too to have a Wildcard SSL Certificate. More information here:&lt;br /&gt;
&lt;br /&gt;
[http://eshop.ipbrick.com/eshop/software_info.php?cPath=7_74_16&amp;amp;products_id=907&amp;amp;language=en Update04 security guide]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.ipbrick.com/index.php/How_to_buy_and_configure_a_SSL_certificate_at_IPBrick_6.1 How to buy and configure a SSL certificate at IPBrick]&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/UCoIP_DNS/firewall_configuration</id>
		<title>UCoIP DNS/firewall configuration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/UCoIP_DNS/firewall_configuration"/>
				<updated>2016-08-09T16:12:57Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=DNS configuration=&lt;br /&gt;
&lt;br /&gt;
In order to get the full UCoIP concept working at LAN/Internet it's necessary to configure some DNS records at internal and external DNS servers of the company domain. &lt;br /&gt;
&lt;br /&gt;
Next is given an example for the public DNS zone configuration. In that example lets suppose that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DNS domain: domain.com&lt;br /&gt;
IPBrick FQDN: srv001.domain.com&lt;br /&gt;
Public IP associated to IPBrick: 85.86.87.88&lt;br /&gt;
User UCoIP page to create: jsmith.domain.com &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So in this case we need to configure the following DNS records:&lt;br /&gt;
&lt;br /&gt;
A records:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srv001.domain.com.        IN A     85.86.87.88&lt;br /&gt;
voip.domain.com.          IN A     85.86.87.88&lt;br /&gt;
webrtc.domain.com.        IN A     85.86.87.88&lt;br /&gt;
cafe.domain.com.          IN A     85.86.87.88&lt;br /&gt;
ucoip.domain.com.         IN A     85.86.87.88&lt;br /&gt;
im.domain.com.            IN A     85.86.87.88&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CNAME records:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
jwchat.domain.com.             IN CNAME   srv001.domain.com.&lt;br /&gt;
webphone.domain.com.           IN CNAME   srv001.domain.com.&lt;br /&gt;
groupware.domain.com.	       IN CNAME   srv001.domain.com.&lt;br /&gt;
webmail.domain.com. 	       IN CNAME   srv001.domain.com.&lt;br /&gt;
jsmith.domain.com.             IN CNAME   srv001.domain.com.&lt;br /&gt;
webrtcproxy.domain.com.        IN CNAME   srv001.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV records for VoIP (SIP):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_sips._tcp.domain.com.     IN     SRV   1   0   5061   voip.domain.com.&lt;br /&gt;
_sip._tcp.domain.com.      IN     SRV   1   0   5060   voip.domain.com.&lt;br /&gt;
_sip._udp.domain.com.      IN     SRV   1   0   5060   voip.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV records for chat (Jabber/XMPP):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_jabber._tcp.domain.com.       IN SRV 5 0 5269 im.domain.com.&lt;br /&gt;
_xmpp-server._tcp.domain.com.  IN SRV 5 0 5269 im.domain.com.&lt;br /&gt;
_xmpp-client._tcp.domain.com.  IN SRV 5 0 5222 im.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for UCoIP:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_ucoip._tcp.domain.com.        IN SRV 1 0 80   ucoip.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for CAFE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_cafe._tcp.domain.com.         IN SRV 1 0 443  cafe.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for WebRTC:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_webrtc._tcp.domain.com.       IN SRV 1 0 8888 webrtc.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If IPBrick will be the email server, we need to modify/add the MX record:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
domain.com.         IN MX       5     srv001.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Costumer ISP must add this PTR record at reverse DNS zone:&lt;br /&gt;
&lt;br /&gt;
 88.87.86.85.in-addr.arpa.     IN PTR      srv001.domain.com.&lt;br /&gt;
&lt;br /&gt;
=Firewall/Router configuration=&lt;br /&gt;
&lt;br /&gt;
UCoIP concept uses many services running on their standard ports. IPBrick firewall is prepared to accept all this traffic at public interface (eth1).&lt;br /&gt;
&lt;br /&gt;
But if IPBrick public interface is behind a NAT at Router/Firewall, its necessary to forward the necessary traffic to IPBrick. The list is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
HTTP           - 80 TCP&lt;br /&gt;
HTTPS          - 443 TCP&lt;br /&gt;
SMTP           - 25 TCP&lt;br /&gt;
SIP            - 5060 UDP/TCP&lt;br /&gt;
SIPS           - 5061 TCP&lt;br /&gt;
RTP            - 40000:45000 UDP&lt;br /&gt;
RTP            - 50000:55000 UDP&lt;br /&gt;
RTP            - 60000:65000 UDP&lt;br /&gt;
XMPP-client    - 5222 TCP&lt;br /&gt;
XMPP-server    - 5269 TCP&lt;br /&gt;
XMPPS          - 5223 TCP&lt;br /&gt;
WebRTC         - 8888 TCP&lt;br /&gt;
Webphone       - 10060 UDP/TCP&lt;br /&gt;
Webphone       - 10062 TCP&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: With update04_6.1, it's crucial too to have a Wildcard SSL Certificate. More information here:&lt;br /&gt;
&lt;br /&gt;
[http://eshop.ipbrick.com/eshop/software_info.php?cPath=7_74_16&amp;amp;products_id=907&amp;amp;language=en Update04 security guide]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.ipbrick.com/index.php/How_to_buy_and_configure_a_SSL_certificate_at_IPBrick_6.1 How to buy and configure a SSL certificate at IPBrick]&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/UCoIP_DNS/firewall_configuration</id>
		<title>UCoIP DNS/firewall configuration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/UCoIP_DNS/firewall_configuration"/>
				<updated>2016-08-09T16:12:37Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=DNS configuration=&lt;br /&gt;
&lt;br /&gt;
In order to get the full UCoIP concept working at LAN/Internet it's necessary to configure some DNS records at internal and external DNS servers of the company domain. &lt;br /&gt;
&lt;br /&gt;
Next is given an example for the public DNS zone configuration. In that example lets suppose that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DNS domain: domain.com&lt;br /&gt;
IPBrick FQDN: srv001.domain.com&lt;br /&gt;
Public IP associated to IPBrick: 85.86.87.88&lt;br /&gt;
User UCoIP page to create: jsmith.domain.com &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So in this case we need to configure the following DNS records:&lt;br /&gt;
&lt;br /&gt;
A records:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srv001.domain.com.        IN A     85.86.87.88&lt;br /&gt;
voip.domain.com.          IN A     85.86.87.88&lt;br /&gt;
webrtc.domain.com.        IN A     85.86.87.88&lt;br /&gt;
cafe.domain.com.          IN A     85.86.87.88&lt;br /&gt;
ucoip.domain.com.         IN A     85.86.87.88&lt;br /&gt;
im.domain.com.            IN A     85.86.87.88&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CNAME records:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
jwchat.domain.com.             IN CNAME   srv001.domain.com.&lt;br /&gt;
webphone.domain.com.           IN CNAME   srv001.domain.com.&lt;br /&gt;
groupware.domain.com.	   IN CNAME   srv001.domain.com.&lt;br /&gt;
webmail.domain.com. 	   IN CNAME   srv001.domain.com.&lt;br /&gt;
jsmith.domain.com.             IN CNAME   srv001.domain.com.&lt;br /&gt;
webrtcproxy.domain.com.        IN CNAME   srv001.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV records for VoIP (SIP):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_sips._tcp.domain.com.     IN     SRV   1   0   5061   voip.domain.com.&lt;br /&gt;
_sip._tcp.domain.com.      IN     SRV   1   0   5060   voip.domain.com.&lt;br /&gt;
_sip._udp.domain.com.      IN     SRV   1   0   5060   voip.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV records for chat (Jabber/XMPP):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_jabber._tcp.domain.com.       IN SRV 5 0 5269 im.domain.com.&lt;br /&gt;
_xmpp-server._tcp.domain.com.  IN SRV 5 0 5269 im.domain.com.&lt;br /&gt;
_xmpp-client._tcp.domain.com.  IN SRV 5 0 5222 im.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for UCoIP:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_ucoip._tcp.domain.com.        IN SRV 1 0 80   ucoip.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for CAFE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_cafe._tcp.domain.com.         IN SRV 1 0 443  cafe.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for WebRTC:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_webrtc._tcp.domain.com.       IN SRV 1 0 8888 webrtc.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If IPBrick will be the email server, we need to modify/add the MX record:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
domain.com.         IN MX       5     srv001.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Costumer ISP must add this PTR record at reverse DNS zone:&lt;br /&gt;
&lt;br /&gt;
 88.87.86.85.in-addr.arpa.     IN PTR      srv001.domain.com.&lt;br /&gt;
&lt;br /&gt;
=Firewall/Router configuration=&lt;br /&gt;
&lt;br /&gt;
UCoIP concept uses many services running on their standard ports. IPBrick firewall is prepared to accept all this traffic at public interface (eth1).&lt;br /&gt;
&lt;br /&gt;
But if IPBrick public interface is behind a NAT at Router/Firewall, its necessary to forward the necessary traffic to IPBrick. The list is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
HTTP           - 80 TCP&lt;br /&gt;
HTTPS          - 443 TCP&lt;br /&gt;
SMTP           - 25 TCP&lt;br /&gt;
SIP            - 5060 UDP/TCP&lt;br /&gt;
SIPS           - 5061 TCP&lt;br /&gt;
RTP            - 40000:45000 UDP&lt;br /&gt;
RTP            - 50000:55000 UDP&lt;br /&gt;
RTP            - 60000:65000 UDP&lt;br /&gt;
XMPP-client    - 5222 TCP&lt;br /&gt;
XMPP-server    - 5269 TCP&lt;br /&gt;
XMPPS          - 5223 TCP&lt;br /&gt;
WebRTC         - 8888 TCP&lt;br /&gt;
Webphone       - 10060 UDP/TCP&lt;br /&gt;
Webphone       - 10062 TCP&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: With update04_6.1, it's crucial too to have a Wildcard SSL Certificate. More information here:&lt;br /&gt;
&lt;br /&gt;
[http://eshop.ipbrick.com/eshop/software_info.php?cPath=7_74_16&amp;amp;products_id=907&amp;amp;language=en Update04 security guide]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.ipbrick.com/index.php/How_to_buy_and_configure_a_SSL_certificate_at_IPBrick_6.1 How to buy and configure a SSL certificate at IPBrick]&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/Migrating_an_iPortalDoc_from_IPBRICK_5.x_to_6</id>
		<title>Migrating an iPortalDoc from IPBRICK 5.x to 6</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/Migrating_an_iPortalDoc_from_IPBRICK_5.x_to_6"/>
				<updated>2016-06-20T12:02:11Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
= Before Migrating: =&lt;br /&gt;
&lt;br /&gt;
- You need to have IPBrick configurations migrated to version 6.0. Please send the last configuration file of IPBrick server v5.x to support@ipbrick.com and wait for the reply with a configurations file ready to be uploaded to version 6.0.&lt;br /&gt;
&lt;br /&gt;
- Check iPortalDoc version: iPortalDoc need to be in version 4.2.1 (or greater) before the migration to an IPBrick version 6.0 or greater.&lt;br /&gt;
&lt;br /&gt;
iPortalDoc update 1 for IPbrick versions 5.x is available here: [http://eshop.ipbrick.com/eshop/software_info.php?cPath=3_40_44_108&amp;amp;products_id=784]&lt;br /&gt;
&lt;br /&gt;
Note: If iPortalDoc is in version 4.2.1 you don't need to apply any update now.&lt;br /&gt;
&lt;br /&gt;
- Check IPBRICK Contacts version:  Contacts need to be in version 4.3 before the migration to an IPBrick version 6.0. &lt;br /&gt;
&lt;br /&gt;
Note: If Contacts is in version 4.4 or greater you don't need to apply any update now.&lt;br /&gt;
&lt;br /&gt;
- Backup the DB (command [http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb5])&lt;br /&gt;
&lt;br /&gt;
Eg:&lt;br /&gt;
 ./ipbrickdb_ipb5 --dump --dbname dbdoc --file dump_file_path&lt;br /&gt;
&lt;br /&gt;
- If there's an IPortalDoc Light, update until version 3.2, please follow this by backing up the data&lt;br /&gt;
&lt;br /&gt;
Eg:&lt;br /&gt;
 ./ipbrickdb_ipb5 --dump --dbname dbdoc_leve --file dump_file_path&lt;br /&gt;
&lt;br /&gt;
'''NOTE: Check your browsers version if you are using Internet Explorer. iPortalDoc is fully compatible with Internet Explorer version 9 or greater.'''&lt;br /&gt;
&lt;br /&gt;
iPortalDoc is compatible with Google Chrome and Mozilla Firefox.&lt;br /&gt;
&lt;br /&gt;
= After the installation of IPBrick version 6.0: =&lt;br /&gt;
&lt;br /&gt;
- Install iPortalDoc v4.2 [http://eshop.ipbrick.com/eshop/software_info.php?cPath=3_40_85&amp;amp;products_id=694]&lt;br /&gt;
&lt;br /&gt;
- Install update 1 [http://eshop.ipbrick.com/eshop/software_info.php?cPath=3_40_44_108&amp;amp;products_id=785]&lt;br /&gt;
&lt;br /&gt;
After the installation of IPBrick v6.0 and iPortalDoc v4.2.1 the next step will be to replace IPBrick configurations file that you have previous received from our support. Please upload that configrations file and replace those configurations.&lt;br /&gt;
&lt;br /&gt;
If there are any updates that need to be installed in order to have a successful configuration replacement, you will be presented with that information. Follow the instructions given and install all the necessary updates.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
- Restore the dbdoc DB [http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb6]&lt;br /&gt;
&lt;br /&gt;
Eg:&lt;br /&gt;
 ./ipbrickdb_ipb6  --restore --dbname dbdoc          --file /home1/_work/dump_dbdoc.sql&lt;br /&gt;
&lt;br /&gt;
- If there is an iPortalDoc Light, restore the DB&lt;br /&gt;
&lt;br /&gt;
Eg:&lt;br /&gt;
 ./ipbrickdb_ipb6  --restore --ipdoclight --dbname dbdoc_leve --file file_com_dump&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Rebuild iPortalDoc workflow accounts:&lt;br /&gt;
    a) Definitions Menu -&amp;gt; Configuration Interface&lt;br /&gt;
    b) Poplist on the right (Menu) -&amp;gt; Workflows&lt;br /&gt;
    c) Click on the Rebuild button&lt;br /&gt;
&lt;br /&gt;
- Rebuild share &amp;quot;Access&amp;quot; and the account of Associated Emails to Documents, of iPortalDoc:&lt;br /&gt;
    a) Access Share: Definitions -&amp;gt; Configuration Interface-&amp;gt; Build Global FS&lt;br /&gt;
    b) Emails associated to documents: Definitions -&amp;gt; Configuration Interface -&amp;gt; Build Global mailFS&lt;br /&gt;
       (This task is scheduled to be executed at midnight);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Useful links: =&lt;br /&gt;
&lt;br /&gt;
IPContacts v4.3 update to install in an IPBrick v5 [http://downloads3.ipbrick.com/ipbrick-contacts_4.3_all_IPBrick-v5.deb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IPContacts v4.4 update to install in an IPBrick v6.0 [http://downloads3.ipbrick.com/wiki/contacts4ipbrick_4.4_all.deb]&lt;br /&gt;
&lt;br /&gt;
IPContacts v4.5 update to install in an IPBrick v6.0 [http://downloads3.ipbrick.com/wiki/contacts4ipbrick_4.5_all.deb]&lt;br /&gt;
&lt;br /&gt;
IPContacts v4.6 update to install in an IPBrick v6.0 [http://downloads3.ipbrick.com/wiki/contacts4ipbrick_4.6_all.deb]&lt;br /&gt;
&lt;br /&gt;
IPContacts v4.7 update to install in an IPBrick v6.0 [http://downloads3.ipbrick.com/wiki/contacts4ipbrick_4.7_all.deb]&lt;br /&gt;
&lt;br /&gt;
IPContacts v4.8 update to install in an IPBrick v6.0 [http://downloads3.ipbrick.com/wiki/contacts4ipbrick_4.8_all.deb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Script ipbrickdb_ipb5: [http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb5]&lt;br /&gt;
&lt;br /&gt;
md5sum: 7339475f75c10cd7b54347f0cf6a5361&lt;br /&gt;
&lt;br /&gt;
Script ipbrickdb_ipb6: [http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb6]&lt;br /&gt;
&lt;br /&gt;
md5sum: 5d071c63f9a0a9a23802682a45f9e9fa&lt;br /&gt;
&lt;br /&gt;
= Known Issues =&lt;br /&gt;
&lt;br /&gt;
== Licence Error ==&lt;br /&gt;
Problem: After restoring /home1/_dbdoc and the database dump, when you try to access IPortalDoc web interface you get an error in IPortalDoc homepage.&lt;br /&gt;
&lt;br /&gt;
Solution: remove the old licence files, delete files:&lt;br /&gt;
* /home1/_dbdoc/ficheiros/erro_acesso1.php&lt;br /&gt;
* /home1/_dbdoc/ficheiros/erro_acesso2.php&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 root@ipbrick:~# rm /home1/_dbdoc/ficheiros/erro_acesso1.php&lt;br /&gt;
 root@ipbrick:~# rm /home1/_dbdoc/ficheiros/erro_acesso2.php&lt;br /&gt;
&lt;br /&gt;
Afterwards you can access to IPortalDoc web interface, you are now prompted to insert a new valid licence. Please refer to IPortalDoc Installation manual, licence activation procedure.&lt;br /&gt;
&lt;br /&gt;
== Other Issues ==&lt;br /&gt;
If you get different error messages, please report to support@iportaldoc.com&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
In case of the foll&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration</id>
		<title>IPBrick Disk migration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration"/>
				<updated>2016-05-12T17:54:43Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* Procedure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is to assist the IT IPBRICK administrator in the process of migrating a running IPBRICK installation from:&lt;br /&gt;
* scenario 1 : one server machine - one disk to another disk on the same server machine&lt;br /&gt;
* scenario 2 : two server machine - one disk to another disk on a different server machine&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''ATTENTION: This is an advanced procedure. The tasks described bellow are to be performed by an IT technician familiar with IPBRICK.IC operating system architecture and linux command line interface. This guide refers to the IPBRICK installation manual and the disaster recovery procedure. Before starting please make sure that you have an up to date backup of all data files, databases and configurations. Proceed at your own risk.'''&lt;br /&gt;
&lt;br /&gt;
=On the original server machine=&lt;br /&gt;
On the original installation, apply configurations and download/save a backup copy configurations file to your Desktop. (Advanced Configurations -&amp;gt; Disaster Recovery -&amp;gt; Download : select the last one with the current timestamp).&lt;br /&gt;
&lt;br /&gt;
Just stop the the services you use.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/init.d/systemmonitor stop&lt;br /&gt;
/etc/init.d/asterisk stop&lt;br /&gt;
/etc/init.d/apache2 stop&lt;br /&gt;
/etc/init.d/ejabberd stop&lt;br /&gt;
/etc/init.d/qmail stop&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Execute this command to backup all the databases.&lt;br /&gt;
* IPBRICK.OS version 6.x or above&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/system/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC versions: 5.3, 5.4 or 5.5&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/ipbox/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== IPortalDoc ==&lt;br /&gt;
If you have IPortalDoc installed, you must backup this database separatelly.&lt;br /&gt;
* IPBRICK.OS version 6.x or above - use '''ipbrickdb_ipb6'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# wget http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb6&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb6 --dump --dbname dbdoc --file dbdoc_20160512_1700.sql&lt;br /&gt;
&lt;br /&gt;
STARTING DUMP OF DATABASE dbdoc TO FILE dbdoc_20160512_1717.sql&lt;br /&gt;
&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# ls -al dbdoc_20160512_1700.sql&lt;br /&gt;
-rw-r--r--  1 root root 570695550 May 12 17:20 dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC version 5.x - use '''ipbrickdb_ipb5'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# wget http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb5&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb5 --dump --dbname dbdoc --file dbdoc_20160512_1700.sql&lt;br /&gt;
&lt;br /&gt;
STARTING DUMP OF DATABASE dbdoc TO FILE dbdoc_20160512_1717.sql&lt;br /&gt;
&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# ls -al dbdoc_20160512_1700.sql&lt;br /&gt;
-rw-r--r--  1 root root 570695550 May 12 17:20 dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Scenario 1 - only one server machine=&lt;br /&gt;
Procedure:&lt;br /&gt;
* shutdown the server machine&lt;br /&gt;
* remove/detach the original (old) disk from the server&lt;br /&gt;
* install/attach the replacement (new) disk&lt;br /&gt;
* install the IPBRICK.IC operating system (please refer to IPBRICK.IC installation manual)&lt;br /&gt;
** perform the first boot, proceed with initial setup (FQDN, IP)&lt;br /&gt;
** after finishing installation and initial configuration proceed to the next step&lt;br /&gt;
* with the server power on, connect the old (original) disk using a USB connector&lt;br /&gt;
** now at the command line you can check for the disks&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fdisk -l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* confirm that you have 2 (two) disks: sda (new internal disk) and sdb (old disk connected via usb)&lt;br /&gt;
** you shoudl  be able to identify the partition tables&lt;br /&gt;
* create two temporary folders to map/mount the work areas from the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /old_home1&lt;br /&gt;
mkdir /old_home2&lt;br /&gt;
ls /old_home* -al&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Then we need to mount the partitions we need to copy.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mount /dev/sdb7 /old_home1&lt;br /&gt;
mount /dev/sdb8 /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Now lets start the rsync&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rsync -aAuv /old_home1/ /home1/ &amp;gt; /tmp/rsync_home1.log 2&amp;gt; /tmp/rsync_home1.err &amp;amp;&lt;br /&gt;
rsync -aAuv /old_home2/ /home2/ &amp;gt; /tmp/rsync_home2.log 2&amp;gt; /tmp/rsync_home2.err &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* You can see the logs in these files (log is normal output, err is for status warning)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tail /tmp/rsync_home1.log&lt;br /&gt;
tail /tmp/rsync_home1.err&lt;br /&gt;
tail /tmp/rsync_home2.log&lt;br /&gt;
tail /tmp/rsync_home2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* When the rsync process finishes, you can unmap/unmount the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
umount /old_home1&lt;br /&gt;
umount /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
* after successfull unmount you can disconnect the old disk (usb)&lt;br /&gt;
** NOTE: we recommend you to keep the old disk safe until this procedure is completly finished (backup procedure)&lt;br /&gt;
* Now please access to web interface, insert and replace the configurations file that you have previously saved on your desktop&lt;br /&gt;
** Please refer to the installation manual and/or disaster recover procedure in order to perform settings replacement&lt;br /&gt;
** The server machine performs a reboot&lt;br /&gt;
* After the server boot up, go to IPBRICK web interface, Advanced configurations -&amp;gt; Disaster Recovery -&amp;gt; Aplications -&amp;gt; Databases : for each database, click on the database name, then you get a listing of all the available backups, click on the last timestamp (click on the timestamp, not on the download link), and click on Restore to proceed to restore.&lt;br /&gt;
* When this Finnish test the services you have on IPBrick&lt;br /&gt;
* For the last step you need to re-activate your license - Advanced configurations -&amp;gt; IPBrick -&amp;gt; Web Access : License activation (please refer to the installation manual, license activation)&lt;br /&gt;
&lt;br /&gt;
=Scenario 2 - two server machine=&lt;br /&gt;
&lt;br /&gt;
== Second server installation ==&lt;br /&gt;
Install the IPBrick on the new machine (refer to IPBRICK.IC installation manual)&lt;br /&gt;
** NOTE: you must install exactly the same software version, this means that you must use the same IPBRICK.OS version and the exact same list of IPBRICK packages and/or updates&lt;br /&gt;
&lt;br /&gt;
'''NOTE - Licence Activation''' - during this procedure you will need to reactivate your product, please send file.dat to email address support@ipbrick.com requesting licence activation - to (re)activate a licence you are required to have a valid maintenance/software assurance contract. &lt;br /&gt;
&lt;br /&gt;
== Procedure == &lt;br /&gt;
EX: IPBrick1 New (192.168.69.199) and IPBrick2 OLD (192.168.69.200)&lt;br /&gt;
&lt;br /&gt;
On machine IPBrick1 generate ssh key:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cd /root&lt;br /&gt;
ipbrick1:~# ssh-keygen -t rsa&lt;br /&gt;
#assume default location /root/.ssh/id_rsa&lt;br /&gt;
#enter empty passphrase&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/root/.ssh/id_rsa): &lt;br /&gt;
Enter passphrase (empty for no passphrase): &lt;br /&gt;
Enter same passphrase again: &lt;br /&gt;
Your identification has been saved in /root/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /root/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
3d:90:bf:f3:95:b3:96:6f:9d:90:95:98:69:fd:fb:0b root@ipbrick1&lt;br /&gt;
The key's randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|                 |&lt;br /&gt;
|         .       |&lt;br /&gt;
|        o     = .|&lt;br /&gt;
|         +   = + |&lt;br /&gt;
|        S + . o .|&lt;br /&gt;
|           o o ..|&lt;br /&gt;
|          o  E=.+|&lt;br /&gt;
|           o .+=o|&lt;br /&gt;
|            ...+=|&lt;br /&gt;
+-----------------+&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy contents of public key from IPBrick1 to IPBrick2.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cat /root/ssh/id_rsa.pub &lt;br /&gt;
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pC&lt;br /&gt;
tg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynRe&lt;br /&gt;
aiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZP&lt;br /&gt;
VkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Select and copy the output/contents of file id_rsa.pub from IPBrick1 as example above, install it on IPBrick2. Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir -p /home1/_ssh/root/.ssh&lt;br /&gt;
ipbrick2:~# echo &amp;quot;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pC&lt;br /&gt;
tg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynRe&lt;br /&gt;
aiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZP&lt;br /&gt;
VkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&amp;quot; &amp;gt;&amp;gt; /home1/_ssh/root/.ssh/authorized_keys&lt;br /&gt;
ipbrick2:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the first root ssh access from ipbrick1 to ipbrick2 using the ssh key.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# ssh -i /root/.ssh/id_rsa root@192.168.69.200&lt;br /&gt;
The authenticity of host '192' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? ^C&lt;br /&gt;
ipbrick1:~# ssh -i /root/.ssh/id_rsa root@localhost&lt;br /&gt;
The authenticity of host '192.168.69.200 (192.168.69.200)' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? yes&lt;br /&gt;
Warning: Permanently added '192.168.69.200' (RSA) to the list of known hosts.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++: System Info :+++++++++++++++++++++++++++++++++&lt;br /&gt;
+         FQDN =  ipbrick2.domain.com&lt;br /&gt;
+   IP address =  192.168.69.200&lt;br /&gt;
+       Kernel =  3.2.0-4-amd64&lt;br /&gt;
+       Uptime =  10:05:02 up 458 days, 32 min, 10 users,  load average: 3.04, 2.51, 2.20&lt;br /&gt;
+   Total CPUs =  4 x Architecture x86_64 @ 2399.734 Hz &lt;br /&gt;
+ Total Memory =  16470664 kB&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ipbrick2:~# logout&lt;br /&gt;
Connection to 192.168.69.200 closed.&lt;br /&gt;
ipbrick1:~#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can access as root from ipbrick1 (NEW, 192.168.69.199)  to ipbrick2 (OLD, 192.168.69.200).&lt;br /&gt;
&lt;br /&gt;
Now lets start the rsync on IPBrick1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home1/ /home1/ &amp;gt; rh1.log 2&amp;gt; rh1.err&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home2/ /home2/ &amp;gt; rh2.log 2&amp;gt; rh2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the logs in this file -&amp;gt; rsync_home1.log&lt;br /&gt;
Or the errors in this file -&amp;gt; rsync_home1.err&lt;br /&gt;
&lt;br /&gt;
Wen the rsync is finish access to web interface and then insert and replace the configuration that you save on your desktop.&lt;br /&gt;
&lt;br /&gt;
After replacing, go to Advanced configuration -&amp;gt; disaster recovery -&amp;gt; aplication -&amp;gt; databases -&amp;gt; and replace the last one.&lt;br /&gt;
&lt;br /&gt;
== IPortalDoc ==&lt;br /&gt;
If you have IPortalDoc installed, you must now restore the database backup separatelly. This procedure is now executed in the new server (NOTE that after replacing configurations this server is now called ipbrick2, just like the original server.)&lt;br /&gt;
* IPBRICK.OS version 6.x or above - use '''ipbrickdb_ipb6'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb6 --restore --dbname dbdoc --file /home2/_backup_db_dbdoc/dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC version 5.3, 5.4 or 5.5 - use '''ipbrickdb_ipb5'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb5 --restore --dbname dbdoc --file /home2/_backup_db_dbdoc/dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Go to IPortalDoc Web interface, login with an administrator account, &lt;br /&gt;
* rebuild iPortalDoc workflow accounts:&lt;br /&gt;
** a) Definitions Menu -&amp;gt; Configuration Interface&lt;br /&gt;
** b) Poplist on the right (Menu) -&amp;gt; Workflows&lt;br /&gt;
** c) Click on the Rebuild button&lt;br /&gt;
* rebuild share &amp;quot;Access&amp;quot; and the account of Associated Emails to Documents, of iPortalDoc:&lt;br /&gt;
** a) Access Share: Definitions -&amp;gt; Configuration Interface-&amp;gt; Build Global FS&lt;br /&gt;
** b) Emails associated to documents: Definitions -&amp;gt; Configuration Interface -&amp;gt; Build Global mailFS&lt;br /&gt;
*** (This task is scheduled to be executed at midnight);&lt;br /&gt;
&lt;br /&gt;
Go to IPContacts application, login with an administrator account&lt;br /&gt;
* rebuild entities and contacts&lt;br /&gt;
** a) Administration -&amp;gt; Rebuild Contacts&lt;br /&gt;
&lt;br /&gt;
= Finish =&lt;br /&gt;
Now it is time to test and check all services.&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration</id>
		<title>IPBrick Disk migration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration"/>
				<updated>2016-05-12T17:43:29Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* Scenario 2 - two server machine */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is to assist the IT IPBRICK administrator in the process of migrating a running IPBRICK installation from:&lt;br /&gt;
* scenario 1 : one server machine - one disk to another disk on the same server machine&lt;br /&gt;
* scenario 2 : two server machine - one disk to another disk on a different server machine&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''ATTENTION: This is an advanced procedure. The tasks described bellow are to be performed by an IT technician familiar with IPBRICK.IC operating system architecture and linux command line interface. This guide refers to the IPBRICK installation manual and the disaster recovery procedure. Before starting please make sure that you have an up to date backup of all data files, databases and configurations. Proceed at your own risk.'''&lt;br /&gt;
&lt;br /&gt;
=On the original server machine=&lt;br /&gt;
On the original installation, apply configurations and download/save a backup copy configurations file to your Desktop. (Advanced Configurations -&amp;gt; Disaster Recovery -&amp;gt; Download : select the last one with the current timestamp).&lt;br /&gt;
&lt;br /&gt;
Just stop the the services you use.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/init.d/systemmonitor stop&lt;br /&gt;
/etc/init.d/asterisk stop&lt;br /&gt;
/etc/init.d/apache2 stop&lt;br /&gt;
/etc/init.d/ejabberd stop&lt;br /&gt;
/etc/init.d/qmail stop&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Execute this command to backup all the databases.&lt;br /&gt;
* IPBRICK.OS version 6.x or above&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/system/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC versions: 5.3, 5.4 or 5.5&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/ipbox/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== IPortalDoc ==&lt;br /&gt;
If you have IPortalDoc installed, you must backup this database separatelly.&lt;br /&gt;
* IPBRICK.OS version 6.x or above - use '''ipbrickdb_ipb6'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# wget http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb6&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb6 --dump --dbname dbdoc --file dbdoc_20160512_1700.sql&lt;br /&gt;
&lt;br /&gt;
STARTING DUMP OF DATABASE dbdoc TO FILE dbdoc_20160512_1717.sql&lt;br /&gt;
&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# ls -al dbdoc_20160512_1700.sql&lt;br /&gt;
-rw-r--r--  1 root root 570695550 May 12 17:20 dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC version 5.x - use '''ipbrickdb_ipb5'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# wget http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb5&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb5 --dump --dbname dbdoc --file dbdoc_20160512_1700.sql&lt;br /&gt;
&lt;br /&gt;
STARTING DUMP OF DATABASE dbdoc TO FILE dbdoc_20160512_1717.sql&lt;br /&gt;
&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# ls -al dbdoc_20160512_1700.sql&lt;br /&gt;
-rw-r--r--  1 root root 570695550 May 12 17:20 dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Scenario 1 - only one server machine=&lt;br /&gt;
Procedure:&lt;br /&gt;
* shutdown the server machine&lt;br /&gt;
* remove/detach the original (old) disk from the server&lt;br /&gt;
* install/attach the replacement (new) disk&lt;br /&gt;
* install the IPBRICK.IC operating system (please refer to IPBRICK.IC installation manual)&lt;br /&gt;
** perform the first boot, proceed with initial setup (FQDN, IP)&lt;br /&gt;
** after finishing installation and initial configuration proceed to the next step&lt;br /&gt;
* with the server power on, connect the old (original) disk using a USB connector&lt;br /&gt;
** now at the command line you can check for the disks&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fdisk -l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* confirm that you have 2 (two) disks: sda (new internal disk) and sdb (old disk connected via usb)&lt;br /&gt;
** you shoudl  be able to identify the partition tables&lt;br /&gt;
* create two temporary folders to map/mount the work areas from the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /old_home1&lt;br /&gt;
mkdir /old_home2&lt;br /&gt;
ls /old_home* -al&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Then we need to mount the partitions we need to copy.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mount /dev/sdb7 /old_home1&lt;br /&gt;
mount /dev/sdb8 /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Now lets start the rsync&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rsync -aAuv /old_home1/ /home1/ &amp;gt; /tmp/rsync_home1.log 2&amp;gt; /tmp/rsync_home1.err &amp;amp;&lt;br /&gt;
rsync -aAuv /old_home2/ /home2/ &amp;gt; /tmp/rsync_home2.log 2&amp;gt; /tmp/rsync_home2.err &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* You can see the logs in these files (log is normal output, err is for status warning)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tail /tmp/rsync_home1.log&lt;br /&gt;
tail /tmp/rsync_home1.err&lt;br /&gt;
tail /tmp/rsync_home2.log&lt;br /&gt;
tail /tmp/rsync_home2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* When the rsync process finishes, you can unmap/unmount the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
umount /old_home1&lt;br /&gt;
umount /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
* after successfull unmount you can disconnect the old disk (usb)&lt;br /&gt;
** NOTE: we recommend you to keep the old disk safe until this procedure is completly finished (backup procedure)&lt;br /&gt;
* Now please access to web interface, insert and replace the configurations file that you have previously saved on your desktop&lt;br /&gt;
** Please refer to the installation manual and/or disaster recover procedure in order to perform settings replacement&lt;br /&gt;
** The server machine performs a reboot&lt;br /&gt;
* After the server boot up, go to IPBRICK web interface, Advanced configurations -&amp;gt; Disaster Recovery -&amp;gt; Aplications -&amp;gt; Databases : for each database, click on the database name, then you get a listing of all the available backups, click on the last timestamp (click on the timestamp, not on the download link), and click on Restore to proceed to restore.&lt;br /&gt;
* When this Finnish test the services you have on IPBrick&lt;br /&gt;
* For the last step you need to re-activate your license - Advanced configurations -&amp;gt; IPBrick -&amp;gt; Web Access : License activation (please refer to the installation manual, license activation)&lt;br /&gt;
&lt;br /&gt;
=Scenario 2 - two server machine=&lt;br /&gt;
&lt;br /&gt;
== Second server installation ==&lt;br /&gt;
Install the IPBrick on the new machine (refer to IPBRICK.IC installation manual)&lt;br /&gt;
** NOTE: you must install exactly the same software version, this means that you must use the same IPBRICK.OS version and the exact same list of IPBRICK packages and/or updates&lt;br /&gt;
&lt;br /&gt;
'''NOTE - Licence Activation''' - during this procedure you will need to reactivate your product, please send file.dat to email address support@ipbrick.com requesting licence activation - to (re)activate a licence you are required to have a valid maintenance/software assurance contract. &lt;br /&gt;
&lt;br /&gt;
== Procedure == &lt;br /&gt;
EX: IPBrick1 New (192.168.69.199) and IPBrick2 OLD (192.168.69.200)&lt;br /&gt;
&lt;br /&gt;
On machine IPBrick1 generate ssh key:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cd /root&lt;br /&gt;
ipbrick1:~# ssh-keygen -t rsa&lt;br /&gt;
#assume default location /root/.ssh/id_rsa&lt;br /&gt;
#enter empty passphrase&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/root/.ssh/id_rsa): &lt;br /&gt;
Enter passphrase (empty for no passphrase): &lt;br /&gt;
Enter same passphrase again: &lt;br /&gt;
Your identification has been saved in /root/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /root/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
3d:90:bf:f3:95:b3:96:6f:9d:90:95:98:69:fd:fb:0b root@ipbrick1&lt;br /&gt;
The key's randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|                 |&lt;br /&gt;
|         .       |&lt;br /&gt;
|        o     = .|&lt;br /&gt;
|         +   = + |&lt;br /&gt;
|        S + . o .|&lt;br /&gt;
|           o o ..|&lt;br /&gt;
|          o  E=.+|&lt;br /&gt;
|           o .+=o|&lt;br /&gt;
|            ...+=|&lt;br /&gt;
+-----------------+&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy contents of public key from IPBrick1 to IPBrick2.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cat /root/ssh/id_rsa.pub &lt;br /&gt;
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pC&lt;br /&gt;
tg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynRe&lt;br /&gt;
aiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZP&lt;br /&gt;
VkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Select and copy the output/contents of file id_rsa.pub from IPBrick1 as example above, install it on IPBrick2. Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir -p /home1/_ssh/root/.ssh&lt;br /&gt;
ipbrick2:~# echo &amp;quot;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pC&lt;br /&gt;
tg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynRe&lt;br /&gt;
aiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZP&lt;br /&gt;
VkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&amp;quot; &amp;gt;&amp;gt; /home1/_ssh/root/.ssh/authorized_keys&lt;br /&gt;
ipbrick2:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the first root ssh access from ipbrick1 to ipbrick2 using the ssh key.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# ssh -i /root/.ssh/id_rsa root@192.168.69.200&lt;br /&gt;
The authenticity of host '192' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? ^C&lt;br /&gt;
atlas:~# ssh -i /root/.ssh/id_rsa root@localhost&lt;br /&gt;
The authenticity of host '192.168.69.200 (192.168.69.200)' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? yes&lt;br /&gt;
Warning: Permanently added '192.168.69.200' (RSA) to the list of known hosts.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++: System Info :+++++++++++++++++++++++++++++++++&lt;br /&gt;
+         FQDN =  ipbrick2.domain.com&lt;br /&gt;
+   IP address =  192.168.69.200&lt;br /&gt;
+       Kernel =  3.2.0-4-amd64&lt;br /&gt;
+       Uptime =  10:05:02 up 458 days, 32 min, 10 users,  load average: 3.04, 2.51, 2.20&lt;br /&gt;
+   Total CPUs =  4 x Architecture x86_64 @ 2399.734 Hz &lt;br /&gt;
+ Total Memory =  16470664 kB&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ipbrick2:~# logout&lt;br /&gt;
Connection to 192.168.69.200 closed.&lt;br /&gt;
ipbrick1:~#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can access as root from ipbrick1 (NEW, 192.168.69.199)  to ipbrick2 (OLD, 192.168.69.200).&lt;br /&gt;
&lt;br /&gt;
Now lets start the rsync on IPBrick1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home1/ /home1/ &amp;gt; rh1.log 2&amp;gt; rh1.err&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home2/ /home2/ &amp;gt; rh2.log 2&amp;gt; rh2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the logs in this file -&amp;gt; rsync_home1.log&lt;br /&gt;
Or the errors in this file -&amp;gt; rsync_home1.err&lt;br /&gt;
&lt;br /&gt;
Wen the rsync is finish access to web interface and then insert and replace the configuration that you save on your desktop.&lt;br /&gt;
&lt;br /&gt;
After replacing, go to Advanced configuration -&amp;gt; disaster recovery -&amp;gt; aplication -&amp;gt; databases -&amp;gt; and replace the last one.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== IPortalDoc ==&lt;br /&gt;
If you have IPortalDoc installed, you must now restore the database backup separatelly. This procedure is now executed in the new server (NOTE that after replacing configurations this server is now called ipbrick2, just like the original server.)&lt;br /&gt;
* IPBRICK.OS version 6.x or above - use '''ipbrickdb_ipb6'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb6 --restore --dbname dbdoc --file /home2/_backup_db_dbdoc/dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC version 5.3, 5.4 or 5.5 - use '''ipbrickdb_ipb5'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb5 --restore --dbname dbdoc --file /home2/_backup_db_dbdoc/dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Go to IPortalDoc Web interface, login with an administrator account, &lt;br /&gt;
* rebuild iPortalDoc workflow accounts:&lt;br /&gt;
** a) Definitions Menu -&amp;gt; Configuration Interface&lt;br /&gt;
** b) Poplist on the right (Menu) -&amp;gt; Workflows&lt;br /&gt;
** c) Click on the Rebuild button&lt;br /&gt;
* rebuild share &amp;quot;Access&amp;quot; and the account of Associated Emails to Documents, of iPortalDoc:&lt;br /&gt;
** a) Access Share: Definitions -&amp;gt; Configuration Interface-&amp;gt; Build Global FS&lt;br /&gt;
** b) Emails associated to documents: Definitions -&amp;gt; Configuration Interface -&amp;gt; Build Global mailFS&lt;br /&gt;
*** (This task is scheduled to be executed at midnight);&lt;br /&gt;
&lt;br /&gt;
Go to IPContacts application, login with an administrator account&lt;br /&gt;
* rebuild entities and contacts&lt;br /&gt;
** a) Administration -&amp;gt; Rebuild Contacts&lt;br /&gt;
&lt;br /&gt;
= Finish =&lt;br /&gt;
Now it is time to test and check all services.&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration</id>
		<title>IPBrick Disk migration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration"/>
				<updated>2016-05-12T17:43:00Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* Scenario 2 - two server machine */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is to assist the IT IPBRICK administrator in the process of migrating a running IPBRICK installation from:&lt;br /&gt;
* scenario 1 : one server machine - one disk to another disk on the same server machine&lt;br /&gt;
* scenario 2 : two server machine - one disk to another disk on a different server machine&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''ATTENTION: This is an advanced procedure. The tasks described bellow are to be performed by an IT technician familiar with IPBRICK.IC operating system architecture and linux command line interface. This guide refers to the IPBRICK installation manual and the disaster recovery procedure. Before starting please make sure that you have an up to date backup of all data files, databases and configurations. Proceed at your own risk.'''&lt;br /&gt;
&lt;br /&gt;
=On the original server machine=&lt;br /&gt;
On the original installation, apply configurations and download/save a backup copy configurations file to your Desktop. (Advanced Configurations -&amp;gt; Disaster Recovery -&amp;gt; Download : select the last one with the current timestamp).&lt;br /&gt;
&lt;br /&gt;
Just stop the the services you use.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/init.d/systemmonitor stop&lt;br /&gt;
/etc/init.d/asterisk stop&lt;br /&gt;
/etc/init.d/apache2 stop&lt;br /&gt;
/etc/init.d/ejabberd stop&lt;br /&gt;
/etc/init.d/qmail stop&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Execute this command to backup all the databases.&lt;br /&gt;
* IPBRICK.OS version 6.x or above&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/system/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC versions: 5.3, 5.4 or 5.5&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/ipbox/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== IPortalDoc ==&lt;br /&gt;
If you have IPortalDoc installed, you must backup this database separatelly.&lt;br /&gt;
* IPBRICK.OS version 6.x or above - use '''ipbrickdb_ipb6'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# wget http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb6&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb6 --dump --dbname dbdoc --file dbdoc_20160512_1700.sql&lt;br /&gt;
&lt;br /&gt;
STARTING DUMP OF DATABASE dbdoc TO FILE dbdoc_20160512_1717.sql&lt;br /&gt;
&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# ls -al dbdoc_20160512_1700.sql&lt;br /&gt;
-rw-r--r--  1 root root 570695550 May 12 17:20 dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC version 5.x - use '''ipbrickdb_ipb5'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# wget http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb5&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb5 --dump --dbname dbdoc --file dbdoc_20160512_1700.sql&lt;br /&gt;
&lt;br /&gt;
STARTING DUMP OF DATABASE dbdoc TO FILE dbdoc_20160512_1717.sql&lt;br /&gt;
&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# ls -al dbdoc_20160512_1700.sql&lt;br /&gt;
-rw-r--r--  1 root root 570695550 May 12 17:20 dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Scenario 1 - only one server machine=&lt;br /&gt;
Procedure:&lt;br /&gt;
* shutdown the server machine&lt;br /&gt;
* remove/detach the original (old) disk from the server&lt;br /&gt;
* install/attach the replacement (new) disk&lt;br /&gt;
* install the IPBRICK.IC operating system (please refer to IPBRICK.IC installation manual)&lt;br /&gt;
** perform the first boot, proceed with initial setup (FQDN, IP)&lt;br /&gt;
** after finishing installation and initial configuration proceed to the next step&lt;br /&gt;
* with the server power on, connect the old (original) disk using a USB connector&lt;br /&gt;
** now at the command line you can check for the disks&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fdisk -l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* confirm that you have 2 (two) disks: sda (new internal disk) and sdb (old disk connected via usb)&lt;br /&gt;
** you shoudl  be able to identify the partition tables&lt;br /&gt;
* create two temporary folders to map/mount the work areas from the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /old_home1&lt;br /&gt;
mkdir /old_home2&lt;br /&gt;
ls /old_home* -al&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Then we need to mount the partitions we need to copy.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mount /dev/sdb7 /old_home1&lt;br /&gt;
mount /dev/sdb8 /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Now lets start the rsync&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rsync -aAuv /old_home1/ /home1/ &amp;gt; /tmp/rsync_home1.log 2&amp;gt; /tmp/rsync_home1.err &amp;amp;&lt;br /&gt;
rsync -aAuv /old_home2/ /home2/ &amp;gt; /tmp/rsync_home2.log 2&amp;gt; /tmp/rsync_home2.err &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* You can see the logs in these files (log is normal output, err is for status warning)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tail /tmp/rsync_home1.log&lt;br /&gt;
tail /tmp/rsync_home1.err&lt;br /&gt;
tail /tmp/rsync_home2.log&lt;br /&gt;
tail /tmp/rsync_home2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* When the rsync process finishes, you can unmap/unmount the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
umount /old_home1&lt;br /&gt;
umount /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
* after successfull unmount you can disconnect the old disk (usb)&lt;br /&gt;
** NOTE: we recommend you to keep the old disk safe until this procedure is completly finished (backup procedure)&lt;br /&gt;
* Now please access to web interface, insert and replace the configurations file that you have previously saved on your desktop&lt;br /&gt;
** Please refer to the installation manual and/or disaster recover procedure in order to perform settings replacement&lt;br /&gt;
** The server machine performs a reboot&lt;br /&gt;
* After the server boot up, go to IPBRICK web interface, Advanced configurations -&amp;gt; Disaster Recovery -&amp;gt; Aplications -&amp;gt; Databases : for each database, click on the database name, then you get a listing of all the available backups, click on the last timestamp (click on the timestamp, not on the download link), and click on Restore to proceed to restore.&lt;br /&gt;
* When this Finnish test the services you have on IPBrick&lt;br /&gt;
* For the last step you need to re-activate your license - Advanced configurations -&amp;gt; IPBrick -&amp;gt; Web Access : License activation (please refer to the installation manual, license activation)&lt;br /&gt;
&lt;br /&gt;
=Scenario 2 - two server machine=&lt;br /&gt;
&lt;br /&gt;
== Second server installation ==&lt;br /&gt;
Install the IPBrick on the new machine (refer to IPBRICK.IC installation manual)&lt;br /&gt;
** NOTE: you must install exactly the same software version, this means that you must use the same IPBRICK.OS version and the exact same list of IPBRICK packages and/or updates&lt;br /&gt;
&lt;br /&gt;
'''NOTE - Licence Activation''' - during this procedure you will need to reactivate your product, please send file.dat to email address support@ipbrick.com requesting licence activation - to (re)activate a licence you are required to have a valid maintenance/software assurance contract. &lt;br /&gt;
&lt;br /&gt;
EX: IPBrick1 New (192.168.69.199) and IPBrick2 OLD (192.168.69.200)&lt;br /&gt;
&lt;br /&gt;
On machine IPBrick1 generate ssh key:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cd /root&lt;br /&gt;
ipbrick1:~# ssh-keygen -t rsa&lt;br /&gt;
#assume default location /root/.ssh/id_rsa&lt;br /&gt;
#enter empty passphrase&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/root/.ssh/id_rsa): &lt;br /&gt;
Enter passphrase (empty for no passphrase): &lt;br /&gt;
Enter same passphrase again: &lt;br /&gt;
Your identification has been saved in /root/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /root/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
3d:90:bf:f3:95:b3:96:6f:9d:90:95:98:69:fd:fb:0b root@ipbrick1&lt;br /&gt;
The key's randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|                 |&lt;br /&gt;
|         .       |&lt;br /&gt;
|        o     = .|&lt;br /&gt;
|         +   = + |&lt;br /&gt;
|        S + . o .|&lt;br /&gt;
|           o o ..|&lt;br /&gt;
|          o  E=.+|&lt;br /&gt;
|           o .+=o|&lt;br /&gt;
|            ...+=|&lt;br /&gt;
+-----------------+&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy contents of public key from IPBrick1 to IPBrick2.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cat /root/ssh/id_rsa.pub &lt;br /&gt;
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pC&lt;br /&gt;
tg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynRe&lt;br /&gt;
aiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZP&lt;br /&gt;
VkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Select and copy the output/contents of file id_rsa.pub from IPBrick1 as example above, install it on IPBrick2. Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir -p /home1/_ssh/root/.ssh&lt;br /&gt;
ipbrick2:~# echo &amp;quot;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pC&lt;br /&gt;
tg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynRe&lt;br /&gt;
aiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZP&lt;br /&gt;
VkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&amp;quot; &amp;gt;&amp;gt; /home1/_ssh/root/.ssh/authorized_keys&lt;br /&gt;
ipbrick2:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the first root ssh access from ipbrick1 to ipbrick2 using the ssh key.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# ssh -i /root/.ssh/id_rsa root@192.168.69.200&lt;br /&gt;
The authenticity of host '192' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? ^C&lt;br /&gt;
atlas:~# ssh -i /root/.ssh/id_rsa root@localhost&lt;br /&gt;
The authenticity of host '192.168.69.200 (192.168.69.200)' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? yes&lt;br /&gt;
Warning: Permanently added '192.168.69.200' (RSA) to the list of known hosts.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++: System Info :+++++++++++++++++++++++++++++++++&lt;br /&gt;
+         FQDN =  ipbrick2.domain.com&lt;br /&gt;
+   IP address =  192.168.69.200&lt;br /&gt;
+       Kernel =  3.2.0-4-amd64&lt;br /&gt;
+       Uptime =  10:05:02 up 458 days, 32 min, 10 users,  load average: 3.04, 2.51, 2.20&lt;br /&gt;
+   Total CPUs =  4 x Architecture x86_64 @ 2399.734 Hz &lt;br /&gt;
+ Total Memory =  16470664 kB&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ipbrick2:~# logout&lt;br /&gt;
Connection to 192.168.69.200 closed.&lt;br /&gt;
ipbrick1:~#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can access as root from ipbrick1 (NEW, 192.168.69.199)  to ipbrick2 (OLD, 192.168.69.200).&lt;br /&gt;
&lt;br /&gt;
Now lets start the rsync on IPBrick1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home1/ /home1/ &amp;gt; rh1.log 2&amp;gt; rh1.err&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home2/ /home2/ &amp;gt; rh2.log 2&amp;gt; rh2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the logs in this file -&amp;gt; rsync_home1.log&lt;br /&gt;
Or the errors in this file -&amp;gt; rsync_home1.err&lt;br /&gt;
&lt;br /&gt;
Wen the rsync is finish access to web interface and then insert and replace the configuration that you save on your desktop.&lt;br /&gt;
&lt;br /&gt;
After replacing, go to Advanced configuration -&amp;gt; disaster recovery -&amp;gt; aplication -&amp;gt; databases -&amp;gt; and replace the last one.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== IPortalDoc ==&lt;br /&gt;
If you have IPortalDoc installed, you must now restore the database backup separatelly. This procedure is now executed in the new server (NOTE that after replacing configurations this server is now called ipbrick2, just like the original server.)&lt;br /&gt;
* IPBRICK.OS version 6.x or above - use '''ipbrickdb_ipb6'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb6 --restore --dbname dbdoc --file /home2/_backup_db_dbdoc/dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC version 5.3, 5.4 or 5.5 - use '''ipbrickdb_ipb5'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb5 --restore --dbname dbdoc --file /home2/_backup_db_dbdoc/dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Go to IPortalDoc Web interface, login with an administrator account, &lt;br /&gt;
* rebuild iPortalDoc workflow accounts:&lt;br /&gt;
** a) Definitions Menu -&amp;gt; Configuration Interface&lt;br /&gt;
** b) Poplist on the right (Menu) -&amp;gt; Workflows&lt;br /&gt;
** c) Click on the Rebuild button&lt;br /&gt;
* rebuild share &amp;quot;Access&amp;quot; and the account of Associated Emails to Documents, of iPortalDoc:&lt;br /&gt;
** a) Access Share: Definitions -&amp;gt; Configuration Interface-&amp;gt; Build Global FS&lt;br /&gt;
** b) Emails associated to documents: Definitions -&amp;gt; Configuration Interface -&amp;gt; Build Global mailFS&lt;br /&gt;
*** (This task is scheduled to be executed at midnight);&lt;br /&gt;
&lt;br /&gt;
Go to IPContacts application, login with an administrator account&lt;br /&gt;
* rebuild entities and contacts&lt;br /&gt;
** a) Administration -&amp;gt; Rebuild Contacts&lt;br /&gt;
&lt;br /&gt;
= Finish =&lt;br /&gt;
Now it is time to test and check all services.&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration</id>
		<title>IPBrick Disk migration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration"/>
				<updated>2016-05-12T17:38:01Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* Scenario 2 - two server machine */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is to assist the IT IPBRICK administrator in the process of migrating a running IPBRICK installation from:&lt;br /&gt;
* scenario 1 : one server machine - one disk to another disk on the same server machine&lt;br /&gt;
* scenario 2 : two server machine - one disk to another disk on a different server machine&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''ATTENTION: This is an advanced procedure. The tasks described bellow are to be performed by an IT technician familiar with IPBRICK.IC operating system architecture and linux command line interface. This guide refers to the IPBRICK installation manual and the disaster recovery procedure. Before starting please make sure that you have an up to date backup of all data files, databases and configurations. Proceed at your own risk.'''&lt;br /&gt;
&lt;br /&gt;
=On the original server machine=&lt;br /&gt;
On the original installation, apply configurations and download/save a backup copy configurations file to your Desktop. (Advanced Configurations -&amp;gt; Disaster Recovery -&amp;gt; Download : select the last one with the current timestamp).&lt;br /&gt;
&lt;br /&gt;
Just stop the the services you use.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/init.d/systemmonitor stop&lt;br /&gt;
/etc/init.d/asterisk stop&lt;br /&gt;
/etc/init.d/apache2 stop&lt;br /&gt;
/etc/init.d/ejabberd stop&lt;br /&gt;
/etc/init.d/qmail stop&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Execute this command to backup all the databases.&lt;br /&gt;
* IPBRICK.OS version 6.x or above&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/system/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC versions: 5.3, 5.4 or 5.5&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/ipbox/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== IPortalDoc ==&lt;br /&gt;
If you have IPortalDoc installed, you must backup this database separatelly.&lt;br /&gt;
* IPBRICK.OS version 6.x or above - use '''ipbrickdb_ipb6'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# wget http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb6&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb6 --dump --dbname dbdoc --file dbdoc_20160512_1700.sql&lt;br /&gt;
&lt;br /&gt;
STARTING DUMP OF DATABASE dbdoc TO FILE dbdoc_20160512_1717.sql&lt;br /&gt;
&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# ls -al dbdoc_20160512_1700.sql&lt;br /&gt;
-rw-r--r--  1 root root 570695550 May 12 17:20 dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC version 5.x - use '''ipbrickdb_ipb5'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# wget http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb5&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb5 --dump --dbname dbdoc --file dbdoc_20160512_1700.sql&lt;br /&gt;
&lt;br /&gt;
STARTING DUMP OF DATABASE dbdoc TO FILE dbdoc_20160512_1717.sql&lt;br /&gt;
&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# ls -al dbdoc_20160512_1700.sql&lt;br /&gt;
-rw-r--r--  1 root root 570695550 May 12 17:20 dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Scenario 1 - only one server machine=&lt;br /&gt;
Procedure:&lt;br /&gt;
* shutdown the server machine&lt;br /&gt;
* remove/detach the original (old) disk from the server&lt;br /&gt;
* install/attach the replacement (new) disk&lt;br /&gt;
* install the IPBRICK.IC operating system (please refer to IPBRICK.IC installation manual)&lt;br /&gt;
** perform the first boot, proceed with initial setup (FQDN, IP)&lt;br /&gt;
** after finishing installation and initial configuration proceed to the next step&lt;br /&gt;
* with the server power on, connect the old (original) disk using a USB connector&lt;br /&gt;
** now at the command line you can check for the disks&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fdisk -l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* confirm that you have 2 (two) disks: sda (new internal disk) and sdb (old disk connected via usb)&lt;br /&gt;
** you shoudl  be able to identify the partition tables&lt;br /&gt;
* create two temporary folders to map/mount the work areas from the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /old_home1&lt;br /&gt;
mkdir /old_home2&lt;br /&gt;
ls /old_home* -al&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Then we need to mount the partitions we need to copy.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mount /dev/sdb7 /old_home1&lt;br /&gt;
mount /dev/sdb8 /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Now lets start the rsync&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rsync -aAuv /old_home1/ /home1/ &amp;gt; /tmp/rsync_home1.log 2&amp;gt; /tmp/rsync_home1.err &amp;amp;&lt;br /&gt;
rsync -aAuv /old_home2/ /home2/ &amp;gt; /tmp/rsync_home2.log 2&amp;gt; /tmp/rsync_home2.err &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* You can see the logs in these files (log is normal output, err is for status warning)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tail /tmp/rsync_home1.log&lt;br /&gt;
tail /tmp/rsync_home1.err&lt;br /&gt;
tail /tmp/rsync_home2.log&lt;br /&gt;
tail /tmp/rsync_home2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* When the rsync process finishes, you can unmap/unmount the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
umount /old_home1&lt;br /&gt;
umount /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
* after successfull unmount you can disconnect the old disk (usb)&lt;br /&gt;
** NOTE: we recommend you to keep the old disk safe until this procedure is completly finished (backup procedure)&lt;br /&gt;
* Now please access to web interface, insert and replace the configurations file that you have previously saved on your desktop&lt;br /&gt;
** Please refer to the installation manual and/or disaster recover procedure in order to perform settings replacement&lt;br /&gt;
** The server machine performs a reboot&lt;br /&gt;
* After the server boot up, go to IPBRICK web interface, Advanced configurations -&amp;gt; Disaster Recovery -&amp;gt; Aplications -&amp;gt; Databases : for each database, click on the database name, then you get a listing of all the available backups, click on the last timestamp (click on the timestamp, not on the download link), and click on Restore to proceed to restore.&lt;br /&gt;
* When this Finnish test the services you have on IPBrick&lt;br /&gt;
* For the last step you need to re-activate your license - Advanced configurations -&amp;gt; IPBrick -&amp;gt; Web Access : License activation (please refer to the installation manual, license activation)&lt;br /&gt;
&lt;br /&gt;
=Scenario 2 - two server machine=&lt;br /&gt;
Procedure&lt;br /&gt;
* Install the IPBrick on the new machine (refer to IPBRICK.IC installation manual)&lt;br /&gt;
* NOTE: you must install exactly the same software version, this means that you must use the same IPBRICK.OS version and the exact same list of IPBRICK packages and/or updates&lt;br /&gt;
* Afterwards you can proceed with the procedure&lt;br /&gt;
&lt;br /&gt;
EX: IPBrick1 New (192.168.69.199) and IPBrick2 OLD (192.168.69.200)&lt;br /&gt;
&lt;br /&gt;
On machine IPBrick1 generate ssh key:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cd /root&lt;br /&gt;
ipbrick1:~# ssh-keygen -t rsa&lt;br /&gt;
#assume default location /root/.ssh/id_rsa&lt;br /&gt;
#enter empty passphrase&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/root/.ssh/id_rsa): &lt;br /&gt;
Enter passphrase (empty for no passphrase): &lt;br /&gt;
Enter same passphrase again: &lt;br /&gt;
Your identification has been saved in /root/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /root/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
3d:90:bf:f3:95:b3:96:6f:9d:90:95:98:69:fd:fb:0b root@ipbrick1&lt;br /&gt;
The key's randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|                 |&lt;br /&gt;
|         .       |&lt;br /&gt;
|        o     = .|&lt;br /&gt;
|         +   = + |&lt;br /&gt;
|        S + . o .|&lt;br /&gt;
|           o o ..|&lt;br /&gt;
|          o  E=.+|&lt;br /&gt;
|           o .+=o|&lt;br /&gt;
|            ...+=|&lt;br /&gt;
+-----------------+&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy contents of public key from IPBrick1 to IPBrick2.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cat /root/ssh/id_rsa.pub &lt;br /&gt;
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pC&lt;br /&gt;
tg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynRe&lt;br /&gt;
aiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZP&lt;br /&gt;
VkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Select and copy the output/contents of file id_rsa.pub from IPBrick1 as example above, install it on IPBrick2. Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir -p /home1/_ssh/root/.ssh&lt;br /&gt;
ipbrick2:~# echo &amp;quot;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pC&lt;br /&gt;
tg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynRe&lt;br /&gt;
aiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZP&lt;br /&gt;
VkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&amp;quot; &amp;gt;&amp;gt; /home1/_ssh/root/.ssh/authorized_keys&lt;br /&gt;
ipbrick2:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the first root ssh access from ipbrick1 to ipbrick2 using the ssh key.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# ssh -i /root/.ssh/id_rsa root@192.168.69.200&lt;br /&gt;
The authenticity of host '192' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? ^C&lt;br /&gt;
atlas:~# ssh -i /root/.ssh/id_rsa root@localhost&lt;br /&gt;
The authenticity of host '192.168.69.200 (192.168.69.200)' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? yes&lt;br /&gt;
Warning: Permanently added '192.168.69.200' (RSA) to the list of known hosts.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++: System Info :+++++++++++++++++++++++++++++++++&lt;br /&gt;
+         FQDN =  ipbrick2.domain.com&lt;br /&gt;
+   IP address =  192.168.69.200&lt;br /&gt;
+       Kernel =  3.2.0-4-amd64&lt;br /&gt;
+       Uptime =  10:05:02 up 458 days, 32 min, 10 users,  load average: 3.04, 2.51, 2.20&lt;br /&gt;
+   Total CPUs =  4 x Architecture x86_64 @ 2399.734 Hz &lt;br /&gt;
+ Total Memory =  16470664 kB&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ipbrick2:~# logout&lt;br /&gt;
Connection to 192.168.69.200 closed.&lt;br /&gt;
ipbrick1:~#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can access as root from ipbrick1 (NEW, 192.168.69.199)  to ipbrick2 (OLD, 192.168.69.200).&lt;br /&gt;
&lt;br /&gt;
Now lets start the rsync on IPBrick1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home1/ /home1/ &amp;gt; rh1.log 2&amp;gt; rh1.err&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home2/ /home2/ &amp;gt; rh2.log 2&amp;gt; rh2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the logs in this file -&amp;gt; rsync_home1.log&lt;br /&gt;
Or the errors in this file -&amp;gt; rsync_home1.err&lt;br /&gt;
&lt;br /&gt;
Wen the rsync is finish access to web interface and then insert and replace the configuration that you save on your desktop.&lt;br /&gt;
&lt;br /&gt;
After replacing, go to Advanced configuration -&amp;gt; disaster recovery -&amp;gt; aplication -&amp;gt; databases -&amp;gt; and replace the last one.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== IPortalDoc ==&lt;br /&gt;
If you have IPortalDoc installed, you must now restore the database backup separatelly. This procedure is now executed in the new server (NOTE that after replacing configurations this server is now called ipbrick2, just like the original server.)&lt;br /&gt;
* IPBRICK.OS version 6.x or above - use '''ipbrickdb_ipb6'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb6 --restore --dbname dbdoc --file /home2/_backup_db_dbdoc/dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC version 5.3, 5.4 or 5.5 - use '''ipbrickdb_ipb5'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb5 --restore --dbname dbdoc --file /home2/_backup_db_dbdoc/dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Go to IPortalDoc Web interface, login with an administrator account, &lt;br /&gt;
* rebuild iPortalDoc workflow accounts:&lt;br /&gt;
** a) Definitions Menu -&amp;gt; Configuration Interface&lt;br /&gt;
** b) Poplist on the right (Menu) -&amp;gt; Workflows&lt;br /&gt;
** c) Click on the Rebuild button&lt;br /&gt;
* rebuild share &amp;quot;Access&amp;quot; and the account of Associated Emails to Documents, of iPortalDoc:&lt;br /&gt;
** a) Access Share: Definitions -&amp;gt; Configuration Interface-&amp;gt; Build Global FS&lt;br /&gt;
** b) Emails associated to documents: Definitions -&amp;gt; Configuration Interface -&amp;gt; Build Global mailFS&lt;br /&gt;
*** (This task is scheduled to be executed at midnight);&lt;br /&gt;
&lt;br /&gt;
Go to IPContacts application, login with an administrator account&lt;br /&gt;
* rebuild entities and contacts&lt;br /&gt;
** a) Administration -&amp;gt; Rebuild Contacts&lt;br /&gt;
&lt;br /&gt;
= Finish =&lt;br /&gt;
Now it is time to test and check all services.&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration</id>
		<title>IPBrick Disk migration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration"/>
				<updated>2016-05-12T17:33:06Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* IPortalDoc */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is to assist the IT IPBRICK administrator in the process of migrating a running IPBRICK installation from:&lt;br /&gt;
* scenario 1 : one server machine - one disk to another disk on the same server machine&lt;br /&gt;
* scenario 2 : two server machine - one disk to another disk on a different server machine&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''ATTENTION: This is an advanced procedure. The tasks described bellow are to be performed by an IT technician familiar with IPBRICK.IC operating system architecture and linux command line interface. This guide refers to the IPBRICK installation manual and the disaster recovery procedure. Before starting please make sure that you have an up to date backup of all data files, databases and configurations. Proceed at your own risk.'''&lt;br /&gt;
&lt;br /&gt;
=On the original server machine=&lt;br /&gt;
On the original installation, apply configurations and download/save a backup copy configurations file to your Desktop. (Advanced Configurations -&amp;gt; Disaster Recovery -&amp;gt; Download : select the last one with the current timestamp).&lt;br /&gt;
&lt;br /&gt;
Just stop the the services you use.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/init.d/systemmonitor stop&lt;br /&gt;
/etc/init.d/asterisk stop&lt;br /&gt;
/etc/init.d/apache2 stop&lt;br /&gt;
/etc/init.d/ejabberd stop&lt;br /&gt;
/etc/init.d/qmail stop&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Execute this command to backup all the databases.&lt;br /&gt;
* IPBRICK.OS version 6.x or above&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/system/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC versions: 5.3, 5.4 or 5.5&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/ipbox/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== IPortalDoc ==&lt;br /&gt;
If you have IPortalDoc installed, you must backup this database separatelly.&lt;br /&gt;
* IPBRICK.OS version 6.x or above - use '''ipbrickdb_ipb6'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# wget http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb6&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb6 --dump --dbname dbdoc --file dbdoc_20160512_1700.sql&lt;br /&gt;
&lt;br /&gt;
STARTING DUMP OF DATABASE dbdoc TO FILE dbdoc_20160512_1717.sql&lt;br /&gt;
&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# ls -al dbdoc_20160512_1700.sql&lt;br /&gt;
-rw-r--r--  1 root root 570695550 May 12 17:20 dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC version 5.x - use '''ipbrickdb_ipb5'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# wget http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb5&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb5 --dump --dbname dbdoc --file dbdoc_20160512_1700.sql&lt;br /&gt;
&lt;br /&gt;
STARTING DUMP OF DATABASE dbdoc TO FILE dbdoc_20160512_1717.sql&lt;br /&gt;
&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc# ls -al dbdoc_20160512_1700.sql&lt;br /&gt;
-rw-r--r--  1 root root 570695550 May 12 17:20 dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick2:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Scenario 1 - only one server machine=&lt;br /&gt;
Procedure:&lt;br /&gt;
* shutdown the server machine&lt;br /&gt;
* remove/detach the original (old) disk from the server&lt;br /&gt;
* install/attach the replacement (new) disk&lt;br /&gt;
* install the IPBRICK.IC operating system (please refer to IPBRICK.IC installation manual)&lt;br /&gt;
** perform the first boot, proceed with initial setup (FQDN, IP)&lt;br /&gt;
** after finishing installation and initial configuration proceed to the next step&lt;br /&gt;
* with the server power on, connect the old (original) disk using a USB connector&lt;br /&gt;
** now at the command line you can check for the disks&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fdisk -l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* confirm that you have 2 (two) disks: sda (new internal disk) and sdb (old disk connected via usb)&lt;br /&gt;
** you shoudl  be able to identify the partition tables&lt;br /&gt;
* create two temporary folders to map/mount the work areas from the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /old_home1&lt;br /&gt;
mkdir /old_home2&lt;br /&gt;
ls /old_home* -al&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Then we need to mount the partitions we need to copy.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mount /dev/sdb7 /old_home1&lt;br /&gt;
mount /dev/sdb8 /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Now lets start the rsync&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rsync -aAuv /old_home1/ /home1/ &amp;gt; /tmp/rsync_home1.log 2&amp;gt; /tmp/rsync_home1.err &amp;amp;&lt;br /&gt;
rsync -aAuv /old_home2/ /home2/ &amp;gt; /tmp/rsync_home2.log 2&amp;gt; /tmp/rsync_home2.err &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* You can see the logs in these files (log is normal output, err is for status warning)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tail /tmp/rsync_home1.log&lt;br /&gt;
tail /tmp/rsync_home1.err&lt;br /&gt;
tail /tmp/rsync_home2.log&lt;br /&gt;
tail /tmp/rsync_home2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* When the rsync process finishes, you can unmap/unmount the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
umount /old_home1&lt;br /&gt;
umount /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
* after successfull unmount you can disconnect the old disk (usb)&lt;br /&gt;
** NOTE: we recommend you to keep the old disk safe until this procedure is completly finished (backup procedure)&lt;br /&gt;
* Now please access to web interface, insert and replace the configurations file that you have previously saved on your desktop&lt;br /&gt;
** Please refer to the installation manual and/or disaster recover procedure in order to perform settings replacement&lt;br /&gt;
** The server machine performs a reboot&lt;br /&gt;
* After the server boot up, go to IPBRICK web interface, Advanced configurations -&amp;gt; Disaster Recovery -&amp;gt; Aplications -&amp;gt; Databases : for each database, click on the database name, then you get a listing of all the available backups, click on the last timestamp (click on the timestamp, not on the download link), and click on Restore to proceed to restore.&lt;br /&gt;
* When this Finnish test the services you have on IPBrick&lt;br /&gt;
* For the last step you need to re-activate your license - Advanced configurations -&amp;gt; IPBrick -&amp;gt; Web Access : License activation (please refer to the installation manual, license activation)&lt;br /&gt;
&lt;br /&gt;
=Scenario 2 - two server machine=&lt;br /&gt;
Procedure&lt;br /&gt;
* Install the IPBrick on the new machine (refer to IPBRICK.IC installation manual)&lt;br /&gt;
* NOTE: you must install exactly the same software version, this means that you must use the same IPBRICK.OS version and the exact same list of IPBRICK packages and/or updates&lt;br /&gt;
* Afterwards you can proceed with the procedure&lt;br /&gt;
&lt;br /&gt;
EX: IPBrick1 New (192.168.69.199) and IPBrick2 OLD (192.168.69.200)&lt;br /&gt;
&lt;br /&gt;
On machine IPBrick1 generate ssh key:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cd /root&lt;br /&gt;
ipbrick1:~# ssh-keygen -t rsa&lt;br /&gt;
#assume default location /root/.ssh/id_rsa&lt;br /&gt;
#enter empty passphrase&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/root/.ssh/id_rsa): &lt;br /&gt;
Enter passphrase (empty for no passphrase): &lt;br /&gt;
Enter same passphrase again: &lt;br /&gt;
Your identification has been saved in /root/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /root/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
3d:90:bf:f3:95:b3:96:6f:9d:90:95:98:69:fd:fb:0b root@ipbrick1&lt;br /&gt;
The key's randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|                 |&lt;br /&gt;
|         .       |&lt;br /&gt;
|        o     = .|&lt;br /&gt;
|         +   = + |&lt;br /&gt;
|        S + . o .|&lt;br /&gt;
|           o o ..|&lt;br /&gt;
|          o  E=.+|&lt;br /&gt;
|           o .+=o|&lt;br /&gt;
|            ...+=|&lt;br /&gt;
+-----------------+&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy contents of public key from IPBrick1 to IPBrick2.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cat /root/ssh/id_rsa.pub &lt;br /&gt;
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pC&lt;br /&gt;
tg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynRe&lt;br /&gt;
aiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZP&lt;br /&gt;
VkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Select and copy the output/contents of file id_rsa.pub from IPBrick1 as example above, install it on IPBrick2. Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir -p /home1/_ssh/root/.ssh&lt;br /&gt;
ipbrick2:~# echo &amp;quot;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pC&lt;br /&gt;
tg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynRe&lt;br /&gt;
aiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZP&lt;br /&gt;
VkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&amp;quot; &amp;gt;&amp;gt; /home1/_ssh/root/.ssh/authorized_keys&lt;br /&gt;
ipbrick2:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the first root ssh access from ipbrick1 to ipbrick2 using the ssh key.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# ssh -i /root/.ssh/id_rsa root@192.168.69.200&lt;br /&gt;
The authenticity of host '192' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? ^C&lt;br /&gt;
atlas:~# ssh -i /root/.ssh/id_rsa root@localhost&lt;br /&gt;
The authenticity of host '192.168.69.200 (192.168.69.200)' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? yes&lt;br /&gt;
Warning: Permanently added '192.168.69.200' (RSA) to the list of known hosts.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++: System Info :+++++++++++++++++++++++++++++++++&lt;br /&gt;
+         FQDN =  ipbrick2.domain.com&lt;br /&gt;
+   IP address =  192.168.69.200&lt;br /&gt;
+       Kernel =  3.2.0-4-amd64&lt;br /&gt;
+       Uptime =  10:05:02 up 458 days, 32 min, 10 users,  load average: 3.04, 2.51, 2.20&lt;br /&gt;
+   Total CPUs =  4 x Architecture x86_64 @ 2399.734 Hz &lt;br /&gt;
+ Total Memory =  16470664 kB&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ipbrick2:~# logout&lt;br /&gt;
Connection to 192.168.69.200 closed.&lt;br /&gt;
ipbrick1:~#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can access as root from ipbrick1 (NEW, 192.168.69.199)  to ipbrick2 (OLD, 192.168.69.200).&lt;br /&gt;
&lt;br /&gt;
Now lets start the rsync on IPBrick1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home1/ /home1/ &amp;gt; rh1.log 2&amp;gt; rh1.err&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home2/ /home2/ &amp;gt; rh2.log 2&amp;gt; rh2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the logs in this file -&amp;gt; rsync_home1.log&lt;br /&gt;
Or the errors in this file -&amp;gt; rsync_home1.err&lt;br /&gt;
&lt;br /&gt;
Wen the rsync is finish access to web interface and then insert and replace the configuration that you save on your desktop.&lt;br /&gt;
&lt;br /&gt;
After replacing, go to Advanced configuration -&amp;gt; disaster recovery -&amp;gt; aplication -&amp;gt; databases -&amp;gt; and replace the last one.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== IPortalDoc ==&lt;br /&gt;
If you have IPortalDoc installed, you must now restore the database backup separatelly. This procedure is now executed in the new server (NOTE that after replacing configurations this server is now called ipbrick2, just like the original server.)&lt;br /&gt;
* IPBRICK.OS version 6.x or above - use '''ipbrickdb_ipb6'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ip&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC version 5.3, 5.4 or 5.5 - use '''ipbrickdb_ipb5'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wen this Finnish test the services you have on IPBrick.&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration</id>
		<title>IPBrick Disk migration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration"/>
				<updated>2016-05-12T17:32:33Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* Scenario 2 - two server machine */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is to assist the IT IPBRICK administrator in the process of migrating a running IPBRICK installation from:&lt;br /&gt;
* scenario 1 : one server machine - one disk to another disk on the same server machine&lt;br /&gt;
* scenario 2 : two server machine - one disk to another disk on a different server machine&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''ATTENTION: This is an advanced procedure. The tasks described bellow are to be performed by an IT technician familiar with IPBRICK.IC operating system architecture and linux command line interface. This guide refers to the IPBRICK installation manual and the disaster recovery procedure. Before starting please make sure that you have an up to date backup of all data files, databases and configurations. Proceed at your own risk.'''&lt;br /&gt;
&lt;br /&gt;
=On the original server machine=&lt;br /&gt;
On the original installation, apply configurations and download/save a backup copy configurations file to your Desktop. (Advanced Configurations -&amp;gt; Disaster Recovery -&amp;gt; Download : select the last one with the current timestamp).&lt;br /&gt;
&lt;br /&gt;
Just stop the the services you use.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/init.d/systemmonitor stop&lt;br /&gt;
/etc/init.d/asterisk stop&lt;br /&gt;
/etc/init.d/apache2 stop&lt;br /&gt;
/etc/init.d/ejabberd stop&lt;br /&gt;
/etc/init.d/qmail stop&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Execute this command to backup all the databases.&lt;br /&gt;
* IPBRICK.OS version 6.x or above&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/system/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC versions: 5.3, 5.4 or 5.5&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/ipbox/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== IPortalDoc ==&lt;br /&gt;
If you have IPortalDoc installed, you must backup this database separatelly.&lt;br /&gt;
* IPBRICK.OS version 6.x or above - use '''ipbrickdb_ipb6'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# mkdir /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick1:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# wget http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb6&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb6 --dump --dbname dbdoc --file dbdoc_20160512_1700.sql&lt;br /&gt;
&lt;br /&gt;
STARTING DUMP OF DATABASE dbdoc TO FILE dbdoc_20160512_1717.sql&lt;br /&gt;
&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# ls -al dbdoc_20160512_1700.sql&lt;br /&gt;
-rw-r--r--  1 root root 570695550 May 12 17:20 dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC version 5.x - use '''ipbrickdb_ipb5'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# mkdir /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick1:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# wget http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb5&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb5 --dump --dbname dbdoc --file dbdoc_20160512_1700.sql&lt;br /&gt;
&lt;br /&gt;
STARTING DUMP OF DATABASE dbdoc TO FILE dbdoc_20160512_1717.sql&lt;br /&gt;
&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# ls -al dbdoc_20160512_1700.sql&lt;br /&gt;
-rw-r--r--  1 root root 570695550 May 12 17:20 dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Scenario 1 - only one server machine=&lt;br /&gt;
Procedure:&lt;br /&gt;
* shutdown the server machine&lt;br /&gt;
* remove/detach the original (old) disk from the server&lt;br /&gt;
* install/attach the replacement (new) disk&lt;br /&gt;
* install the IPBRICK.IC operating system (please refer to IPBRICK.IC installation manual)&lt;br /&gt;
** perform the first boot, proceed with initial setup (FQDN, IP)&lt;br /&gt;
** after finishing installation and initial configuration proceed to the next step&lt;br /&gt;
* with the server power on, connect the old (original) disk using a USB connector&lt;br /&gt;
** now at the command line you can check for the disks&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fdisk -l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* confirm that you have 2 (two) disks: sda (new internal disk) and sdb (old disk connected via usb)&lt;br /&gt;
** you shoudl  be able to identify the partition tables&lt;br /&gt;
* create two temporary folders to map/mount the work areas from the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /old_home1&lt;br /&gt;
mkdir /old_home2&lt;br /&gt;
ls /old_home* -al&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Then we need to mount the partitions we need to copy.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mount /dev/sdb7 /old_home1&lt;br /&gt;
mount /dev/sdb8 /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Now lets start the rsync&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rsync -aAuv /old_home1/ /home1/ &amp;gt; /tmp/rsync_home1.log 2&amp;gt; /tmp/rsync_home1.err &amp;amp;&lt;br /&gt;
rsync -aAuv /old_home2/ /home2/ &amp;gt; /tmp/rsync_home2.log 2&amp;gt; /tmp/rsync_home2.err &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* You can see the logs in these files (log is normal output, err is for status warning)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tail /tmp/rsync_home1.log&lt;br /&gt;
tail /tmp/rsync_home1.err&lt;br /&gt;
tail /tmp/rsync_home2.log&lt;br /&gt;
tail /tmp/rsync_home2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* When the rsync process finishes, you can unmap/unmount the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
umount /old_home1&lt;br /&gt;
umount /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
* after successfull unmount you can disconnect the old disk (usb)&lt;br /&gt;
** NOTE: we recommend you to keep the old disk safe until this procedure is completly finished (backup procedure)&lt;br /&gt;
* Now please access to web interface, insert and replace the configurations file that you have previously saved on your desktop&lt;br /&gt;
** Please refer to the installation manual and/or disaster recover procedure in order to perform settings replacement&lt;br /&gt;
** The server machine performs a reboot&lt;br /&gt;
* After the server boot up, go to IPBRICK web interface, Advanced configurations -&amp;gt; Disaster Recovery -&amp;gt; Aplications -&amp;gt; Databases : for each database, click on the database name, then you get a listing of all the available backups, click on the last timestamp (click on the timestamp, not on the download link), and click on Restore to proceed to restore.&lt;br /&gt;
* When this Finnish test the services you have on IPBrick&lt;br /&gt;
* For the last step you need to re-activate your license - Advanced configurations -&amp;gt; IPBrick -&amp;gt; Web Access : License activation (please refer to the installation manual, license activation)&lt;br /&gt;
&lt;br /&gt;
=Scenario 2 - two server machine=&lt;br /&gt;
Procedure&lt;br /&gt;
* Install the IPBrick on the new machine (refer to IPBRICK.IC installation manual)&lt;br /&gt;
* NOTE: you must install exactly the same software version, this means that you must use the same IPBRICK.OS version and the exact same list of IPBRICK packages and/or updates&lt;br /&gt;
* Afterwards you can proceed with the procedure&lt;br /&gt;
&lt;br /&gt;
EX: IPBrick1 New (192.168.69.199) and IPBrick2 OLD (192.168.69.200)&lt;br /&gt;
&lt;br /&gt;
On machine IPBrick1 generate ssh key:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cd /root&lt;br /&gt;
ipbrick1:~# ssh-keygen -t rsa&lt;br /&gt;
#assume default location /root/.ssh/id_rsa&lt;br /&gt;
#enter empty passphrase&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/root/.ssh/id_rsa): &lt;br /&gt;
Enter passphrase (empty for no passphrase): &lt;br /&gt;
Enter same passphrase again: &lt;br /&gt;
Your identification has been saved in /root/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /root/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
3d:90:bf:f3:95:b3:96:6f:9d:90:95:98:69:fd:fb:0b root@ipbrick1&lt;br /&gt;
The key's randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|                 |&lt;br /&gt;
|         .       |&lt;br /&gt;
|        o     = .|&lt;br /&gt;
|         +   = + |&lt;br /&gt;
|        S + . o .|&lt;br /&gt;
|           o o ..|&lt;br /&gt;
|          o  E=.+|&lt;br /&gt;
|           o .+=o|&lt;br /&gt;
|            ...+=|&lt;br /&gt;
+-----------------+&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy contents of public key from IPBrick1 to IPBrick2.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cat /root/ssh/id_rsa.pub &lt;br /&gt;
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pC&lt;br /&gt;
tg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynRe&lt;br /&gt;
aiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZP&lt;br /&gt;
VkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Select and copy the output/contents of file id_rsa.pub from IPBrick1 as example above, install it on IPBrick2. Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir -p /home1/_ssh/root/.ssh&lt;br /&gt;
ipbrick2:~# echo &amp;quot;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pC&lt;br /&gt;
tg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynRe&lt;br /&gt;
aiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZP&lt;br /&gt;
VkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&amp;quot; &amp;gt;&amp;gt; /home1/_ssh/root/.ssh/authorized_keys&lt;br /&gt;
ipbrick2:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the first root ssh access from ipbrick1 to ipbrick2 using the ssh key.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# ssh -i /root/.ssh/id_rsa root@192.168.69.200&lt;br /&gt;
The authenticity of host '192' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? ^C&lt;br /&gt;
atlas:~# ssh -i /root/.ssh/id_rsa root@localhost&lt;br /&gt;
The authenticity of host '192.168.69.200 (192.168.69.200)' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? yes&lt;br /&gt;
Warning: Permanently added '192.168.69.200' (RSA) to the list of known hosts.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++: System Info :+++++++++++++++++++++++++++++++++&lt;br /&gt;
+         FQDN =  ipbrick2.domain.com&lt;br /&gt;
+   IP address =  192.168.69.200&lt;br /&gt;
+       Kernel =  3.2.0-4-amd64&lt;br /&gt;
+       Uptime =  10:05:02 up 458 days, 32 min, 10 users,  load average: 3.04, 2.51, 2.20&lt;br /&gt;
+   Total CPUs =  4 x Architecture x86_64 @ 2399.734 Hz &lt;br /&gt;
+ Total Memory =  16470664 kB&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ipbrick2:~# logout&lt;br /&gt;
Connection to 192.168.69.200 closed.&lt;br /&gt;
ipbrick1:~#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can access as root from ipbrick1 (NEW, 192.168.69.199)  to ipbrick2 (OLD, 192.168.69.200).&lt;br /&gt;
&lt;br /&gt;
Now lets start the rsync on IPBrick1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home1/ /home1/ &amp;gt; rh1.log 2&amp;gt; rh1.err&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home2/ /home2/ &amp;gt; rh2.log 2&amp;gt; rh2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the logs in this file -&amp;gt; rsync_home1.log&lt;br /&gt;
Or the errors in this file -&amp;gt; rsync_home1.err&lt;br /&gt;
&lt;br /&gt;
Wen the rsync is finish access to web interface and then insert and replace the configuration that you save on your desktop.&lt;br /&gt;
&lt;br /&gt;
After replacing, go to Advanced configuration -&amp;gt; disaster recovery -&amp;gt; aplication -&amp;gt; databases -&amp;gt; and replace the last one.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== IPortalDoc ==&lt;br /&gt;
If you have IPortalDoc installed, you must now restore the database backup separatelly. This procedure is now executed in the new server (NOTE that after replacing configurations this server is now called ipbrick2, just like the original server.)&lt;br /&gt;
* IPBRICK.OS version 6.x or above - use '''ipbrickdb_ipb6'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ip&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC version 5.3, 5.4 or 5.5 - use '''ipbrickdb_ipb5'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wen this Finnish test the services you have on IPBrick.&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration</id>
		<title>IPBrick Disk migration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration"/>
				<updated>2016-05-12T17:27:23Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* IPortalDoc */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is to assist the IT IPBRICK administrator in the process of migrating a running IPBRICK installation from:&lt;br /&gt;
* scenario 1 : one server machine - one disk to another disk on the same server machine&lt;br /&gt;
* scenario 2 : two server machine - one disk to another disk on a different server machine&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''ATTENTION: This is an advanced procedure. The tasks described bellow are to be performed by an IT technician familiar with IPBRICK.IC operating system architecture and linux command line interface. This guide refers to the IPBRICK installation manual and the disaster recovery procedure. Before starting please make sure that you have an up to date backup of all data files, databases and configurations. Proceed at your own risk.'''&lt;br /&gt;
&lt;br /&gt;
=On the original server machine=&lt;br /&gt;
On the original installation, apply configurations and download/save a backup copy configurations file to your Desktop. (Advanced Configurations -&amp;gt; Disaster Recovery -&amp;gt; Download : select the last one with the current timestamp).&lt;br /&gt;
&lt;br /&gt;
Just stop the the services you use.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/init.d/systemmonitor stop&lt;br /&gt;
/etc/init.d/asterisk stop&lt;br /&gt;
/etc/init.d/apache2 stop&lt;br /&gt;
/etc/init.d/ejabberd stop&lt;br /&gt;
/etc/init.d/qmail stop&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Execute this command to backup all the databases.&lt;br /&gt;
* IPBRICK.OS version 6.x or above&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/system/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC versions: 5.3, 5.4 or 5.5&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/ipbox/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== IPortalDoc ==&lt;br /&gt;
If you have IPortalDoc installed, you must backup this database separatelly.&lt;br /&gt;
* IPBRICK.OS version 6.x or above - use '''ipbrickdb_ipb6'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# mkdir /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick1:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# wget http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb6&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb6 --dump --dbname dbdoc --file dbdoc_20160512_1700.sql&lt;br /&gt;
&lt;br /&gt;
STARTING DUMP OF DATABASE dbdoc TO FILE dbdoc_20160512_1717.sql&lt;br /&gt;
&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# ls -al dbdoc_20160512_1700.sql&lt;br /&gt;
-rw-r--r--  1 root root 570695550 May 12 17:20 dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC version 5.x - use '''ipbrickdb_ipb5'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# mkdir /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick1:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# wget http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb5&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb5 --dump --dbname dbdoc --file dbdoc_20160512_1700.sql&lt;br /&gt;
&lt;br /&gt;
STARTING DUMP OF DATABASE dbdoc TO FILE dbdoc_20160512_1717.sql&lt;br /&gt;
&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# ls -al dbdoc_20160512_1700.sql&lt;br /&gt;
-rw-r--r--  1 root root 570695550 May 12 17:20 dbdoc_20160512_1700.sql&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Scenario 1 - only one server machine=&lt;br /&gt;
Procedure:&lt;br /&gt;
* shutdown the server machine&lt;br /&gt;
* remove/detach the original (old) disk from the server&lt;br /&gt;
* install/attach the replacement (new) disk&lt;br /&gt;
* install the IPBRICK.IC operating system (please refer to IPBRICK.IC installation manual)&lt;br /&gt;
** perform the first boot, proceed with initial setup (FQDN, IP)&lt;br /&gt;
** after finishing installation and initial configuration proceed to the next step&lt;br /&gt;
* with the server power on, connect the old (original) disk using a USB connector&lt;br /&gt;
** now at the command line you can check for the disks&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fdisk -l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* confirm that you have 2 (two) disks: sda (new internal disk) and sdb (old disk connected via usb)&lt;br /&gt;
** you shoudl  be able to identify the partition tables&lt;br /&gt;
* create two temporary folders to map/mount the work areas from the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /old_home1&lt;br /&gt;
mkdir /old_home2&lt;br /&gt;
ls /old_home* -al&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Then we need to mount the partitions we need to copy.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mount /dev/sdb7 /old_home1&lt;br /&gt;
mount /dev/sdb8 /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Now lets start the rsync&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rsync -aAuv /old_home1/ /home1/ &amp;gt; /tmp/rsync_home1.log 2&amp;gt; /tmp/rsync_home1.err &amp;amp;&lt;br /&gt;
rsync -aAuv /old_home2/ /home2/ &amp;gt; /tmp/rsync_home2.log 2&amp;gt; /tmp/rsync_home2.err &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* You can see the logs in these files (log is normal output, err is for status warning)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tail /tmp/rsync_home1.log&lt;br /&gt;
tail /tmp/rsync_home1.err&lt;br /&gt;
tail /tmp/rsync_home2.log&lt;br /&gt;
tail /tmp/rsync_home2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* When the rsync process finishes, you can unmap/unmount the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
umount /old_home1&lt;br /&gt;
umount /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
* after successfull unmount you can disconnect the old disk (usb)&lt;br /&gt;
** NOTE: we recommend you to keep the old disk safe until this procedure is completly finished (backup procedure)&lt;br /&gt;
* Now please access to web interface, insert and replace the configurations file that you have previously saved on your desktop&lt;br /&gt;
** Please refer to the installation manual and/or disaster recover procedure in order to perform settings replacement&lt;br /&gt;
** The server machine performs a reboot&lt;br /&gt;
* After the server boot up, go to IPBRICK web interface, Advanced configurations -&amp;gt; Disaster Recovery -&amp;gt; Aplications -&amp;gt; Databases : for each database, click on the database name, then you get a listing of all the available backups, click on the last timestamp (click on the timestamp, not on the download link), and click on Restore to proceed to restore.&lt;br /&gt;
* When this Finnish test the services you have on IPBrick&lt;br /&gt;
* For the last step you need to re-activate your license - Advanced configurations -&amp;gt; IPBrick -&amp;gt; Web Access : License activation (please refer to the installation manual, license activation)&lt;br /&gt;
&lt;br /&gt;
=Scenario 2 - two server machine=&lt;br /&gt;
Procedure&lt;br /&gt;
* Install the IPBrick on the new machine (refer to IPBRICK.IC installation manual)&lt;br /&gt;
* NOTE: you must install exactly the same software version, this means that you must use the same IPBRICK.OS version and the exact same list of IPBRICK packages and/or updates&lt;br /&gt;
* Afterwards you can proceed with the procedure&lt;br /&gt;
&lt;br /&gt;
EX: IPBrick1 New (192.168.69.199) and IPBrick2 OLD (192.168.69.200)&lt;br /&gt;
&lt;br /&gt;
On machine IPBrick1 generate ssh key:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cd /root&lt;br /&gt;
ipbrick1:~# ssh-keygen -t rsa&lt;br /&gt;
#assume default location /root/.ssh/id_rsa&lt;br /&gt;
#enter empty passphrase&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/root/.ssh/id_rsa): &lt;br /&gt;
Enter passphrase (empty for no passphrase): &lt;br /&gt;
Enter same passphrase again: &lt;br /&gt;
Your identification has been saved in /root/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /root/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
3d:90:bf:f3:95:b3:96:6f:9d:90:95:98:69:fd:fb:0b root@ipbrick1&lt;br /&gt;
The key's randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|                 |&lt;br /&gt;
|         .       |&lt;br /&gt;
|        o     = .|&lt;br /&gt;
|         +   = + |&lt;br /&gt;
|        S + . o .|&lt;br /&gt;
|           o o ..|&lt;br /&gt;
|          o  E=.+|&lt;br /&gt;
|           o .+=o|&lt;br /&gt;
|            ...+=|&lt;br /&gt;
+-----------------+&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy contents of public key from IPBrick1 to IPBrick2.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cat /root/ssh/id_rsa.pub &lt;br /&gt;
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pCtg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynReaiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZPVkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Select and copy the output/contents of file id_rsa.pub from IPBrick1 as example above, install it on IPBrick2. Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir -p /home1/_ssh/root/.ssh&lt;br /&gt;
ipbrick2:~# echo &amp;quot;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pCtg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynReaiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZPVkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&amp;quot; &amp;gt;&amp;gt; /home1/_ssh/root/.ssh/authorized_keys&lt;br /&gt;
ipbrick2:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the first root ssh access from ipbrick1 to ipbrick2 using the ssh key.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# ssh -i /root/.ssh/id_rsa root@192.168.69.200&lt;br /&gt;
The authenticity of host '192' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? ^C&lt;br /&gt;
atlas:~# ssh -i /root/.ssh/id_rsa root@localhost&lt;br /&gt;
The authenticity of host '192.168.69.200 (192.168.69.200)' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? yes&lt;br /&gt;
Warning: Permanently added '192.168.69.200' (RSA) to the list of known hosts.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++: System Info :+++++++++++++++++++++++++++++++++&lt;br /&gt;
+         FQDN =  ipbrick2.domain.com&lt;br /&gt;
+   IP address =  192.168.69.200&lt;br /&gt;
+       Kernel =  3.2.0-4-amd64&lt;br /&gt;
+       Uptime =  10:05:02 up 458 days, 32 min, 10 users,  load average: 3.04, 2.51, 2.20&lt;br /&gt;
+   Total CPUs =  4 x Architecture x86_64 @ 2399.734 Hz &lt;br /&gt;
+ Total Memory =  16470664 kB&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ipbrick2:~# logout&lt;br /&gt;
Connection to 192.168.69.200 closed.&lt;br /&gt;
ipbrick1:~#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can access as root from ipbrick1 (NEW, 192.168.69.199)  to ipbrick2 (OLD, 192.168.69.200).&lt;br /&gt;
&lt;br /&gt;
Now lets start the rsync on IPBrick1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home1/ /home1/ &amp;gt; rsync_home1.log 2&amp;gt; rsync_home1.err&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home2/ /home2/ &amp;gt; rsync_home2.log 2&amp;gt; rsync_home2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the logs in this file -&amp;gt; rsync_home1.log&lt;br /&gt;
Or the errors in this file -&amp;gt; rsync_home1.err&lt;br /&gt;
&lt;br /&gt;
Wen the rsync is finish access to web interface and then insert and replace the configuration that you save on your desktop.&lt;br /&gt;
&lt;br /&gt;
After replacing, go to Advanced configuration -&amp;gt; disaster recovery -&amp;gt; aplication -&amp;gt; data bases -&amp;gt; and replace the last one.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wen this Finnish test the services you have on IPBrick.&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration</id>
		<title>IPBrick Disk migration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration"/>
				<updated>2016-05-12T17:26:27Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* IPortalDoc */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is to assist the IT IPBRICK administrator in the process of migrating a running IPBRICK installation from:&lt;br /&gt;
* scenario 1 : one server machine - one disk to another disk on the same server machine&lt;br /&gt;
* scenario 2 : two server machine - one disk to another disk on a different server machine&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''ATTENTION: This is an advanced procedure. The tasks described bellow are to be performed by an IT technician familiar with IPBRICK.IC operating system architecture and linux command line interface. This guide refers to the IPBRICK installation manual and the disaster recovery procedure. Before starting please make sure that you have an up to date backup of all data files, databases and configurations. Proceed at your own risk.'''&lt;br /&gt;
&lt;br /&gt;
=On the original server machine=&lt;br /&gt;
On the original installation, apply configurations and download/save a backup copy configurations file to your Desktop. (Advanced Configurations -&amp;gt; Disaster Recovery -&amp;gt; Download : select the last one with the current timestamp).&lt;br /&gt;
&lt;br /&gt;
Just stop the the services you use.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/init.d/systemmonitor stop&lt;br /&gt;
/etc/init.d/asterisk stop&lt;br /&gt;
/etc/init.d/apache2 stop&lt;br /&gt;
/etc/init.d/ejabberd stop&lt;br /&gt;
/etc/init.d/qmail stop&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Execute this command to backup all the databases.&lt;br /&gt;
* IPBRICK.OS version 6.x or above&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/system/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC versions: 5.3, 5.4 or 5.5&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/ipbox/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== IPortalDoc ==&lt;br /&gt;
If you have IPortalDoc installed, you must backup this database separatelly.&lt;br /&gt;
* IPBRICK.OS version 6.x or above - use '''ipbrickdb_ipb6'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# mkdir /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick1:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# wget http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb6&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb6 --dump --dbname dbdoc --file dbdoc_20160512_1700.sql&lt;br /&gt;
&lt;br /&gt;
STARTING DUMP OF DATABASE dbdoc TO FILE dbdoc_20160512_1717.sql&lt;br /&gt;
&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# ls -al&lt;br /&gt;
total 557380&lt;br /&gt;
drwxr-xr-x  3 root root      4096 May 12 17:17 .&lt;br /&gt;
drwxr-xr-x 10 root root      4096 May 12 17:16 ..&lt;br /&gt;
-rw-r--r--  1 root root 570695550 May 12 17:20 dbdoc_20160512_1700.sql&lt;br /&gt;
drwxr-xr-x  4 root root      4096 May 12 17:17 ipbrick_db&lt;br /&gt;
-rw-r--r--  1 root root     41386 Mar 18  2015 ipbrickdb_ipb6&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC version 5.x - use '''ipbrickdb_ipb5'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# mkdir /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick1:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# wget http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb5&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb5 --dump --dbname dbdoc --file dbdoc_20160512_1700.sql&lt;br /&gt;
&lt;br /&gt;
STARTING DUMP OF DATABASE dbdoc TO FILE dbdoc_20160512_1717.sql&lt;br /&gt;
&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# ls -al&lt;br /&gt;
total 557380&lt;br /&gt;
drwxr-xr-x  3 root root      4096 May 12 17:17 .&lt;br /&gt;
drwxr-xr-x 10 root root      4096 May 12 17:16 ..&lt;br /&gt;
-rw-r--r--  1 root root 570695550 May 12 17:20 dbdoc_20160512_1700.sql&lt;br /&gt;
drwxr-xr-x  4 root root      4096 May 12 17:17 ipbrick_db&lt;br /&gt;
-rw-r--r--  1 root root     41386 Mar 18  2015 ipbrickdb_ipb6&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Scenario 1 - only one server machine=&lt;br /&gt;
Procedure:&lt;br /&gt;
* shutdown the server machine&lt;br /&gt;
* remove/detach the original (old) disk from the server&lt;br /&gt;
* install/attach the replacement (new) disk&lt;br /&gt;
* install the IPBRICK.IC operating system (please refer to IPBRICK.IC installation manual)&lt;br /&gt;
** perform the first boot, proceed with initial setup (FQDN, IP)&lt;br /&gt;
** after finishing installation and initial configuration proceed to the next step&lt;br /&gt;
* with the server power on, connect the old (original) disk using a USB connector&lt;br /&gt;
** now at the command line you can check for the disks&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fdisk -l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* confirm that you have 2 (two) disks: sda (new internal disk) and sdb (old disk connected via usb)&lt;br /&gt;
** you shoudl  be able to identify the partition tables&lt;br /&gt;
* create two temporary folders to map/mount the work areas from the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /old_home1&lt;br /&gt;
mkdir /old_home2&lt;br /&gt;
ls /old_home* -al&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Then we need to mount the partitions we need to copy.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mount /dev/sdb7 /old_home1&lt;br /&gt;
mount /dev/sdb8 /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Now lets start the rsync&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rsync -aAuv /old_home1/ /home1/ &amp;gt; /tmp/rsync_home1.log 2&amp;gt; /tmp/rsync_home1.err &amp;amp;&lt;br /&gt;
rsync -aAuv /old_home2/ /home2/ &amp;gt; /tmp/rsync_home2.log 2&amp;gt; /tmp/rsync_home2.err &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* You can see the logs in these files (log is normal output, err is for status warning)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tail /tmp/rsync_home1.log&lt;br /&gt;
tail /tmp/rsync_home1.err&lt;br /&gt;
tail /tmp/rsync_home2.log&lt;br /&gt;
tail /tmp/rsync_home2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* When the rsync process finishes, you can unmap/unmount the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
umount /old_home1&lt;br /&gt;
umount /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
* after successfull unmount you can disconnect the old disk (usb)&lt;br /&gt;
** NOTE: we recommend you to keep the old disk safe until this procedure is completly finished (backup procedure)&lt;br /&gt;
* Now please access to web interface, insert and replace the configurations file that you have previously saved on your desktop&lt;br /&gt;
** Please refer to the installation manual and/or disaster recover procedure in order to perform settings replacement&lt;br /&gt;
** The server machine performs a reboot&lt;br /&gt;
* After the server boot up, go to IPBRICK web interface, Advanced configurations -&amp;gt; Disaster Recovery -&amp;gt; Aplications -&amp;gt; Databases : for each database, click on the database name, then you get a listing of all the available backups, click on the last timestamp (click on the timestamp, not on the download link), and click on Restore to proceed to restore.&lt;br /&gt;
* When this Finnish test the services you have on IPBrick&lt;br /&gt;
* For the last step you need to re-activate your license - Advanced configurations -&amp;gt; IPBrick -&amp;gt; Web Access : License activation (please refer to the installation manual, license activation)&lt;br /&gt;
&lt;br /&gt;
=Scenario 2 - two server machine=&lt;br /&gt;
Procedure&lt;br /&gt;
* Install the IPBrick on the new machine (refer to IPBRICK.IC installation manual)&lt;br /&gt;
* NOTE: you must install exactly the same software version, this means that you must use the same IPBRICK.OS version and the exact same list of IPBRICK packages and/or updates&lt;br /&gt;
* Afterwards you can proceed with the procedure&lt;br /&gt;
&lt;br /&gt;
EX: IPBrick1 New (192.168.69.199) and IPBrick2 OLD (192.168.69.200)&lt;br /&gt;
&lt;br /&gt;
On machine IPBrick1 generate ssh key:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cd /root&lt;br /&gt;
ipbrick1:~# ssh-keygen -t rsa&lt;br /&gt;
#assume default location /root/.ssh/id_rsa&lt;br /&gt;
#enter empty passphrase&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/root/.ssh/id_rsa): &lt;br /&gt;
Enter passphrase (empty for no passphrase): &lt;br /&gt;
Enter same passphrase again: &lt;br /&gt;
Your identification has been saved in /root/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /root/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
3d:90:bf:f3:95:b3:96:6f:9d:90:95:98:69:fd:fb:0b root@ipbrick1&lt;br /&gt;
The key's randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|                 |&lt;br /&gt;
|         .       |&lt;br /&gt;
|        o     = .|&lt;br /&gt;
|         +   = + |&lt;br /&gt;
|        S + . o .|&lt;br /&gt;
|           o o ..|&lt;br /&gt;
|          o  E=.+|&lt;br /&gt;
|           o .+=o|&lt;br /&gt;
|            ...+=|&lt;br /&gt;
+-----------------+&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy contents of public key from IPBrick1 to IPBrick2.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cat /root/ssh/id_rsa.pub &lt;br /&gt;
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pCtg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynReaiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZPVkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Select and copy the output/contents of file id_rsa.pub from IPBrick1 as example above, install it on IPBrick2. Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir -p /home1/_ssh/root/.ssh&lt;br /&gt;
ipbrick2:~# echo &amp;quot;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pCtg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynReaiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZPVkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&amp;quot; &amp;gt;&amp;gt; /home1/_ssh/root/.ssh/authorized_keys&lt;br /&gt;
ipbrick2:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the first root ssh access from ipbrick1 to ipbrick2 using the ssh key.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# ssh -i /root/.ssh/id_rsa root@192.168.69.200&lt;br /&gt;
The authenticity of host '192' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? ^C&lt;br /&gt;
atlas:~# ssh -i /root/.ssh/id_rsa root@localhost&lt;br /&gt;
The authenticity of host '192.168.69.200 (192.168.69.200)' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? yes&lt;br /&gt;
Warning: Permanently added '192.168.69.200' (RSA) to the list of known hosts.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++: System Info :+++++++++++++++++++++++++++++++++&lt;br /&gt;
+         FQDN =  ipbrick2.domain.com&lt;br /&gt;
+   IP address =  192.168.69.200&lt;br /&gt;
+       Kernel =  3.2.0-4-amd64&lt;br /&gt;
+       Uptime =  10:05:02 up 458 days, 32 min, 10 users,  load average: 3.04, 2.51, 2.20&lt;br /&gt;
+   Total CPUs =  4 x Architecture x86_64 @ 2399.734 Hz &lt;br /&gt;
+ Total Memory =  16470664 kB&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ipbrick2:~# logout&lt;br /&gt;
Connection to 192.168.69.200 closed.&lt;br /&gt;
ipbrick1:~#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can access as root from ipbrick1 (NEW, 192.168.69.199)  to ipbrick2 (OLD, 192.168.69.200).&lt;br /&gt;
&lt;br /&gt;
Now lets start the rsync on IPBrick1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home1/ /home1/ &amp;gt; rsync_home1.log 2&amp;gt; rsync_home1.err&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home2/ /home2/ &amp;gt; rsync_home2.log 2&amp;gt; rsync_home2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the logs in this file -&amp;gt; rsync_home1.log&lt;br /&gt;
Or the errors in this file -&amp;gt; rsync_home1.err&lt;br /&gt;
&lt;br /&gt;
Wen the rsync is finish access to web interface and then insert and replace the configuration that you save on your desktop.&lt;br /&gt;
&lt;br /&gt;
After replacing, go to Advanced configuration -&amp;gt; disaster recovery -&amp;gt; aplication -&amp;gt; data bases -&amp;gt; and replace the last one.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wen this Finnish test the services you have on IPBrick.&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration</id>
		<title>IPBrick Disk migration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration"/>
				<updated>2016-05-12T17:24:13Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* IPortalDoc */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is to assist the IT IPBRICK administrator in the process of migrating a running IPBRICK installation from:&lt;br /&gt;
* scenario 1 : one server machine - one disk to another disk on the same server machine&lt;br /&gt;
* scenario 2 : two server machine - one disk to another disk on a different server machine&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''ATTENTION: This is an advanced procedure. The tasks described bellow are to be performed by an IT technician familiar with IPBRICK.IC operating system architecture and linux command line interface. This guide refers to the IPBRICK installation manual and the disaster recovery procedure. Before starting please make sure that you have an up to date backup of all data files, databases and configurations. Proceed at your own risk.'''&lt;br /&gt;
&lt;br /&gt;
=On the original server machine=&lt;br /&gt;
On the original installation, apply configurations and download/save a backup copy configurations file to your Desktop. (Advanced Configurations -&amp;gt; Disaster Recovery -&amp;gt; Download : select the last one with the current timestamp).&lt;br /&gt;
&lt;br /&gt;
Just stop the the services you use.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/init.d/systemmonitor stop&lt;br /&gt;
/etc/init.d/asterisk stop&lt;br /&gt;
/etc/init.d/apache2 stop&lt;br /&gt;
/etc/init.d/ejabberd stop&lt;br /&gt;
/etc/init.d/qmail stop&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Execute this command to backup all the databases.&lt;br /&gt;
* IPBRICK.OS version 6.x or above&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/system/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC versions: 5.3, 5.4 or 5.5&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/ipbox/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== IPortalDoc ==&lt;br /&gt;
If you have IPortalDoc installed, you must backup this database separatelly.&lt;br /&gt;
* IPBRICK.OS version 6.x or above&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# mkdir /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick1:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# wget http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb6&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb6 --dump --dbname dbdoc --file dbdoc_20160512_1700.sql&lt;br /&gt;
&lt;br /&gt;
STARTING DUMP OF DATABASE dbdoc TO FILE dbdoc_20160512_1717.sql&lt;br /&gt;
&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# ls -al&lt;br /&gt;
total 557380&lt;br /&gt;
drwxr-xr-x  3 root root      4096 May 12 17:17 .&lt;br /&gt;
drwxr-xr-x 10 root root      4096 May 12 17:16 ..&lt;br /&gt;
-rw-r--r--  1 root root 570695550 May 12 17:20 dbdoc_20160512_1700.sql&lt;br /&gt;
drwxr-xr-x  4 root root      4096 May 12 17:17 ipbrick_db&lt;br /&gt;
-rw-r--r--  1 root root     41386 Mar 18  2015 ipbrickdb_ipb6&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC version 5.x&lt;br /&gt;
&lt;br /&gt;
=Scenario 1 - only one server machine=&lt;br /&gt;
Procedure:&lt;br /&gt;
* shutdown the server machine&lt;br /&gt;
* remove/detach the original (old) disk from the server&lt;br /&gt;
* install/attach the replacement (new) disk&lt;br /&gt;
* install the IPBRICK.IC operating system (please refer to IPBRICK.IC installation manual)&lt;br /&gt;
** perform the first boot, proceed with initial setup (FQDN, IP)&lt;br /&gt;
** after finishing installation and initial configuration proceed to the next step&lt;br /&gt;
* with the server power on, connect the old (original) disk using a USB connector&lt;br /&gt;
** now at the command line you can check for the disks&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fdisk -l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* confirm that you have 2 (two) disks: sda (new internal disk) and sdb (old disk connected via usb)&lt;br /&gt;
** you shoudl  be able to identify the partition tables&lt;br /&gt;
* create two temporary folders to map/mount the work areas from the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /old_home1&lt;br /&gt;
mkdir /old_home2&lt;br /&gt;
ls /old_home* -al&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Then we need to mount the partitions we need to copy.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mount /dev/sdb7 /old_home1&lt;br /&gt;
mount /dev/sdb8 /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Now lets start the rsync&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rsync -aAuv /old_home1/ /home1/ &amp;gt; /tmp/rsync_home1.log 2&amp;gt; /tmp/rsync_home1.err &amp;amp;&lt;br /&gt;
rsync -aAuv /old_home2/ /home2/ &amp;gt; /tmp/rsync_home2.log 2&amp;gt; /tmp/rsync_home2.err &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* You can see the logs in these files (log is normal output, err is for status warning)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tail /tmp/rsync_home1.log&lt;br /&gt;
tail /tmp/rsync_home1.err&lt;br /&gt;
tail /tmp/rsync_home2.log&lt;br /&gt;
tail /tmp/rsync_home2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* When the rsync process finishes, you can unmap/unmount the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
umount /old_home1&lt;br /&gt;
umount /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
* after successfull unmount you can disconnect the old disk (usb)&lt;br /&gt;
** NOTE: we recommend you to keep the old disk safe until this procedure is completly finished (backup procedure)&lt;br /&gt;
* Now please access to web interface, insert and replace the configurations file that you have previously saved on your desktop&lt;br /&gt;
** Please refer to the installation manual and/or disaster recover procedure in order to perform settings replacement&lt;br /&gt;
** The server machine performs a reboot&lt;br /&gt;
* After the server boot up, go to IPBRICK web interface, Advanced configurations -&amp;gt; Disaster Recovery -&amp;gt; Aplications -&amp;gt; Databases : for each database, click on the database name, then you get a listing of all the available backups, click on the last timestamp (click on the timestamp, not on the download link), and click on Restore to proceed to restore.&lt;br /&gt;
* When this Finnish test the services you have on IPBrick&lt;br /&gt;
* For the last step you need to re-activate your license - Advanced configurations -&amp;gt; IPBrick -&amp;gt; Web Access : License activation (please refer to the installation manual, license activation)&lt;br /&gt;
&lt;br /&gt;
=Scenario 2 - two server machine=&lt;br /&gt;
Procedure&lt;br /&gt;
* Install the IPBrick on the new machine (refer to IPBRICK.IC installation manual)&lt;br /&gt;
* NOTE: you must install exactly the same software version, this means that you must use the same IPBRICK.OS version and the exact same list of IPBRICK packages and/or updates&lt;br /&gt;
* Afterwards you can proceed with the procedure&lt;br /&gt;
&lt;br /&gt;
EX: IPBrick1 New (192.168.69.199) and IPBrick2 OLD (192.168.69.200)&lt;br /&gt;
&lt;br /&gt;
On machine IPBrick1 generate ssh key:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cd /root&lt;br /&gt;
ipbrick1:~# ssh-keygen -t rsa&lt;br /&gt;
#assume default location /root/.ssh/id_rsa&lt;br /&gt;
#enter empty passphrase&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/root/.ssh/id_rsa): &lt;br /&gt;
Enter passphrase (empty for no passphrase): &lt;br /&gt;
Enter same passphrase again: &lt;br /&gt;
Your identification has been saved in /root/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /root/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
3d:90:bf:f3:95:b3:96:6f:9d:90:95:98:69:fd:fb:0b root@ipbrick1&lt;br /&gt;
The key's randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|                 |&lt;br /&gt;
|         .       |&lt;br /&gt;
|        o     = .|&lt;br /&gt;
|         +   = + |&lt;br /&gt;
|        S + . o .|&lt;br /&gt;
|           o o ..|&lt;br /&gt;
|          o  E=.+|&lt;br /&gt;
|           o .+=o|&lt;br /&gt;
|            ...+=|&lt;br /&gt;
+-----------------+&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy contents of public key from IPBrick1 to IPBrick2.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cat /root/ssh/id_rsa.pub &lt;br /&gt;
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pCtg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynReaiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZPVkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Select and copy the output/contents of file id_rsa.pub from IPBrick1 as example above, install it on IPBrick2. Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir -p /home1/_ssh/root/.ssh&lt;br /&gt;
ipbrick2:~# echo &amp;quot;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pCtg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynReaiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZPVkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&amp;quot; &amp;gt;&amp;gt; /home1/_ssh/root/.ssh/authorized_keys&lt;br /&gt;
ipbrick2:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the first root ssh access from ipbrick1 to ipbrick2 using the ssh key.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# ssh -i /root/.ssh/id_rsa root@192.168.69.200&lt;br /&gt;
The authenticity of host '192' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? ^C&lt;br /&gt;
atlas:~# ssh -i /root/.ssh/id_rsa root@localhost&lt;br /&gt;
The authenticity of host '192.168.69.200 (192.168.69.200)' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? yes&lt;br /&gt;
Warning: Permanently added '192.168.69.200' (RSA) to the list of known hosts.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++: System Info :+++++++++++++++++++++++++++++++++&lt;br /&gt;
+         FQDN =  ipbrick2.domain.com&lt;br /&gt;
+   IP address =  192.168.69.200&lt;br /&gt;
+       Kernel =  3.2.0-4-amd64&lt;br /&gt;
+       Uptime =  10:05:02 up 458 days, 32 min, 10 users,  load average: 3.04, 2.51, 2.20&lt;br /&gt;
+   Total CPUs =  4 x Architecture x86_64 @ 2399.734 Hz &lt;br /&gt;
+ Total Memory =  16470664 kB&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ipbrick2:~# logout&lt;br /&gt;
Connection to 192.168.69.200 closed.&lt;br /&gt;
ipbrick1:~#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can access as root from ipbrick1 (NEW, 192.168.69.199)  to ipbrick2 (OLD, 192.168.69.200).&lt;br /&gt;
&lt;br /&gt;
Now lets start the rsync on IPBrick1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home1/ /home1/ &amp;gt; rsync_home1.log 2&amp;gt; rsync_home1.err&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home2/ /home2/ &amp;gt; rsync_home2.log 2&amp;gt; rsync_home2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the logs in this file -&amp;gt; rsync_home1.log&lt;br /&gt;
Or the errors in this file -&amp;gt; rsync_home1.err&lt;br /&gt;
&lt;br /&gt;
Wen the rsync is finish access to web interface and then insert and replace the configuration that you save on your desktop.&lt;br /&gt;
&lt;br /&gt;
After replacing, go to Advanced configuration -&amp;gt; disaster recovery -&amp;gt; aplication -&amp;gt; data bases -&amp;gt; and replace the last one.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wen this Finnish test the services you have on IPBrick.&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration</id>
		<title>IPBrick Disk migration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration"/>
				<updated>2016-05-12T17:23:54Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* On the original server machine */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is to assist the IT IPBRICK administrator in the process of migrating a running IPBRICK installation from:&lt;br /&gt;
* scenario 1 : one server machine - one disk to another disk on the same server machine&lt;br /&gt;
* scenario 2 : two server machine - one disk to another disk on a different server machine&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''ATTENTION: This is an advanced procedure. The tasks described bellow are to be performed by an IT technician familiar with IPBRICK.IC operating system architecture and linux command line interface. This guide refers to the IPBRICK installation manual and the disaster recovery procedure. Before starting please make sure that you have an up to date backup of all data files, databases and configurations. Proceed at your own risk.'''&lt;br /&gt;
&lt;br /&gt;
=On the original server machine=&lt;br /&gt;
On the original installation, apply configurations and download/save a backup copy configurations file to your Desktop. (Advanced Configurations -&amp;gt; Disaster Recovery -&amp;gt; Download : select the last one with the current timestamp).&lt;br /&gt;
&lt;br /&gt;
Just stop the the services you use.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/init.d/systemmonitor stop&lt;br /&gt;
/etc/init.d/asterisk stop&lt;br /&gt;
/etc/init.d/apache2 stop&lt;br /&gt;
/etc/init.d/ejabberd stop&lt;br /&gt;
/etc/init.d/qmail stop&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Execute this command to backup all the databases.&lt;br /&gt;
* IPBRICK.OS version 6.x or above&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/system/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC versions: 5.3, 5.4 or 5.5&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/ipbox/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== IPortalDoc ==&lt;br /&gt;
If you have IPortalDoc installed, you must backup this database separatelly.&lt;br /&gt;
* IPBRICK.OS version 6.x or above&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# mkdir /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick1:~# cd /home2/_backup_db_dbdoc&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# wget http://downloads3.ipbrick.com/wiki/ipbrickdb_ipb6&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# php5 ipbrickdb_ipb6 --dump --dbname dbdoc --file dbdoc_20160512_1700.sql&lt;br /&gt;
&lt;br /&gt;
STARTING DUMP OF DATABASE dbdoc TO FILE dbdoc_20160512_1717.sql&lt;br /&gt;
&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc# ls -al&lt;br /&gt;
total 557380&lt;br /&gt;
drwxr-xr-x  3 root root      4096 May 12 17:17 .&lt;br /&gt;
drwxr-xr-x 10 root root      4096 May 12 17:16 ..&lt;br /&gt;
-rw-r--r--  1 root root 570695550 May 12 17:20 dbdoc_20160512_1700.sql&lt;br /&gt;
drwxr-xr-x  4 root root      4096 May 12 17:17 ipbrick_db&lt;br /&gt;
-rw-r--r--  1 root root     41386 Mar 18  2015 ipbrickdb_ipb6&lt;br /&gt;
ipbrick1:/home2/_backup_db_dbdoc#&lt;br /&gt;
* IPBRICK.IC version 5.x&lt;br /&gt;
&lt;br /&gt;
=Scenario 1 - only one server machine=&lt;br /&gt;
Procedure:&lt;br /&gt;
* shutdown the server machine&lt;br /&gt;
* remove/detach the original (old) disk from the server&lt;br /&gt;
* install/attach the replacement (new) disk&lt;br /&gt;
* install the IPBRICK.IC operating system (please refer to IPBRICK.IC installation manual)&lt;br /&gt;
** perform the first boot, proceed with initial setup (FQDN, IP)&lt;br /&gt;
** after finishing installation and initial configuration proceed to the next step&lt;br /&gt;
* with the server power on, connect the old (original) disk using a USB connector&lt;br /&gt;
** now at the command line you can check for the disks&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fdisk -l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* confirm that you have 2 (two) disks: sda (new internal disk) and sdb (old disk connected via usb)&lt;br /&gt;
** you shoudl  be able to identify the partition tables&lt;br /&gt;
* create two temporary folders to map/mount the work areas from the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /old_home1&lt;br /&gt;
mkdir /old_home2&lt;br /&gt;
ls /old_home* -al&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Then we need to mount the partitions we need to copy.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mount /dev/sdb7 /old_home1&lt;br /&gt;
mount /dev/sdb8 /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Now lets start the rsync&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rsync -aAuv /old_home1/ /home1/ &amp;gt; /tmp/rsync_home1.log 2&amp;gt; /tmp/rsync_home1.err &amp;amp;&lt;br /&gt;
rsync -aAuv /old_home2/ /home2/ &amp;gt; /tmp/rsync_home2.log 2&amp;gt; /tmp/rsync_home2.err &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* You can see the logs in these files (log is normal output, err is for status warning)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tail /tmp/rsync_home1.log&lt;br /&gt;
tail /tmp/rsync_home1.err&lt;br /&gt;
tail /tmp/rsync_home2.log&lt;br /&gt;
tail /tmp/rsync_home2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* When the rsync process finishes, you can unmap/unmount the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
umount /old_home1&lt;br /&gt;
umount /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
* after successfull unmount you can disconnect the old disk (usb)&lt;br /&gt;
** NOTE: we recommend you to keep the old disk safe until this procedure is completly finished (backup procedure)&lt;br /&gt;
* Now please access to web interface, insert and replace the configurations file that you have previously saved on your desktop&lt;br /&gt;
** Please refer to the installation manual and/or disaster recover procedure in order to perform settings replacement&lt;br /&gt;
** The server machine performs a reboot&lt;br /&gt;
* After the server boot up, go to IPBRICK web interface, Advanced configurations -&amp;gt; Disaster Recovery -&amp;gt; Aplications -&amp;gt; Databases : for each database, click on the database name, then you get a listing of all the available backups, click on the last timestamp (click on the timestamp, not on the download link), and click on Restore to proceed to restore.&lt;br /&gt;
* When this Finnish test the services you have on IPBrick&lt;br /&gt;
* For the last step you need to re-activate your license - Advanced configurations -&amp;gt; IPBrick -&amp;gt; Web Access : License activation (please refer to the installation manual, license activation)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Scenario 2 - two server machine=&lt;br /&gt;
Procedure&lt;br /&gt;
* Install the IPBrick on the new machine (refer to IPBRICK.IC installation manual)&lt;br /&gt;
* NOTE: you must install exactly the same software version, this means that you must use the same IPBRICK.OS version and the exact same list of IPBRICK packages and/or updates&lt;br /&gt;
* Afterwards you can proceed with the procedure&lt;br /&gt;
&lt;br /&gt;
EX: IPBrick1 New (192.168.69.199) and IPBrick2 OLD (192.168.69.200)&lt;br /&gt;
&lt;br /&gt;
On machine IPBrick1 generate ssh key:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cd /root&lt;br /&gt;
ipbrick1:~# ssh-keygen -t rsa&lt;br /&gt;
#assume default location /root/.ssh/id_rsa&lt;br /&gt;
#enter empty passphrase&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/root/.ssh/id_rsa): &lt;br /&gt;
Enter passphrase (empty for no passphrase): &lt;br /&gt;
Enter same passphrase again: &lt;br /&gt;
Your identification has been saved in /root/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /root/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
3d:90:bf:f3:95:b3:96:6f:9d:90:95:98:69:fd:fb:0b root@ipbrick1&lt;br /&gt;
The key's randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|                 |&lt;br /&gt;
|         .       |&lt;br /&gt;
|        o     = .|&lt;br /&gt;
|         +   = + |&lt;br /&gt;
|        S + . o .|&lt;br /&gt;
|           o o ..|&lt;br /&gt;
|          o  E=.+|&lt;br /&gt;
|           o .+=o|&lt;br /&gt;
|            ...+=|&lt;br /&gt;
+-----------------+&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy contents of public key from IPBrick1 to IPBrick2.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cat /root/ssh/id_rsa.pub &lt;br /&gt;
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pCtg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynReaiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZPVkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Select and copy the output/contents of file id_rsa.pub from IPBrick1 as example above, install it on IPBrick2. Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir -p /home1/_ssh/root/.ssh&lt;br /&gt;
ipbrick2:~# echo &amp;quot;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pCtg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynReaiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZPVkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&amp;quot; &amp;gt;&amp;gt; /home1/_ssh/root/.ssh/authorized_keys&lt;br /&gt;
ipbrick2:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the first root ssh access from ipbrick1 to ipbrick2 using the ssh key.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# ssh -i /root/.ssh/id_rsa root@192.168.69.200&lt;br /&gt;
The authenticity of host '192' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? ^C&lt;br /&gt;
atlas:~# ssh -i /root/.ssh/id_rsa root@localhost&lt;br /&gt;
The authenticity of host '192.168.69.200 (192.168.69.200)' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? yes&lt;br /&gt;
Warning: Permanently added '192.168.69.200' (RSA) to the list of known hosts.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++: System Info :+++++++++++++++++++++++++++++++++&lt;br /&gt;
+         FQDN =  ipbrick2.domain.com&lt;br /&gt;
+   IP address =  192.168.69.200&lt;br /&gt;
+       Kernel =  3.2.0-4-amd64&lt;br /&gt;
+       Uptime =  10:05:02 up 458 days, 32 min, 10 users,  load average: 3.04, 2.51, 2.20&lt;br /&gt;
+   Total CPUs =  4 x Architecture x86_64 @ 2399.734 Hz &lt;br /&gt;
+ Total Memory =  16470664 kB&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ipbrick2:~# logout&lt;br /&gt;
Connection to 192.168.69.200 closed.&lt;br /&gt;
ipbrick1:~#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can access as root from ipbrick1 (NEW, 192.168.69.199)  to ipbrick2 (OLD, 192.168.69.200).&lt;br /&gt;
&lt;br /&gt;
Now lets start the rsync on IPBrick1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home1/ /home1/ &amp;gt; rsync_home1.log 2&amp;gt; rsync_home1.err&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home2/ /home2/ &amp;gt; rsync_home2.log 2&amp;gt; rsync_home2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the logs in this file -&amp;gt; rsync_home1.log&lt;br /&gt;
Or the errors in this file -&amp;gt; rsync_home1.err&lt;br /&gt;
&lt;br /&gt;
Wen the rsync is finish access to web interface and then insert and replace the configuration that you save on your desktop.&lt;br /&gt;
&lt;br /&gt;
After replacing, go to Advanced configuration -&amp;gt; disaster recovery -&amp;gt; aplication -&amp;gt; data bases -&amp;gt; and replace the last one.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wen this Finnish test the services you have on IPBrick.&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration</id>
		<title>IPBrick Disk migration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration"/>
				<updated>2016-05-12T16:48:14Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* Scenario 2 - two server machine */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is to assist the IT IPBRICK administrator in the process of migrating a running IPBRICK installation from:&lt;br /&gt;
* scenario 1 : one server machine - one disk to another disk on the same server machine&lt;br /&gt;
* scenario 2 : two server machine - one disk to another disk on a different server machine&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''ATTENTION: This is an advanced procedure. The tasks described bellow are to be performed by an IT technician familiar with IPBRICK.IC operating system architecture and linux command line interface. This guide refers to the IPBRICK installation manual and the disaster recovery procedure. Before starting please make sure that you have an up to date backup of all data files, databases and configurations. Proceed at your own risk.'''&lt;br /&gt;
&lt;br /&gt;
=On the original server machine=&lt;br /&gt;
On the original installation, apply configurations and download/save a backup copy configurations file to your Desktop. (Advanced Configurations -&amp;gt; Disaster Recovery -&amp;gt; Download : select the last one with the current timestamp).&lt;br /&gt;
&lt;br /&gt;
Just stop the the services you use.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/init.d/systemmonitor stop&lt;br /&gt;
/etc/init.d/asterisk stop&lt;br /&gt;
/etc/init.d/apache2 stop&lt;br /&gt;
/etc/init.d/ejabberd stop&lt;br /&gt;
/etc/init.d/qmail stop&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Execute this command to backup all the data bases.&lt;br /&gt;
* IPBRICK.IC version v6.0 or above&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/system/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC versions: 5.3, 5.4 or 5.5&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/ipbox/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Scenario 1 - only one server machine=&lt;br /&gt;
Procedure:&lt;br /&gt;
* shutdown the server machine&lt;br /&gt;
* remove/detach the original (old) disk from the server&lt;br /&gt;
* install/attach the replacement (new) disk&lt;br /&gt;
* install the IPBRICK.IC operating system (please refer to IPBRICK.IC installation manual)&lt;br /&gt;
** perform the first boot, proceed with initial setup (FQDN, IP)&lt;br /&gt;
** after finishing installation and initial configuration proceed to the next step&lt;br /&gt;
* with the server power on, connect the old (original) disk using a USB connector&lt;br /&gt;
** now at the command line you can check for the disks&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fdisk -l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* confirm that you have 2 (two) disks: sda (new internal disk) and sdb (old disk connected via usb)&lt;br /&gt;
** you shoudl  be able to identify the partition tables&lt;br /&gt;
* create two temporary folders to map/mount the work areas from the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /old_home1&lt;br /&gt;
mkdir /old_home2&lt;br /&gt;
ls /old_home* -al&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Then we need to mount the partitions we need to copy.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mount /dev/sdb7 /old_home1&lt;br /&gt;
mount /dev/sdb8 /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Now lets start the rsync&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rsync -aAuv /old_home1/ /home1/ &amp;gt; /tmp/rsync_home1.log 2&amp;gt; /tmp/rsync_home1.err &amp;amp;&lt;br /&gt;
rsync -aAuv /old_home2/ /home2/ &amp;gt; /tmp/rsync_home2.log 2&amp;gt; /tmp/rsync_home2.err &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* You can see the logs in these files (log is normal output, err is for status warning)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tail /tmp/rsync_home1.log&lt;br /&gt;
tail /tmp/rsync_home1.err&lt;br /&gt;
tail /tmp/rsync_home2.log&lt;br /&gt;
tail /tmp/rsync_home2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* When the rsync process finishes, you can unmap/unmount the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
umount /old_home1&lt;br /&gt;
umount /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
* after successfull unmount you can disconnect the old disk (usb)&lt;br /&gt;
** NOTE: we recommend you to keep the old disk safe until this procedure is completly finished (backup procedure)&lt;br /&gt;
* Now please access to web interface, insert and replace the configurations file that you have previously saved on your desktop&lt;br /&gt;
** Please refer to the installation manual and/or disaster recover procedure in order to perform settings replacement&lt;br /&gt;
** The server machine performs a reboot&lt;br /&gt;
* After the server boot up, go to IPBRICK web interface, Advanced configurations -&amp;gt; Disaster Recovery -&amp;gt; Aplications -&amp;gt; Databases : for each database, click on the database name, then you get a listing of all the available backups, click on the last timestamp (click on the timestamp, not on the download link), and click on Restore to proceed to restore.&lt;br /&gt;
* When this Finnish test the services you have on IPBrick&lt;br /&gt;
* For the last step you need to re-activate your license - Advanced configurations -&amp;gt; IPBrick -&amp;gt; Web Access : License activation (please refer to the installation manual, license activation)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Scenario 2 - two server machine=&lt;br /&gt;
Procedure&lt;br /&gt;
* Install the IPBrick on the new machine (refer to IPBRICK.IC installation manual)&lt;br /&gt;
* NOTE: you must install exactly the same software version, this means that you must use the same IPBRICK.OS version and the exact same list of IPBRICK packages and/or updates&lt;br /&gt;
* Afterwards you can proceed with the procedure&lt;br /&gt;
&lt;br /&gt;
EX: IPBrick1 New (192.168.69.199) and IPBrick2 OLD (192.168.69.200)&lt;br /&gt;
&lt;br /&gt;
On machine IPBrick1 generate ssh key:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cd /root&lt;br /&gt;
ipbrick1:~# ssh-keygen -t rsa&lt;br /&gt;
#assume default location /root/.ssh/id_rsa&lt;br /&gt;
#enter empty passphrase&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/root/.ssh/id_rsa): &lt;br /&gt;
Enter passphrase (empty for no passphrase): &lt;br /&gt;
Enter same passphrase again: &lt;br /&gt;
Your identification has been saved in /root/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /root/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
3d:90:bf:f3:95:b3:96:6f:9d:90:95:98:69:fd:fb:0b root@ipbrick1&lt;br /&gt;
The key's randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|                 |&lt;br /&gt;
|         .       |&lt;br /&gt;
|        o     = .|&lt;br /&gt;
|         +   = + |&lt;br /&gt;
|        S + . o .|&lt;br /&gt;
|           o o ..|&lt;br /&gt;
|          o  E=.+|&lt;br /&gt;
|           o .+=o|&lt;br /&gt;
|            ...+=|&lt;br /&gt;
+-----------------+&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy contents of public key from IPBrick1 to IPBrick2.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cat /root/ssh/id_rsa.pub &lt;br /&gt;
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pCtg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynReaiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZPVkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Select and copy the output/contents of file id_rsa.pub from IPBrick1 as example above, install it on IPBrick2. Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir -p /home1/_ssh/root/.ssh&lt;br /&gt;
ipbrick2:~# echo &amp;quot;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pCtg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynReaiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZPVkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&amp;quot; &amp;gt;&amp;gt; /home1/_ssh/root/.ssh/authorized_keys&lt;br /&gt;
ipbrick2:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the first root ssh access from ipbrick1 to ipbrick2 using the ssh key.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# ssh -i /root/.ssh/id_rsa root@192.168.69.200&lt;br /&gt;
The authenticity of host '192' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? ^C&lt;br /&gt;
atlas:~# ssh -i /root/.ssh/id_rsa root@localhost&lt;br /&gt;
The authenticity of host '192.168.69.200 (192.168.69.200)' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? yes&lt;br /&gt;
Warning: Permanently added '192.168.69.200' (RSA) to the list of known hosts.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++: System Info :+++++++++++++++++++++++++++++++++&lt;br /&gt;
+         FQDN =  ipbrick2.domain.com&lt;br /&gt;
+   IP address =  192.168.69.200&lt;br /&gt;
+       Kernel =  3.2.0-4-amd64&lt;br /&gt;
+       Uptime =  10:05:02 up 458 days, 32 min, 10 users,  load average: 3.04, 2.51, 2.20&lt;br /&gt;
+   Total CPUs =  4 x Architecture x86_64 @ 2399.734 Hz &lt;br /&gt;
+ Total Memory =  16470664 kB&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ipbrick2:~# logout&lt;br /&gt;
Connection to 192.168.69.200 closed.&lt;br /&gt;
ipbrick1:~#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can access as root from ipbrick1 (NEW, 192.168.69.199)  to ipbrick2 (OLD, 192.168.69.200).&lt;br /&gt;
&lt;br /&gt;
Now lets start the rsync on IPBrick1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home1/ /home1/ &amp;gt; rsync_home1.log 2&amp;gt; rsync_home1.err&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home2/ /home2/ &amp;gt; rsync_home2.log 2&amp;gt; rsync_home2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the logs in this file -&amp;gt; rsync_home1.log&lt;br /&gt;
Or the errors in this file -&amp;gt; rsync_home1.err&lt;br /&gt;
&lt;br /&gt;
Wen the rsync is finish access to web interface and then insert and replace the configuration that you save on your desktop.&lt;br /&gt;
&lt;br /&gt;
After replacing, go to Advanced configuration -&amp;gt; disaster recovery -&amp;gt; aplication -&amp;gt; data bases -&amp;gt; and replace the last one.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wen this Finnish test the services you have on IPBrick.&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration</id>
		<title>IPBrick Disk migration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration"/>
				<updated>2016-05-09T16:30:56Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* On the original server machine */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is to assist the IT IPBRICK administrator in the process of migrating a running IPBRICK installation from:&lt;br /&gt;
* scenario 1 : one server machine - one disk to another disk on the same server machine&lt;br /&gt;
* scenario 2 : two server machine - one disk to another disk on a different server machine&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''ATTENTION: This is an advanced procedure. The tasks described bellow are to be performed by an IT technician familiar with IPBRICK.IC operating system architecture and linux command line interface. This guide refers to the IPBRICK installation manual and the disaster recovery procedure. Before starting please make sure that you have an up to date backup of all data files, databases and configurations. Proceed at your own risk.'''&lt;br /&gt;
&lt;br /&gt;
=On the original server machine=&lt;br /&gt;
On the original installation, apply configurations and download/save a backup copy configurations file to your Desktop. (Advanced Configurations -&amp;gt; Disaster Recovery -&amp;gt; Download : select the last one with the current timestamp).&lt;br /&gt;
&lt;br /&gt;
Just stop the the services you use.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/init.d/systemmonitor stop&lt;br /&gt;
/etc/init.d/asterisk stop&lt;br /&gt;
/etc/init.d/apache2 stop&lt;br /&gt;
/etc/init.d/ejabberd stop&lt;br /&gt;
/etc/init.d/qmail stop&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Execute this command to backup all the data bases.&lt;br /&gt;
* IPBRICK.IC version v6.0 or above&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/system/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC versions: 5.3, 5.4 or 5.5&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/ipbox/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Scenario 1 - only one server machine=&lt;br /&gt;
Procedure:&lt;br /&gt;
* shutdown the server machine&lt;br /&gt;
* remove/detach the original (old) disk from the server&lt;br /&gt;
* install/attach the replacement (new) disk&lt;br /&gt;
* install the IPBRICK.IC operating system (please refer to IPBRICK.IC installation manual)&lt;br /&gt;
** perform the first boot, proceed with initial setup (FQDN, IP)&lt;br /&gt;
** after finishing installation and initial configuration proceed to the next step&lt;br /&gt;
* with the server power on, connect the old (original) disk using a USB connector&lt;br /&gt;
** now at the command line you can check for the disks&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fdisk -l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* confirm that you have 2 (two) disks: sda (new internal disk) and sdb (old disk connected via usb)&lt;br /&gt;
** you shoudl  be able to identify the partition tables&lt;br /&gt;
* create two temporary folders to map/mount the work areas from the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /old_home1&lt;br /&gt;
mkdir /old_home2&lt;br /&gt;
ls /old_home* -al&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Then we need to mount the partitions we need to copy.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mount /dev/sdb7 /old_home1&lt;br /&gt;
mount /dev/sdb8 /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Now lets start the rsync&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rsync -aAuv /old_home1/ /home1/ &amp;gt; /tmp/rsync_home1.log 2&amp;gt; /tmp/rsync_home1.err &amp;amp;&lt;br /&gt;
rsync -aAuv /old_home2/ /home2/ &amp;gt; /tmp/rsync_home2.log 2&amp;gt; /tmp/rsync_home2.err &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* You can see the logs in these files (log is normal output, err is for status warning)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tail /tmp/rsync_home1.log&lt;br /&gt;
tail /tmp/rsync_home1.err&lt;br /&gt;
tail /tmp/rsync_home2.log&lt;br /&gt;
tail /tmp/rsync_home2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* When the rsync process finishes, you can unmap/unmount the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
umount /old_home1&lt;br /&gt;
umount /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
* after successfull unmount you can disconnect the old disk (usb)&lt;br /&gt;
** NOTE: we recommend you to keep the old disk safe until this procedure is completly finished (backup procedure)&lt;br /&gt;
* Now please access to web interface, insert and replace the configurations file that you have previously saved on your desktop&lt;br /&gt;
** Please refer to the installation manual and/or disaster recover procedure in order to perform settings replacement&lt;br /&gt;
** The server machine performs a reboot&lt;br /&gt;
* After the server boot up, go to IPBRICK web interface, Advanced configurations -&amp;gt; Disaster Recovery -&amp;gt; Aplications -&amp;gt; Databases : for each database, click on the database name, then you get a listing of all the available backups, click on the last timestamp (click on the timestamp, not on the download link), and click on Restore to proceed to restore.&lt;br /&gt;
* When this Finnish test the services you have on IPBrick&lt;br /&gt;
* For the last step you need to re-activate your license - Advanced configurations -&amp;gt; IPBrick -&amp;gt; Web Access : License activation (please refer to the installation manual, license activation)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Scenario 2 - two server machine=&lt;br /&gt;
Procedure&lt;br /&gt;
* Install the IPBrick on the new machine (refer to IPBRICK.IC installation manual)&lt;br /&gt;
&lt;br /&gt;
EX: IPBrick1 New (192.168.69.199) and IPBrick2 OLD (192.168.69.200)&lt;br /&gt;
&lt;br /&gt;
On machine IPBrick1 generate ssh key:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cd /root&lt;br /&gt;
ipbrick1:~# ssh-keygen -t rsa&lt;br /&gt;
#assume default location /root/.ssh/id_rsa&lt;br /&gt;
#enter empty passphrase&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/root/.ssh/id_rsa): &lt;br /&gt;
Enter passphrase (empty for no passphrase): &lt;br /&gt;
Enter same passphrase again: &lt;br /&gt;
Your identification has been saved in /root/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /root/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
3d:90:bf:f3:95:b3:96:6f:9d:90:95:98:69:fd:fb:0b root@ipbrick1&lt;br /&gt;
The key's randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|                 |&lt;br /&gt;
|         .       |&lt;br /&gt;
|        o     = .|&lt;br /&gt;
|         +   = + |&lt;br /&gt;
|        S + . o .|&lt;br /&gt;
|           o o ..|&lt;br /&gt;
|          o  E=.+|&lt;br /&gt;
|           o .+=o|&lt;br /&gt;
|            ...+=|&lt;br /&gt;
+-----------------+&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy contents of public key from IPBrick1 to IPBrick2.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cat /root/ssh/id_rsa.pub &lt;br /&gt;
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pCtg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynReaiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZPVkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Select and copy the output/contents of file id_rsa.pub from IPBrick1 as example above, install it on IPBrick2. Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir -p /home1/_ssh/root/.ssh&lt;br /&gt;
ipbrick2:~# echo &amp;quot;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pCtg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynReaiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZPVkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&amp;quot; &amp;gt;&amp;gt; /home1/_ssh/root/.ssh/authorized_keys&lt;br /&gt;
ipbrick2:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the first root ssh access from ipbrick1 to ipbrick2 using the ssh key.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# ssh -i /root/.ssh/id_rsa root@192.168.69.200&lt;br /&gt;
The authenticity of host '192' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? ^C&lt;br /&gt;
atlas:~# ssh -i /root/.ssh/id_rsa root@localhost&lt;br /&gt;
The authenticity of host '192.168.69.200 (192.168.69.200)' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? yes&lt;br /&gt;
Warning: Permanently added '192.168.69.200' (RSA) to the list of known hosts.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++: System Info :+++++++++++++++++++++++++++++++++&lt;br /&gt;
+         FQDN =  ipbrick2.domain.com&lt;br /&gt;
+   IP address =  192.168.69.200&lt;br /&gt;
+       Kernel =  3.2.0-4-amd64&lt;br /&gt;
+       Uptime =  10:05:02 up 458 days, 32 min, 10 users,  load average: 3.04, 2.51, 2.20&lt;br /&gt;
+   Total CPUs =  4 x Architecture x86_64 @ 2399.734 Hz &lt;br /&gt;
+ Total Memory =  16470664 kB&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ipbrick2:~# logout&lt;br /&gt;
Connection to 192.168.69.200 closed.&lt;br /&gt;
ipbrick1:~#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can access as root from ipbrick1 (NEW, 192.168.69.199)  to ipbrick2 (OLD, 192.168.69.200).&lt;br /&gt;
&lt;br /&gt;
Now lets start the rsync on IPBrick1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home1/ /home1/ &amp;gt; rsync_home1.log 2&amp;gt; rsync_home1.err&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home2/ /home2/ &amp;gt; rsync_home2.log 2&amp;gt; rsync_home2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the logs in this file -&amp;gt; rsync_home1.log&lt;br /&gt;
Or the errors in this file -&amp;gt; rsync_home1.err&lt;br /&gt;
&lt;br /&gt;
Wen the rsync is finish access to web interface and then insert and replace the configuration that you save on your desktop.&lt;br /&gt;
&lt;br /&gt;
After replacing, go to Advanced configuration -&amp;gt; disaster recovery -&amp;gt; aplication -&amp;gt; data bases -&amp;gt; and replace the last one.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wen this Finnish test the services you have on IPBrick.&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration</id>
		<title>IPBrick Disk migration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPBrick_Disk_migration"/>
				<updated>2016-05-06T09:35:59Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* Scenario 2 - two server machine */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is to assist the IT IPBRICK administrator in the process of migrating a running IPBRICK installation from:&lt;br /&gt;
* scenario 1 : one server machine - one disk to another disk on the same server machine&lt;br /&gt;
* scenario 2 : two server machine - one disk to another disk on a different server machine&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''ATTENTION: This is an advanced procedure. The tasks described bellow are to be performed by an IT technician familiar with IPBRICK.IC operating system architecture and linux command line interface. This guide refers to the IPBRICK installation manual and the disaster recovery procedure. Before starting please make sure that you have an up to date backup of all data files, databases and configurations. Proceed at your own risk.'''&lt;br /&gt;
&lt;br /&gt;
=On the original server machine=&lt;br /&gt;
On the original installation, apply configurations and download/save a backup copy configurations file to your Desktop. (Advanced Configurations -&amp;gt; Disaster Recovery -&amp;gt; Download : select the last one with the current timestamp).&lt;br /&gt;
&lt;br /&gt;
Just stop the the services you use.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/init.d/asterisk stop&lt;br /&gt;
/etc/init.d/apache2 stop&lt;br /&gt;
/etc/init.d/ejabberd stop&lt;br /&gt;
/etc/init.d/qmail stop&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Execute this command to backup all the data bases.&lt;br /&gt;
* IPBRICK.IC version v6.0 or above&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/system/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
* IPBRICK.IC versions: 5.3, 5.4 or 5.5&lt;br /&gt;
&amp;lt;pre&amp;gt;php5 /opt/ipbox/backupSYS/backup_DBs.php &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Scenario 1 - only one server machine=&lt;br /&gt;
Procedure:&lt;br /&gt;
* shutdown the server machine&lt;br /&gt;
* remove/detach the original (old) disk from the server&lt;br /&gt;
* install/attach the replacement (new) disk&lt;br /&gt;
* install the IPBRICK.IC operating system (please refer to IPBRICK.IC installation manual)&lt;br /&gt;
** perform the first boot, proceed with initial setup (FQDN, IP)&lt;br /&gt;
** after finishing installation and initial configuration proceed to the next step&lt;br /&gt;
* with the server power on, connect the old (original) disk using a USB connector&lt;br /&gt;
** now at the command line you can check for the disks&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fdisk -l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* confirm that you have 2 (two) disks: sda (new internal disk) and sdb (old disk connected via usb)&lt;br /&gt;
** you shoudl  be able to identify the partition tables&lt;br /&gt;
* create two temporary folders to map/mount the work areas from the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /old_home1&lt;br /&gt;
mkdir /old_home2&lt;br /&gt;
ls /old_home* -al&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Then we need to mount the partitions we need to copy.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mount /dev/sdb7 /old_home1&lt;br /&gt;
mount /dev/sdb8 /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Now lets start the rsync&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rsync -aAuv /old_home1/ /home1/ &amp;gt; /tmp/rsync_home1.log 2&amp;gt; /tmp/rsync_home1.err &amp;amp;&lt;br /&gt;
rsync -aAuv /old_home2/ /home2/ &amp;gt; /tmp/rsync_home2.log 2&amp;gt; /tmp/rsync_home2.err &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* You can see the logs in these files (log is normal output, err is for status warning)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tail /tmp/rsync_home1.log&lt;br /&gt;
tail /tmp/rsync_home1.err&lt;br /&gt;
tail /tmp/rsync_home2.log&lt;br /&gt;
tail /tmp/rsync_home2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* When the rsync process finishes, you can unmap/unmount the old disk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
umount /old_home1&lt;br /&gt;
umount /old_home2&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
* after successfull unmount you can disconnect the old disk (usb)&lt;br /&gt;
** NOTE: we recommend you to keep the old disk safe until this procedure is completly finished (backup procedure)&lt;br /&gt;
* Now please access to web interface, insert and replace the configurations file that you have previously saved on your desktop&lt;br /&gt;
** Please refer to the installation manual and/or disaster recover procedure in order to perform settings replacement&lt;br /&gt;
** The server machine performs a reboot&lt;br /&gt;
* After the server boot up, go to IPBRICK web interface, Advanced configurations -&amp;gt; Disaster Recovery -&amp;gt; Aplications -&amp;gt; Databases : for each database, click on the database name, then you get a listing of all the available backups, click on the last timestamp (click on the timestamp, not on the download link), and click on Restore to proceed to restore.&lt;br /&gt;
* When this Finnish test the services you have on IPBrick&lt;br /&gt;
* For the last step you need to re-activate your license - Advanced configurations -&amp;gt; IPBrick -&amp;gt; Web Access : License activation (please refer to the installation manual, license activation)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Scenario 2 - two server machine=&lt;br /&gt;
Procedure&lt;br /&gt;
* Install the IPBrick on the new machine (refer to IPBRICK.IC installation manual)&lt;br /&gt;
&lt;br /&gt;
EX: IPBrick1 New (192.168.69.199) and IPBrick2 OLD (192.168.69.200)&lt;br /&gt;
&lt;br /&gt;
On machine IPBrick1 generate ssh key:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cd /root&lt;br /&gt;
ipbrick1:~# ssh-keygen -t rsa&lt;br /&gt;
#assume default location /root/.ssh/id_rsa&lt;br /&gt;
#enter empty passphrase&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/root/.ssh/id_rsa): &lt;br /&gt;
Enter passphrase (empty for no passphrase): &lt;br /&gt;
Enter same passphrase again: &lt;br /&gt;
Your identification has been saved in /root/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /root/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
3d:90:bf:f3:95:b3:96:6f:9d:90:95:98:69:fd:fb:0b root@ipbrick1&lt;br /&gt;
The key's randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|                 |&lt;br /&gt;
|         .       |&lt;br /&gt;
|        o     = .|&lt;br /&gt;
|         +   = + |&lt;br /&gt;
|        S + . o .|&lt;br /&gt;
|           o o ..|&lt;br /&gt;
|          o  E=.+|&lt;br /&gt;
|           o .+=o|&lt;br /&gt;
|            ...+=|&lt;br /&gt;
+-----------------+&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy contents of public key from IPBrick1 to IPBrick2.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# cat /root/ssh/id_rsa.pub &lt;br /&gt;
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pCtg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynReaiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZPVkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&lt;br /&gt;
ipbrick1:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Select and copy the output/contents of file id_rsa.pub from IPBrick1 as example above, install it on IPBrick2. Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick2:~# mkdir -p /home1/_ssh/root/.ssh&lt;br /&gt;
ipbrick2:~# echo &amp;quot;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRRerZEo0cyzCP3JxTabRAG8uPe4DVnAuduIUUayn+r64mrpy1RFcu1qQLGiKFyOgxCg3m+pCtg79yxvWfrx/XR/SIXh1uuLSmG/SOnFmn5WQJLXSCNBYGp/2BOQ1e4p6J2GFzmJF5/QnUXWCbLyIG/j7+klidLhktv/8+gHJClehMm6H31KynReaiuSyNiPFoG9+q5EmF+7Ibjqk5ZG6XeGodgINpfnNNFNLTmG+RyCK0vttGwVyKbnz2s3ypAbHpjQcNm7vG9iq73KjPaH1Y2r/09XoV3Bw15/0ZPVkkvlNHSwBpnsHrCAL8KT3m7qgDy2WT3cuArXRpm/PGTMXH root@ipbrick1&amp;quot; &amp;gt;&amp;gt; /home1/_ssh/root/.ssh/authorized_keys&lt;br /&gt;
ipbrick2:~# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the first root ssh access from ipbrick1 to ipbrick2 using the ssh key.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# ssh -i /root/.ssh/id_rsa root@192.168.69.200&lt;br /&gt;
The authenticity of host '192' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? ^C&lt;br /&gt;
atlas:~# ssh -i /root/.ssh/id_rsa root@localhost&lt;br /&gt;
The authenticity of host '192.168.69.200 (192.168.69.200)' can't be established.&lt;br /&gt;
RSA key fingerprint is 2d:b9:97:b6:c0:e9:1e:b7:c4:51:01:ab:e9:21:12:51.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? yes&lt;br /&gt;
Warning: Permanently added '192.168.69.200' (RSA) to the list of known hosts.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++: System Info :+++++++++++++++++++++++++++++++++&lt;br /&gt;
+         FQDN =  ipbrick2.domain.com&lt;br /&gt;
+   IP address =  192.168.69.200&lt;br /&gt;
+       Kernel =  3.2.0-4-amd64&lt;br /&gt;
+       Uptime =  10:05:02 up 458 days, 32 min, 10 users,  load average: 3.04, 2.51, 2.20&lt;br /&gt;
+   Total CPUs =  4 x Architecture x86_64 @ 2399.734 Hz &lt;br /&gt;
+ Total Memory =  16470664 kB&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ipbrick2:~# logout&lt;br /&gt;
Connection to 192.168.69.200 closed.&lt;br /&gt;
ipbrick1:~#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can access as root from ipbrick1 (NEW, 192.168.69.199)  to ipbrick2 (OLD, 192.168.69.200).&lt;br /&gt;
&lt;br /&gt;
Now lets start the rsync on IPBrick1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home1/ /home1/ &amp;gt; rsync_home1.log 2&amp;gt; rsync_home1.err&lt;br /&gt;
ipbrick1:~# rsync -avu --delete --rsh=&amp;quot;ssh -l root -i /root/.ssh/id_rsa &amp;quot; 192.168.69.200:/home2/ /home2/ &amp;gt; rsync_home2.log 2&amp;gt; rsync_home2.err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can see the logs in this file -&amp;gt; rsync_home1.log&lt;br /&gt;
Or the errors in this file -&amp;gt; rsync_home1.err&lt;br /&gt;
&lt;br /&gt;
Wen the rsync is finish access to web interface and then insert and replace the configuration that you save on your desktop.&lt;br /&gt;
&lt;br /&gt;
After replacing, go to Advanced configuration -&amp;gt; disaster recovery -&amp;gt; aplication -&amp;gt; data bases -&amp;gt; and replace the last one.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wen this Finnish test the services you have on IPBrick.&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/UCoIP_DNS/firewall_configuration</id>
		<title>UCoIP DNS/firewall configuration</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/UCoIP_DNS/firewall_configuration"/>
				<updated>2016-04-13T17:04:07Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=DNS configuration=&lt;br /&gt;
&lt;br /&gt;
In order to get the full UCoIP concept working at LAN/Internet it's necessary to configure some DNS records at internal and external DNS servers of the company domain. &lt;br /&gt;
&lt;br /&gt;
Next is given an example for the public DNS zone configuration. In that example lets suppose that: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DNS domain: domain.com&lt;br /&gt;
IPBrick FQDN: srv001.domain.com&lt;br /&gt;
Public IP associated to IPBrick: 85.86.87.88&lt;br /&gt;
User UCoIP page to create: jsmith.domain.com &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So in this case we need to configure the following DNS records:&lt;br /&gt;
&lt;br /&gt;
A records:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srv001        IN A     85.86.87.88&lt;br /&gt;
voip          IN A     85.86.87.88&lt;br /&gt;
webrtc        IN A     85.86.87.88&lt;br /&gt;
cafe          IN A     85.86.87.88&lt;br /&gt;
ucoip         IN A     85.86.87.88&lt;br /&gt;
im            IN A     85.86.87.88&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CNAME records:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
jwchat             IN CNAME   srv001&lt;br /&gt;
webphone           IN CNAME   srv001&lt;br /&gt;
groupware	   IN CNAME   srv001&lt;br /&gt;
webmail 	   IN CNAME   srv001&lt;br /&gt;
jsmith             IN CNAME   srv001&lt;br /&gt;
webrtcproxy        IN CNAME   srv001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV records for VoIP (SIP):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_sips._tcp.domain.com.     IN     SRV   1   0   5061   voip.domain.com.&lt;br /&gt;
_sip._tcp.domain.com.      IN     SRV   1   0   5060   voip.domain.com.&lt;br /&gt;
_sip._udp.domain.com.      IN     SRV   1   0   5060   voip.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV records for chat (Jabber/XMPP):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_jabber._tcp.domain.com.      86400 IN SRV 5 0 5269 im.domain.com.&lt;br /&gt;
_xmpp-server._tcp.domain.com. 86400 IN SRV 5 0 5269 im.domain.com.&lt;br /&gt;
_xmpp-client._tcp.domain.com. 86400 IN SRV 5 0 5222 im.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for UCoIP:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_ucoip._tcp.domain.com.       86400 IN SRV 1 0 80   ucoip.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for CAFE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_cafe._tcp.domain.com.        86400 IN SRV 1 0 443  cafe.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SRV record for WebRTC:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
_webrtc._tcp.domain.com.      86400 IN SRV 1 0 8888 webrtc.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If IPBrick will be the email server, we need to modify/add the MX record:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
domain.com.         IN MX       5     srv001.domain.com.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Costumer ISP must add this PTR record at reverse DNS zone:&lt;br /&gt;
&lt;br /&gt;
 88.87.86.85.in-addr.arpa.     IN PTR      srv001.domain.com.&lt;br /&gt;
&lt;br /&gt;
=Firewall/Router configuration=&lt;br /&gt;
&lt;br /&gt;
UCoIP concept uses many services running on their standard ports. IPBrick firewall is prepared to accept all this traffic at public interface (eth1).&lt;br /&gt;
&lt;br /&gt;
But if IPBrick public interface is behind a NAT at Router/Firewall, its necessary to forward the necessary traffic to IPBrick. The list is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
HTTP     - 80 TCP&lt;br /&gt;
HTTPS    - 443 TCP&lt;br /&gt;
SMTP     - 25 TCP&lt;br /&gt;
SIP      - 5060 UDP/TCP&lt;br /&gt;
SIPS     - 5061 TCP&lt;br /&gt;
RTP      - 40000:45000 UDP&lt;br /&gt;
RTP      - 50000:55000 UDP&lt;br /&gt;
RTP      - 60000:65000 UDP&lt;br /&gt;
XMPP     - 5222 TCP&lt;br /&gt;
XMPP     - 5269 TCP&lt;br /&gt;
XMPPS    - 5223 TCP&lt;br /&gt;
WebRTC   - 8888 TCP&lt;br /&gt;
Webphone - 10060 UDP/TCP&lt;br /&gt;
Webphone - 10062 TCP&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: With update04_6.1, it's crucial too to have a Wildcard SSL Certificate. More information here:&lt;br /&gt;
&lt;br /&gt;
[http://eshop.ipbrick.com/eshop/software_info.php?cPath=7_74_16&amp;amp;products_id=907&amp;amp;language=en Update04 security guide]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.ipbrick.com/index.php/How_to_buy_and_configure_a_SSL_certificate_at_IPBrick_6.1 How to buy and configure a SSL certificate at IPBrick]&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/ISCSI</id>
		<title>ISCSI</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/ISCSI"/>
				<updated>2016-01-26T16:58:06Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* Discover and Map */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
iSCSI, is an abbreviation of Internet Small Computer System Interface, an Internet Protocol (IP)-based storage networking standard for linking data storage facilities.&lt;br /&gt;
&lt;br /&gt;
iSCSI is used to facilitate data transfers over intranets and to manage storage over long distances. iSCSI can be used to transmit data over local area networks (LANs), wide area networks (WANs), or the Internet and can enable location-independent data storage and retrieval. The protocol allows clients (called initiators) to send SCSI commands (CDBs) to SCSI storage devices (targets) on remote servers.&lt;br /&gt;
&lt;br /&gt;
It is a popular Storage Area Network  (SAN) protocol, allowing organizations to consolidate storage into data center storage arrays while providing hosts (such as database and web servers) with the illusion of locally-attached disks. Unlike traditional Fibre Channel, which requires special-purpose cabling, iSCSI can be run over long distances using existing network infrastructure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IPBrick v6.0&lt;br /&gt;
&lt;br /&gt;
Connection to the Internet&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
The installation process is done via sources list update.&lt;br /&gt;
&lt;br /&gt;
Access the console:&lt;br /&gt;
&lt;br /&gt;
NOTE: This procedure is done directly at the server's console as a root user.&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# vi /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
 #deb http://repository.ipbrick.com/wheezy wheezy main contrib non-free ipbrick60&lt;br /&gt;
 deb http://ftp.pt.debian.org/debian wheezy main contrib non-free&lt;br /&gt;
 deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free&lt;br /&gt;
 deb http://security.debian.org/ wheezy/updates main contrib non-free&lt;br /&gt;
&lt;br /&gt;
Still at the console, run these commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# apt-get update&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# apt-get install open-iscsi&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to configure an iSCSI interface please follow these steps:&lt;br /&gt;
&lt;br /&gt;
NOTE: The service configuration is done directly at the server's console as a root user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The /etc/iscsi/initiatorname.iscsi file will identify ONLY the IPBRICK server.&lt;br /&gt;
&lt;br /&gt;
Usually its name is composed by these elements:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 iqn + . + year-month + . + server_name + : + custom_string&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
E.g:&lt;br /&gt;
 cat /etc/iscsi/initiatorname.iscsi&lt;br /&gt;
&lt;br /&gt;
 GenerateName=no&lt;br /&gt;
 InitiatorName=iqn.2015-12.com.domain.ipbrick:fileserver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The configuration file /etc/iscsi/iscsid.conf can be edited to set the service's autostart parameter:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 node.startup = automatic&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
And also the authentication parameters:&lt;br /&gt;
&lt;br /&gt;
- '''NO AUTHENTICATION''': If access to the storage is to be done without authentication, no changes to the configuration file are necessary, the following lines should remain as comments:&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 #node.session.auth *&lt;br /&gt;
 #discovery.sendtargets.auth *&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- '''WITH AUTHENTICATION - CHAP''': &lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 node.session.auth.authmethod = CHAP&lt;br /&gt;
 ...&lt;br /&gt;
 node.session.auth.username = username&lt;br /&gt;
 node.session.auth.password = password&lt;br /&gt;
 ...&lt;br /&gt;
 discovery.sendtargets.auth.authmethod = CHAP&lt;br /&gt;
 ...&lt;br /&gt;
 discovery.sendtargets.auth.username = username&lt;br /&gt;
 discovery.sendtargets.auth.password = password&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: Please replace username and password by the username and password of your iSCSI Target.&lt;br /&gt;
&lt;br /&gt;
Proceed by stopping and then restarting the iSCSI service - execute:&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/open-iscsi stop&lt;br /&gt;
 /etc/init.d/open-iscsi start&lt;br /&gt;
&lt;br /&gt;
==Discover and Map==&lt;br /&gt;
&lt;br /&gt;
Run iscsiadm to discover the iSCSI devices on the iSCSI Server with the IP 192.168.69.15&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# iscsiadm  -m discovery -t st -p 192.168.69.15&lt;br /&gt;
 192.168.69.15:3260,1 iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick.be0e78&lt;br /&gt;
 192.168.69.15:3260,1 iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick1.be0e78&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Map the Target&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# iscsiadm  -m node -l -T &amp;quot;iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick.be0e78&amp;quot;&lt;br /&gt;
 Logging in to [iface: default, target:&lt;br /&gt;
 iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick.be0e78, &lt;br /&gt;
 portal: 192.168.69.15,3260]&lt;br /&gt;
 Login to [iface: default, target: iqn.2004-04.com.qnap:ts-439u:&lt;br /&gt;
 iscsi.ipbrick.be0e78, portal: 192.168.69.15,3260]: successful&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With a dmesg command it's now possible to see the new disc as a device sdb:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Loading iSCSI transport class v2.0-871.&lt;br /&gt;
 iscsi: registered transport (tcp)&lt;br /&gt;
 scsi1 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi2 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi3 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi4 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi5 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi6 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi 5:0:0:0: Direct-Access     QNAP     &lt;br /&gt;
 iSCSI Storage    3.1  PQ: 0 ANSI: 5&lt;br /&gt;
 sd 5:0:0:0: [sdb] 104857600 512-byte hardware sectors:&lt;br /&gt;
 (53.6 GB/50.0 GiB)&lt;br /&gt;
 sd 5:0:0:0: [sdb] Write Protect is off&lt;br /&gt;
 sd 5:0:0:0: [sdb] Mode Sense: 2f 00 00 00&lt;br /&gt;
 sd 5:0:0:0: [sdb] Write cache:&lt;br /&gt;
 disabled, read cache: enabled, doesn't support DPO or FUA&lt;br /&gt;
 sdb: sdb1&lt;br /&gt;
 sd 5:0:0:0: [sdb] Attached SCSI disk&lt;br /&gt;
&lt;br /&gt;
If necessary, format the disc and use this procedure as an example that creates a new partition /dev/sdb:&lt;br /&gt;
&lt;br /&gt;
 mkfs.ext4 /dev/sdb&lt;br /&gt;
&lt;br /&gt;
fstab mapping is done by device and it can be captured via /dev/sdb  unique identifier:&lt;br /&gt;
&lt;br /&gt;
To find the unique identifier (UUID) run:&lt;br /&gt;
 blkid&lt;br /&gt;
 ...&lt;br /&gt;
 /dev/sdb: UUID=&amp;quot;46c2c071-ffb3-400e-8239-5f53c81a0b72&amp;quot; TYPE=&amp;quot;ext4&amp;quot;&lt;br /&gt;
&lt;br /&gt;
It will be necessary to inscribe it at /etc/fstab&lt;br /&gt;
&lt;br /&gt;
Assuming that this new volume will be used as home3, create its mount point:&lt;br /&gt;
&lt;br /&gt;
 mkdir /home3&lt;br /&gt;
&lt;br /&gt;
Map /etc/fstab by executing the nano editor:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&lt;br /&gt;
Inscribe the following:&lt;br /&gt;
&lt;br /&gt;
 UUID=46c2c071-ffb3-400e-8239-5f53c81a0b72 /home3  ext4  defaults,_netdev,usrquota,grpquota,user_xattr,acl   0&lt;br /&gt;
&lt;br /&gt;
NOTE:&lt;br /&gt;
 * we have the **_netdev** option to state that this device is a network dependent device&lt;br /&gt;
 * the last column was removed, this entry has only 5 columns - the sixth column is removed so it will not try to run automatic fsck (filesystem check) on boot (this is done before network is available, so it would fail and stop the boot up sequence)&lt;br /&gt;
&lt;br /&gt;
Now, you need to run this script so as home3 can be added to the IPBRICK web interface.&lt;br /&gt;
&lt;br /&gt;
 /opt/system/scripts/system_add_new_workareas.php 1&lt;br /&gt;
&lt;br /&gt;
You will get the following notification:&lt;br /&gt;
&lt;br /&gt;
 Work Area 3 was successfully inserted!&lt;br /&gt;
 Don't forget to Apply Configurations to commit the changes.&lt;br /&gt;
&lt;br /&gt;
== Firewall ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usually, the firewall service is disabled at an intranet server. However, by default, IPBRICK has it active. So, in order create a rule to allow the communication between the IPBRICK and the SAN, please access the following menu:&lt;br /&gt;
&lt;br /&gt;
 Advanced Configurations -&amp;gt; Network -&amp;gt; Firewall&lt;br /&gt;
&lt;br /&gt;
Click on Insert and create a rule of this type:&lt;br /&gt;
&lt;br /&gt;
 Type of configuration to insert: General Settings&lt;br /&gt;
 Rule: INPUT&lt;br /&gt;
 Interface: ETHx (The NIC used in the iSCSI connection)&lt;br /&gt;
 Protocol ALL&lt;br /&gt;
 Origin IP: [Storage IPs]&lt;br /&gt;
 Policy: ACCEPT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the Insert button to create the rule&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Manage iSCSI ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Some useful commands to manage iSCSI on IPBrick:&lt;br /&gt;
&lt;br /&gt;
 Restart the openiscsi: /etc/init.d/open-iscsi restart&lt;br /&gt;
 Check the session status: /etc/init.d/open-iscsi status&lt;br /&gt;
 Use the dmesg command to find the disc's device;&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/ISCSI</id>
		<title>ISCSI</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/ISCSI"/>
				<updated>2016-01-26T16:29:49Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* Discover and Map */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
iSCSI, is an abbreviation of Internet Small Computer System Interface, an Internet Protocol (IP)-based storage networking standard for linking data storage facilities.&lt;br /&gt;
&lt;br /&gt;
iSCSI is used to facilitate data transfers over intranets and to manage storage over long distances. iSCSI can be used to transmit data over local area networks (LANs), wide area networks (WANs), or the Internet and can enable location-independent data storage and retrieval. The protocol allows clients (called initiators) to send SCSI commands (CDBs) to SCSI storage devices (targets) on remote servers.&lt;br /&gt;
&lt;br /&gt;
It is a popular Storage Area Network  (SAN) protocol, allowing organizations to consolidate storage into data center storage arrays while providing hosts (such as database and web servers) with the illusion of locally-attached disks. Unlike traditional Fibre Channel, which requires special-purpose cabling, iSCSI can be run over long distances using existing network infrastructure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IPBrick v6.0&lt;br /&gt;
&lt;br /&gt;
Connection to the Internet&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
The installation process is done via sources list update.&lt;br /&gt;
&lt;br /&gt;
Access the console:&lt;br /&gt;
&lt;br /&gt;
NOTE: This procedure is done directly at the server's console as a root user.&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# vi /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
 #deb http://repository.ipbrick.com/wheezy wheezy main contrib non-free ipbrick60&lt;br /&gt;
 deb http://ftp.pt.debian.org/debian wheezy main contrib non-free&lt;br /&gt;
 deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free&lt;br /&gt;
 deb http://security.debian.org/ wheezy/updates main contrib non-free&lt;br /&gt;
&lt;br /&gt;
Still at the console, run these commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# apt-get update&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# apt-get install open-iscsi&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to configure an iSCSI interface please follow these steps:&lt;br /&gt;
&lt;br /&gt;
NOTE: The service configuration is done directly at the server's console as a root user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The /etc/iscsi/initiatorname.iscsi file will identify ONLY the IPBRICK server.&lt;br /&gt;
&lt;br /&gt;
Usually its name is composed by these elements:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 iqn + . + year-month + . + server_name + : + custom_string&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
E.g:&lt;br /&gt;
 cat /etc/iscsi/initiatorname.iscsi&lt;br /&gt;
&lt;br /&gt;
 GenerateName=no&lt;br /&gt;
 InitiatorName=iqn.2015-12.com.domain.ipbrick:fileserver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The configuration file /etc/iscsi/iscsid.conf can be edited to set the service's autostart parameter:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 node.startup = automatic&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
And also the authentication parameters:&lt;br /&gt;
&lt;br /&gt;
- '''NO AUTHENTICATION''': If access to the storage is to be done without authentication, no changes to the configuration file are necessary, the following lines should remain as comments:&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 #node.session.auth *&lt;br /&gt;
 #discovery.sendtargets.auth *&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- '''WITH AUTHENTICATION - CHAP''': &lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 node.session.auth.authmethod = CHAP&lt;br /&gt;
 ...&lt;br /&gt;
 node.session.auth.username = username&lt;br /&gt;
 node.session.auth.password = password&lt;br /&gt;
 ...&lt;br /&gt;
 discovery.sendtargets.auth.authmethod = CHAP&lt;br /&gt;
 ...&lt;br /&gt;
 discovery.sendtargets.auth.username = username&lt;br /&gt;
 discovery.sendtargets.auth.password = password&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: Please replace username and password by the username and password of your iSCSI Target.&lt;br /&gt;
&lt;br /&gt;
Proceed by stopping and then restarting the iSCSI service - execute:&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/open-iscsi stop&lt;br /&gt;
 /etc/init.d/open-iscsi start&lt;br /&gt;
&lt;br /&gt;
==Discover and Map==&lt;br /&gt;
&lt;br /&gt;
Run iscsiadm to discover the iSCSI devices on the iSCSI Server with the IP 192.168.69.15&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# iscsiadm  -m discovery -t st -p 192.168.69.15&lt;br /&gt;
 192.168.69.15:3260,1 iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick.be0e78&lt;br /&gt;
 192.168.69.15:3260,1 iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick1.be0e78&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Map the Target&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# iscsiadm  -m node -l -T &amp;quot;iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick.be0e78&amp;quot;&lt;br /&gt;
 Logging in to [iface: default, target:&lt;br /&gt;
 iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick.be0e78, &lt;br /&gt;
 portal: 192.168.69.15,3260]&lt;br /&gt;
 Login to [iface: default, target: iqn.2004-04.com.qnap:ts-439u:&lt;br /&gt;
 iscsi.ipbrick.be0e78, portal: 192.168.69.15,3260]: successful&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With a dmesg command it's now possible to see the new disc as a device sdb:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Loading iSCSI transport class v2.0-871.&lt;br /&gt;
 iscsi: registered transport (tcp)&lt;br /&gt;
 scsi1 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi2 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi3 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi4 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi5 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi6 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi 5:0:0:0: Direct-Access     QNAP     &lt;br /&gt;
 iSCSI Storage    3.1  PQ: 0 ANSI: 5&lt;br /&gt;
 sd 5:0:0:0: [sdb] 104857600 512-byte hardware sectors:&lt;br /&gt;
 (53.6 GB/50.0 GiB)&lt;br /&gt;
 sd 5:0:0:0: [sdb] Write Protect is off&lt;br /&gt;
 sd 5:0:0:0: [sdb] Mode Sense: 2f 00 00 00&lt;br /&gt;
 sd 5:0:0:0: [sdb] Write cache:&lt;br /&gt;
 disabled, read cache: enabled, doesn't support DPO or FUA&lt;br /&gt;
 sdb: sdb1&lt;br /&gt;
 sd 5:0:0:0: [sdb] Attached SCSI disk&lt;br /&gt;
&lt;br /&gt;
If necessary, format the disc and use this procedure as an example that creates a new partition /dev/sdb:&lt;br /&gt;
&lt;br /&gt;
 mkfs.ext4 /dev/sdb&lt;br /&gt;
&lt;br /&gt;
fstab mapping is done by device and it can be captured via /dev/sdb&lt;br /&gt;
&lt;br /&gt;
It will be necessary to inscribe it at /etc/fstab&lt;br /&gt;
&lt;br /&gt;
Assuming that this new volume will be used as home3, create its mount point:&lt;br /&gt;
&lt;br /&gt;
 mkdir /home3&lt;br /&gt;
&lt;br /&gt;
Map /etc/fstab by executing the nano editor:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&lt;br /&gt;
Inscribe the following:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdb /home3  ext4  defaults,_netdev,usrquota,grpquota,user_xattr,acl   0   2&lt;br /&gt;
&lt;br /&gt;
Now, you need to run this script so as home3 can be added to the IPBRICK web interface.&lt;br /&gt;
&lt;br /&gt;
 /opt/system/scripts/system_add_new_workareas.php 1&lt;br /&gt;
&lt;br /&gt;
You will get the following notification:&lt;br /&gt;
&lt;br /&gt;
 Work Area 3 was successfully inserted!&lt;br /&gt;
 Don't forget to Apply Configurations to commit the changes.&lt;br /&gt;
&lt;br /&gt;
== Firewall ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usually, the firewall service is disabled at an intranet server. However, by default, IPBRICK has it active. So, in order create a rule to allow the communication between the IPBRICK and the SAN, please access the following menu:&lt;br /&gt;
&lt;br /&gt;
 Advanced Configurations -&amp;gt; Network -&amp;gt; Firewall&lt;br /&gt;
&lt;br /&gt;
Click on Insert and create a rule of this type:&lt;br /&gt;
&lt;br /&gt;
 Type of configuration to insert: General Settings&lt;br /&gt;
 Rule: INPUT&lt;br /&gt;
 Interface: ETHx (The NIC used in the iSCSI connection)&lt;br /&gt;
 Protocol ALL&lt;br /&gt;
 Origin IP: [Storage IPs]&lt;br /&gt;
 Policy: ACCEPT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the Insert button to create the rule&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Manage iSCSI ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Some useful commands to manage iSCSI on IPBrick:&lt;br /&gt;
&lt;br /&gt;
 Restart the openiscsi: /etc/init.d/open-iscsi restart&lt;br /&gt;
 Check the session status: /etc/init.d/open-iscsi status&lt;br /&gt;
 Use the dmesg command to find the disc's device;&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/How_to_rewrite_an_OpenVPN_file</id>
		<title>How to rewrite an OpenVPN file</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/How_to_rewrite_an_OpenVPN_file"/>
				<updated>2016-01-26T13:47:04Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Once you have the zip file, decompress it.&lt;br /&gt;
&lt;br /&gt;
ZIP file: user.zip - http://downloads3.ipbrick.com/wiki/user.zip&lt;br /&gt;
&lt;br /&gt;
Inside you'll find four files:&lt;br /&gt;
* ca-server-ipbrick.crt&lt;br /&gt;
md5sum: ca8153af46bf8cddab95a064e54c1474  ca-server-ipbrick.crt&lt;br /&gt;
* user.crt&lt;br /&gt;
md5sum: c7a060b8e842415586c25319188eac8b  user.crt&lt;br /&gt;
* user.key&lt;br /&gt;
md5sum: c0898f304cef0dd56e38243937226883  user.key&lt;br /&gt;
* user.ovpn&lt;br /&gt;
md5sum: f03249bce06c8107c4d109faa34a75c8  user.ovpn&lt;br /&gt;
&lt;br /&gt;
'''Then, open your .ovpn file. It will look like the one below.'''&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Generated by IPbrick - iPortalMais in 2014-Jan-10 19:01&lt;br /&gt;
client&lt;br /&gt;
dev tun0&lt;br /&gt;
#dev-node MyTap&lt;br /&gt;
proto tcp&lt;br /&gt;
remote vpn.osvaldomatos.pt 1194&lt;br /&gt;
#remote-random&lt;br /&gt;
resolv-retry infinite&lt;br /&gt;
nobind&lt;br /&gt;
user nobody&lt;br /&gt;
group nogroup&lt;br /&gt;
persist-key&lt;br /&gt;
persist-tun&lt;br /&gt;
#http-proxy-retry&lt;br /&gt;
#http-proxy [proxy server] [proxy port]&lt;br /&gt;
#mute-replay-warnings&lt;br /&gt;
ca ca-server-mail.crt&lt;br /&gt;
cert ipbricksupport.crt&lt;br /&gt;
key ipbricksupport.key&lt;br /&gt;
ns-cert-type server&lt;br /&gt;
#tls-auth ta.key 1&lt;br /&gt;
#cipher x&lt;br /&gt;
comp-lzo&lt;br /&gt;
verb 2&lt;br /&gt;
#mute 20&lt;br /&gt;
#daemon&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Userovpn1.png]]&lt;br /&gt;
&lt;br /&gt;
'''To rewrite it, add the following elements (as highlighted in red, in the picture below):'''&lt;br /&gt;
*''';'''&lt;br /&gt;
* '''&amp;lt;ca&amp;gt; &amp;lt;/ca&amp;gt;'''&lt;br /&gt;
* '''&amp;lt;cert&amp;gt; &amp;lt;/cert&amp;gt;'''&lt;br /&gt;
* '''&amp;lt;key&amp;gt; &amp;lt;/key&amp;gt;'''&lt;br /&gt;
* '''The content of each file.'''&lt;br /&gt;
&lt;br /&gt;
[[File:Userovpn2.png]]&lt;br /&gt;
&lt;br /&gt;
'''Note: Use a text editor to open the files and copy its content.'''&lt;br /&gt;
&lt;br /&gt;
'''Your .ovpn file is now ready, it will look like the next one.'''&lt;br /&gt;
&lt;br /&gt;
[[File:Userovpn3.png]]&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/ISCSI</id>
		<title>ISCSI</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/ISCSI"/>
				<updated>2015-12-18T18:50:08Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* Discover and Map */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
iSCSI, is an abbreviation of Internet Small Computer System Interface, an Internet Protocol (IP)-based storage networking standard for linking data storage facilities.&lt;br /&gt;
&lt;br /&gt;
iSCSI is used to facilitate data transfers over intranets and to manage storage over long distances. iSCSI can be used to transmit data over local area networks (LANs), wide area networks (WANs), or the Internet and can enable location-independent data storage and retrieval. The protocol allows clients (called initiators) to send SCSI commands (CDBs) to SCSI storage devices (targets) on remote servers.&lt;br /&gt;
&lt;br /&gt;
It is a popular Storage Area Network  (SAN) protocol, allowing organizations to consolidate storage into data center storage arrays while providing hosts (such as database and web servers) with the illusion of locally-attached disks. Unlike traditional Fibre Channel, which requires special-purpose cabling, iSCSI can be run over long distances using existing network infrastructure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IPBrick v6.0&lt;br /&gt;
&lt;br /&gt;
Connection to the Internet&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
The installation process is done via sources list update.&lt;br /&gt;
&lt;br /&gt;
Access the console:&lt;br /&gt;
&lt;br /&gt;
NOTE: This procedure is done directly at the server's console as a root user.&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# vi /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
 #deb http://repository.ipbrick.com/wheezy wheezy main contrib non-free ipbrick60&lt;br /&gt;
 deb http://ftp.pt.debian.org/debian wheezy main contrib non-free&lt;br /&gt;
 deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free&lt;br /&gt;
 deb http://security.debian.org/ wheezy/updates main contrib non-free&lt;br /&gt;
&lt;br /&gt;
Still at the console, run these commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# apt-get update&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# apt-get install open-iscsi&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to configure an iSCSI interface please follow these steps:&lt;br /&gt;
&lt;br /&gt;
NOTE: The service configuration is done directly at the server's console as a root user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The /etc/iscsi/initiatorname.iscsi file will identify ONLY the IPBRICK server.&lt;br /&gt;
&lt;br /&gt;
Usually its name is composed by these elements:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 iqn + . + year-month + . + server_name + : + custom_string&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
E.g:&lt;br /&gt;
 cat /etc/iscsi/initiatorname.iscsi&lt;br /&gt;
&lt;br /&gt;
 GenerateName=no&lt;br /&gt;
 InitiatorName=iqn.2015-12.com.domain.ipbrick:fileserver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The configuration file /etc/iscsi/iscsid.conf can be edited to set the service's autostart parameter:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 node.startup = automatic&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
And also the authentication parameters:&lt;br /&gt;
&lt;br /&gt;
- '''NO AUTHENTICATION''': If access to the storage is to be done without authentication, no changes to the configuration file are necessary, the following lines should remain as comments:&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 #node.session.auth *&lt;br /&gt;
 #discovery.sendtargets.auth *&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- '''WITH AUTHENTICATION - CHAP''': &lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 node.session.auth.authmethod = CHAP&lt;br /&gt;
 ...&lt;br /&gt;
 node.session.auth.username = username&lt;br /&gt;
 node.session.auth.password = password&lt;br /&gt;
 ...&lt;br /&gt;
 discovery.sendtargets.auth.authmethod = CHAP&lt;br /&gt;
 ...&lt;br /&gt;
 discovery.sendtargets.auth.username = username&lt;br /&gt;
 discovery.sendtargets.auth.password = password&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: Please replace username and password by the username and password of your iSCSI Target.&lt;br /&gt;
&lt;br /&gt;
Proceed by stopping and then restarting the iSCSI service - execute:&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/open-iscsi stop&lt;br /&gt;
 /etc/init.d/open-iscsi start&lt;br /&gt;
&lt;br /&gt;
==Discover and Map==&lt;br /&gt;
&lt;br /&gt;
Run iscsiadm to discover the iSCSI devices on the iSCSI Server with the IP 192.168.69.15&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# iscsiadm  -m discovery -t st -p 192.168.69.15&lt;br /&gt;
 192.168.69.15:3260,1 iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick.be0e78&lt;br /&gt;
 192.168.69.15:3260,1 iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick1.be0e78&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Map the Target&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# iscsiadm  -m node -l -T &amp;quot;iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick.be0e78&amp;quot;&lt;br /&gt;
 Logging in to [iface: default, target:&lt;br /&gt;
 iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick.be0e78, &lt;br /&gt;
 portal: 192.168.69.15,3260]&lt;br /&gt;
 Login to [iface: default, target: iqn.2004-04.com.qnap:ts-439u:&lt;br /&gt;
 iscsi.ipbrick.be0e78, portal: 192.168.69.15,3260]: successful&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With a dmesg command it's now possible to see the new disc as a device sdb:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Loading iSCSI transport class v2.0-871.&lt;br /&gt;
 iscsi: registered transport (tcp)&lt;br /&gt;
 scsi1 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi2 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi3 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi4 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi5 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi6 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi 5:0:0:0: Direct-Access     QNAP     &lt;br /&gt;
 iSCSI Storage    3.1  PQ: 0 ANSI: 5&lt;br /&gt;
 sd 5:0:0:0: [sdb] 104857600 512-byte hardware sectors:&lt;br /&gt;
 (53.6 GB/50.0 GiB)&lt;br /&gt;
 sd 5:0:0:0: [sdb] Write Protect is off&lt;br /&gt;
 sd 5:0:0:0: [sdb] Mode Sense: 2f 00 00 00&lt;br /&gt;
 sd 5:0:0:0: [sdb] Write cache:&lt;br /&gt;
 disabled, read cache: enabled, doesn't support DPO or FUA&lt;br /&gt;
 sdb: sdb1&lt;br /&gt;
 sd 5:0:0:0: [sdb] Attached SCSI disk&lt;br /&gt;
&lt;br /&gt;
If necessary, format the disc and use this procedure as an example that creates a new partition /dev/sdb:&lt;br /&gt;
&lt;br /&gt;
 mkfs.ext4 /dev/sdb&lt;br /&gt;
&lt;br /&gt;
fstab mapping is done by device and it can be captured via /dev/sdb&lt;br /&gt;
&lt;br /&gt;
It will be necessary to inscribe it at /etc/fstab&lt;br /&gt;
&lt;br /&gt;
Assuming that this new volume will be used as home3, create its mount point:&lt;br /&gt;
&lt;br /&gt;
 mkdir /home3&lt;br /&gt;
&lt;br /&gt;
Map /etc/fstab by executing the nano editor:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&lt;br /&gt;
Inscribe the following:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdb /home3  ext4  defaults,usrquota,grpquota,user_xattr,acl   0   2&lt;br /&gt;
&lt;br /&gt;
Now, you need to run this script so as home3 can be added to the IPBRICK web interface.&lt;br /&gt;
&lt;br /&gt;
 /opt/system/scripts/system_add_new_workareas.php 1&lt;br /&gt;
&lt;br /&gt;
You will get the following notification:&lt;br /&gt;
&lt;br /&gt;
 Work Area 3 was successfully inserted!&lt;br /&gt;
 Don't forget to Apply Configurations to commit the changes.&lt;br /&gt;
&lt;br /&gt;
== Firewall ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usually, the firewall service is disabled at an intranet server. However, by default, IPBRICK has it active. So, in order create a rule to allow the communication between the IPBRICK and the SAN, please access the following menu:&lt;br /&gt;
&lt;br /&gt;
 Advanced Configurations -&amp;gt; Network -&amp;gt; Firewall&lt;br /&gt;
&lt;br /&gt;
Click on Insert and create a rule of this type:&lt;br /&gt;
&lt;br /&gt;
 Type of configuration to insert: General Settings&lt;br /&gt;
 Rule: INPUT&lt;br /&gt;
 Interface: ETHx (The NIC used in the iSCSI connection)&lt;br /&gt;
 Protocol ALL&lt;br /&gt;
 Origin IP: [Storage IPs]&lt;br /&gt;
 Policy: ACCEPT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the Insert button to create the rule&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Manage iSCSI ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Some useful commands to manage iSCSI on IPBrick:&lt;br /&gt;
&lt;br /&gt;
 Restart the openiscsi: /etc/init.d/open-iscsi restart&lt;br /&gt;
 Check the session status: /etc/init.d/open-iscsi status&lt;br /&gt;
 Use the dmesg command to find the disc's device;&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/ISCSI</id>
		<title>ISCSI</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/ISCSI"/>
				<updated>2015-12-18T18:49:51Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
iSCSI, is an abbreviation of Internet Small Computer System Interface, an Internet Protocol (IP)-based storage networking standard for linking data storage facilities.&lt;br /&gt;
&lt;br /&gt;
iSCSI is used to facilitate data transfers over intranets and to manage storage over long distances. iSCSI can be used to transmit data over local area networks (LANs), wide area networks (WANs), or the Internet and can enable location-independent data storage and retrieval. The protocol allows clients (called initiators) to send SCSI commands (CDBs) to SCSI storage devices (targets) on remote servers.&lt;br /&gt;
&lt;br /&gt;
It is a popular Storage Area Network  (SAN) protocol, allowing organizations to consolidate storage into data center storage arrays while providing hosts (such as database and web servers) with the illusion of locally-attached disks. Unlike traditional Fibre Channel, which requires special-purpose cabling, iSCSI can be run over long distances using existing network infrastructure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IPBrick v6.0&lt;br /&gt;
&lt;br /&gt;
Connection to the Internet&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
The installation process is done via sources list update.&lt;br /&gt;
&lt;br /&gt;
Access the console:&lt;br /&gt;
&lt;br /&gt;
NOTE: This procedure is done directly at the server's console as a root user.&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# vi /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
 #deb http://repository.ipbrick.com/wheezy wheezy main contrib non-free ipbrick60&lt;br /&gt;
 deb http://ftp.pt.debian.org/debian wheezy main contrib non-free&lt;br /&gt;
 deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free&lt;br /&gt;
 deb http://security.debian.org/ wheezy/updates main contrib non-free&lt;br /&gt;
&lt;br /&gt;
Still at the console, run these commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# apt-get update&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# apt-get install open-iscsi&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to configure an iSCSI interface please follow these steps:&lt;br /&gt;
&lt;br /&gt;
NOTE: The service configuration is done directly at the server's console as a root user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The /etc/iscsi/initiatorname.iscsi file will identify ONLY the IPBRICK server.&lt;br /&gt;
&lt;br /&gt;
Usually its name is composed by these elements:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 iqn + . + year-month + . + server_name + : + custom_string&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
E.g:&lt;br /&gt;
 cat /etc/iscsi/initiatorname.iscsi&lt;br /&gt;
&lt;br /&gt;
 GenerateName=no&lt;br /&gt;
 InitiatorName=iqn.2015-12.com.domain.ipbrick:fileserver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The configuration file /etc/iscsi/iscsid.conf can be edited to set the service's autostart parameter:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 node.startup = automatic&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
And also the authentication parameters:&lt;br /&gt;
&lt;br /&gt;
- '''NO AUTHENTICATION''': If access to the storage is to be done without authentication, no changes to the configuration file are necessary, the following lines should remain as comments:&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 #node.session.auth *&lt;br /&gt;
 #discovery.sendtargets.auth *&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- '''WITH AUTHENTICATION - CHAP''': &lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 node.session.auth.authmethod = CHAP&lt;br /&gt;
 ...&lt;br /&gt;
 node.session.auth.username = username&lt;br /&gt;
 node.session.auth.password = password&lt;br /&gt;
 ...&lt;br /&gt;
 discovery.sendtargets.auth.authmethod = CHAP&lt;br /&gt;
 ...&lt;br /&gt;
 discovery.sendtargets.auth.username = username&lt;br /&gt;
 discovery.sendtargets.auth.password = password&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: Please replace username and password by the username and password of your iSCSI Target.&lt;br /&gt;
&lt;br /&gt;
Proceed by stopping and then restarting the iSCSI service - execute:&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/open-iscsi stop&lt;br /&gt;
 /etc/init.d/open-iscsi start&lt;br /&gt;
&lt;br /&gt;
==Discover and Map==&lt;br /&gt;
&lt;br /&gt;
Run iscsiadm to discover the iSCSI devices on the iSCSI Server with the IP 192.168.69.15&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# iscsiadm  -m discovery -t st -p 192.168.69.15&lt;br /&gt;
 192.168.69.15:3260,1 iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick.be0e78&lt;br /&gt;
 192.168.69.15:3260,1 iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick1.be0e78&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Map the Target&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# iscsiadm  -m node -l -T &amp;quot;iqn.2004-04.com.qnap:ts-439u:&lt;br /&gt;
 iscsi.ipbrick.be0e78&amp;quot;&lt;br /&gt;
 Logging in to [iface: default, target:&lt;br /&gt;
 iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick.be0e78, &lt;br /&gt;
 portal: 192.168.69.15,3260]&lt;br /&gt;
 Login to [iface: default, target: iqn.2004-04.com.qnap:ts-439u:&lt;br /&gt;
 iscsi.ipbrick.be0e78, portal: 192.168.69.15,3260]: successful&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With a dmesg command it's now possible to see the new disc as a device sdb:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Loading iSCSI transport class v2.0-871.&lt;br /&gt;
 iscsi: registered transport (tcp)&lt;br /&gt;
 scsi1 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi2 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi3 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi4 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi5 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi6 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi 5:0:0:0: Direct-Access     QNAP     &lt;br /&gt;
 iSCSI Storage    3.1  PQ: 0 ANSI: 5&lt;br /&gt;
 sd 5:0:0:0: [sdb] 104857600 512-byte hardware sectors:&lt;br /&gt;
 (53.6 GB/50.0 GiB)&lt;br /&gt;
 sd 5:0:0:0: [sdb] Write Protect is off&lt;br /&gt;
 sd 5:0:0:0: [sdb] Mode Sense: 2f 00 00 00&lt;br /&gt;
 sd 5:0:0:0: [sdb] Write cache:&lt;br /&gt;
 disabled, read cache: enabled, doesn't support DPO or FUA&lt;br /&gt;
 sdb: sdb1&lt;br /&gt;
 sd 5:0:0:0: [sdb] Attached SCSI disk&lt;br /&gt;
&lt;br /&gt;
If necessary, format the disc and use this procedure as an example that creates a new partition /dev/sdb:&lt;br /&gt;
&lt;br /&gt;
 mkfs.ext4 /dev/sdb&lt;br /&gt;
&lt;br /&gt;
fstab mapping is done by device and it can be captured via /dev/sdb&lt;br /&gt;
&lt;br /&gt;
It will be necessary to inscribe it at /etc/fstab&lt;br /&gt;
&lt;br /&gt;
Assuming that this new volume will be used as home3, create its mount point:&lt;br /&gt;
&lt;br /&gt;
 mkdir /home3&lt;br /&gt;
&lt;br /&gt;
Map /etc/fstab by executing the nano editor:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&lt;br /&gt;
Inscribe the following:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdb /home3  ext4  defaults,usrquota,grpquota,user_xattr,acl   0   2&lt;br /&gt;
&lt;br /&gt;
Now, you need to run this script so as home3 can be added to the IPBRICK web interface.&lt;br /&gt;
&lt;br /&gt;
 /opt/system/scripts/system_add_new_workareas.php 1&lt;br /&gt;
&lt;br /&gt;
You will get the following notification:&lt;br /&gt;
&lt;br /&gt;
 Work Area 3 was successfully inserted!&lt;br /&gt;
 Don't forget to Apply Configurations to commit the changes.&lt;br /&gt;
&lt;br /&gt;
== Firewall ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usually, the firewall service is disabled at an intranet server. However, by default, IPBRICK has it active. So, in order create a rule to allow the communication between the IPBRICK and the SAN, please access the following menu:&lt;br /&gt;
&lt;br /&gt;
 Advanced Configurations -&amp;gt; Network -&amp;gt; Firewall&lt;br /&gt;
&lt;br /&gt;
Click on Insert and create a rule of this type:&lt;br /&gt;
&lt;br /&gt;
 Type of configuration to insert: General Settings&lt;br /&gt;
 Rule: INPUT&lt;br /&gt;
 Interface: ETHx (The NIC used in the iSCSI connection)&lt;br /&gt;
 Protocol ALL&lt;br /&gt;
 Origin IP: [Storage IPs]&lt;br /&gt;
 Policy: ACCEPT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the Insert button to create the rule&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Manage iSCSI ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Some useful commands to manage iSCSI on IPBrick:&lt;br /&gt;
&lt;br /&gt;
 Restart the openiscsi: /etc/init.d/open-iscsi restart&lt;br /&gt;
 Check the session status: /etc/init.d/open-iscsi status&lt;br /&gt;
 Use the dmesg command to find the disc's device;&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/ISCSI</id>
		<title>ISCSI</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/ISCSI"/>
				<updated>2015-12-18T18:43:10Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
iSCSI, is an abbreviation of Internet Small Computer System Interface, an Internet Protocol (IP)-based storage networking standard for linking data storage facilities.&lt;br /&gt;
&lt;br /&gt;
iSCSI is used to facilitate data transfers over intranets and to manage storage over long distances. iSCSI can be used to transmit data over local area networks (LANs), wide area networks (WANs), or the Internet and can enable location-independent data storage and retrieval. The protocol allows clients (called initiators) to send SCSI commands (CDBs) to SCSI storage devices (targets) on remote servers.&lt;br /&gt;
&lt;br /&gt;
It is a popular Storage Area Network  (SAN) protocol, allowing organizations to consolidate storage into data center storage arrays while providing hosts (such as database and web servers) with the illusion of locally-attached disks. Unlike traditional Fibre Channel, which requires special-purpose cabling, iSCSI can be run over long distances using existing network infrastructure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IPBrick v6.0&lt;br /&gt;
&lt;br /&gt;
Connection to the Internet&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
The installation process is done via sources list update.&lt;br /&gt;
&lt;br /&gt;
Access the console:&lt;br /&gt;
&lt;br /&gt;
NOTE: This procedure is done directly at the server's console as a root user.&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# vi /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
 #deb http://repository.ipbrick.com/wheezy wheezy main contrib non-free ipbrick60&lt;br /&gt;
 deb http://ftp.pt.debian.org/debian wheezy main contrib non-free&lt;br /&gt;
 deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free&lt;br /&gt;
 deb http://security.debian.org/ wheezy/updates main contrib non-free&lt;br /&gt;
&lt;br /&gt;
Still at the console, run these commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# apt-get update&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# apt-get install open-iscsi&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to configure an iSCSI interface please follow these steps:&lt;br /&gt;
&lt;br /&gt;
NOTE: The service configuration is done directly at the server's console as a root user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The /etc/iscsi/initiatorname.iscsi file will identify ONLY the IPBRICK server.&lt;br /&gt;
&lt;br /&gt;
Usually its name is composed by these elements:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 iqn + . + year-month + . + server_name + : + custom_string&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
E.g:&lt;br /&gt;
 cat /etc/iscsi/initiatorname.iscsi&lt;br /&gt;
&lt;br /&gt;
 GenerateName=no&lt;br /&gt;
 InitiatorName=iqn.2015-12.com.domain.ipbrick:fileserver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The configuration file /etc/iscsi/iscsid.conf can be edited to set the service's autostart parameter:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 node.startup = automatic&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
And also the authentication parameters:&lt;br /&gt;
&lt;br /&gt;
- '''NO AUTHENTICATION''': If access to the storage is to be done without authentication, no changes to the configuration file are necessary, the following lines should remain as comments:&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 #node.session.auth *&lt;br /&gt;
 #discovery.sendtargets.auth *&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- '''WITH AUTHENTICATION - CHAP''': &lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 node.session.auth.authmethod = CHAP&lt;br /&gt;
 ...&lt;br /&gt;
 node.session.auth.username = username&lt;br /&gt;
 node.session.auth.password = password&lt;br /&gt;
 ...&lt;br /&gt;
 discovery.sendtargets.auth.authmethod = CHAP&lt;br /&gt;
 ...&lt;br /&gt;
 discovery.sendtargets.auth.username = username&lt;br /&gt;
 discovery.sendtargets.auth.password = password&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: Please replace username and password by the username and password of your iSCSI Target.&lt;br /&gt;
&lt;br /&gt;
Proceed by stopping and then restarting the iSCSI service - execute:&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/open-iscsi stop&lt;br /&gt;
 /etc/init.d/open-iscsi start&lt;br /&gt;
&lt;br /&gt;
Run iscsiadm to discover the iSCSI devices on the iSCSI Server with the IP 192.168.69.15&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# iscsiadm  -m discovery -t st -p 192.168.69.15&lt;br /&gt;
 192.168.69.15:3260,1 iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick.be0e78&lt;br /&gt;
 192.168.69.15:3260,1 iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick1.be0e78&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Map the Target&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# iscsiadm  -m node -l -T &amp;quot;iqn.2004-04.com.qnap:ts-439u:&lt;br /&gt;
 iscsi.ipbrick.be0e78&amp;quot;&lt;br /&gt;
 Logging in to [iface: default, target:&lt;br /&gt;
 iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick.be0e78, &lt;br /&gt;
 portal: 192.168.69.15,3260]&lt;br /&gt;
 Login to [iface: default, target: iqn.2004-04.com.qnap:ts-439u:&lt;br /&gt;
 iscsi.ipbrick.be0e78, portal: 192.168.69.15,3260]: successful&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With a dmesg command it's now possible to see the new disc as a device sdb:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Loading iSCSI transport class v2.0-871.&lt;br /&gt;
 iscsi: registered transport (tcp)&lt;br /&gt;
 scsi1 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi2 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi3 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi4 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi5 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi6 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi 5:0:0:0: Direct-Access     QNAP     &lt;br /&gt;
 iSCSI Storage    3.1  PQ: 0 ANSI: 5&lt;br /&gt;
 sd 5:0:0:0: [sdb] 104857600 512-byte hardware sectors:&lt;br /&gt;
 (53.6 GB/50.0 GiB)&lt;br /&gt;
 sd 5:0:0:0: [sdb] Write Protect is off&lt;br /&gt;
 sd 5:0:0:0: [sdb] Mode Sense: 2f 00 00 00&lt;br /&gt;
 sd 5:0:0:0: [sdb] Write cache:&lt;br /&gt;
 disabled, read cache: enabled, doesn't support DPO or FUA&lt;br /&gt;
 sdb: sdb1&lt;br /&gt;
 sd 5:0:0:0: [sdb] Attached SCSI disk&lt;br /&gt;
&lt;br /&gt;
If necessary, format the disc and use this procedure as an example that creates a new partition /dev/sdb:&lt;br /&gt;
&lt;br /&gt;
 mkfs.ext4 /dev/sdb&lt;br /&gt;
&lt;br /&gt;
fstab mapping is done by device and it can be captured via /dev/sdb&lt;br /&gt;
&lt;br /&gt;
It will be necessary to inscribe it at /etc/fstab&lt;br /&gt;
&lt;br /&gt;
Assuming that this new volume will be used as home3, create its mount point:&lt;br /&gt;
&lt;br /&gt;
 mkdir /home3&lt;br /&gt;
&lt;br /&gt;
Map /etc/fstab by executing the nano editor:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&lt;br /&gt;
Inscribe the following:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdb /home3  ext4  defaults,usrquota,grpquota,user_xattr,acl   0   2&lt;br /&gt;
&lt;br /&gt;
Now, you need to run this script so as home3 can be added to the IPBRICK web interface.&lt;br /&gt;
&lt;br /&gt;
 /opt/system/scripts/system_add_new_workareas.php 1&lt;br /&gt;
&lt;br /&gt;
You will get the following notification:&lt;br /&gt;
&lt;br /&gt;
 Work Area 3 was successfully inserted!&lt;br /&gt;
 Don't forget to Apply Configurations to commit the changes.&lt;br /&gt;
&lt;br /&gt;
== Firewall ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usually, the firewall service is disabled at an intranet server. However, by default, IPBRICK has it active. So, in order create a rule to allow the communication between the IPBRICK and the SAN, please access the following menu:&lt;br /&gt;
&lt;br /&gt;
 Advanced Configurations -&amp;gt; Network -&amp;gt; Firewall&lt;br /&gt;
&lt;br /&gt;
Click on Insert and create a rule of this type:&lt;br /&gt;
&lt;br /&gt;
 Type of configuration to insert: General Settings&lt;br /&gt;
 Rule: INPUT&lt;br /&gt;
 Interface: ETHx (The NIC used in the iSCSI connection)&lt;br /&gt;
 Protocol ALL&lt;br /&gt;
 Origin IP: [Storage IPs]&lt;br /&gt;
 Policy: ACCEPT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the Insert button to create the rule&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Manage iSCSI ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Some useful commands to manage iSCSI on IPBrick:&lt;br /&gt;
&lt;br /&gt;
 Restart the openiscsi: /etc/init.d/open-iscsi restart&lt;br /&gt;
 Check the session status: /etc/init.d/open-iscsi status&lt;br /&gt;
 Use the dmesg command to find the disc's device;&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/ISCSI</id>
		<title>ISCSI</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/ISCSI"/>
				<updated>2015-12-18T18:41:06Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
iSCSI, is an abbreviation of Internet Small Computer System Interface, an Internet Protocol (IP)-based storage networking standard for linking data storage facilities.&lt;br /&gt;
&lt;br /&gt;
iSCSI is used to facilitate data transfers over intranets and to manage storage over long distances. iSCSI can be used to transmit data over local area networks (LANs), wide area networks (WANs), or the Internet and can enable location-independent data storage and retrieval. The protocol allows clients (called initiators) to send SCSI commands (CDBs) to SCSI storage devices (targets) on remote servers.&lt;br /&gt;
&lt;br /&gt;
It is a popular Storage Area Network  (SAN) protocol, allowing organizations to consolidate storage into data center storage arrays while providing hosts (such as database and web servers) with the illusion of locally-attached disks. Unlike traditional Fibre Channel, which requires special-purpose cabling, iSCSI can be run over long distances using existing network infrastructure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IPBrick v6.0&lt;br /&gt;
&lt;br /&gt;
Connection to the Internet&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
The installation process is done via sources list update.&lt;br /&gt;
&lt;br /&gt;
Access the console:&lt;br /&gt;
&lt;br /&gt;
NOTE: This procedure is done directly at the server's console as a root user.&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# vi /etc/apt/sources.list&lt;br /&gt;
&lt;br /&gt;
 #deb http://repository.ipbrick.com/wheezy wheezy main contrib non-free ipbrick60&lt;br /&gt;
 deb http://ftp.pt.debian.org/debian wheezy main contrib non-free&lt;br /&gt;
 deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free&lt;br /&gt;
 deb http://security.debian.org/ wheezy/updates main contrib non-free&lt;br /&gt;
&lt;br /&gt;
Still at the console, run these commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# apt-get update&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# apt-get install open-iscsi&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to configure an iSCSI interface please follow these steps:&lt;br /&gt;
&lt;br /&gt;
NOTE: The service configuration is done directly at the server's console as a root user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The /etc/iscsi/initiatorname.iscsi file will identify ONLY the IPBRICK server.&lt;br /&gt;
&lt;br /&gt;
Usually its name is composed by these elements:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 iqn + . + year-month + . + server_name + : + custom_string&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
E.g:&lt;br /&gt;
&lt;br /&gt;
 iqn.2012-08.com.domain.ipbrick:fileserver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The configuration file /etc/iscsi/iscsid.conf can be edited to set the service's autostart parameter:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 node.startup = automatic&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
And also the authentication parameters:&lt;br /&gt;
&lt;br /&gt;
- '''NO AUTHENTICATION''': If access to the storage is to be done without authentication, no changes to the configuration file are necessary, the following lines should remain as comments:&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 #node.session.auth *&lt;br /&gt;
 #discovery.sendtargets.auth *&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- '''WITH AUTHENTICATION - CHAP''': &lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 node.session.auth.authmethod = CHAP&lt;br /&gt;
 ...&lt;br /&gt;
 node.session.auth.username = username&lt;br /&gt;
 node.session.auth.password = password&lt;br /&gt;
 ...&lt;br /&gt;
 discovery.sendtargets.auth.authmethod = CHAP&lt;br /&gt;
 ...&lt;br /&gt;
 discovery.sendtargets.auth.username = username&lt;br /&gt;
 discovery.sendtargets.auth.password = password&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: Please replace username and password by the username and password of your iSCSI Target.&lt;br /&gt;
&lt;br /&gt;
Proceed by stopping and then restarting the iSCSI service - execute:&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/open-iscsi stop&lt;br /&gt;
 /etc/init.d/open-iscsi start&lt;br /&gt;
&lt;br /&gt;
Run iscsiadm to discover the iSCSI devices on the iSCSI Server with the IP 192.168.69.15&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# iscsiadm  -m discovery -t st -p 192.168.69.15&lt;br /&gt;
 192.168.69.15:3260,1 iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick.be0e78&lt;br /&gt;
 192.168.69.15:3260,1 iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick1.be0e78&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Map the Target&lt;br /&gt;
&lt;br /&gt;
 ipbrick:~# iscsiadm  -m node -l -T &amp;quot;iqn.2004-04.com.qnap:ts-439u:&lt;br /&gt;
 iscsi.ipbrick.be0e78&amp;quot;&lt;br /&gt;
 Logging in to [iface: default, target:&lt;br /&gt;
 iqn.2004-04.com.qnap:ts-439u:iscsi.ipbrick.be0e78, &lt;br /&gt;
 portal: 192.168.69.15,3260]&lt;br /&gt;
 Login to [iface: default, target: iqn.2004-04.com.qnap:ts-439u:&lt;br /&gt;
 iscsi.ipbrick.be0e78, portal: 192.168.69.15,3260]: successful&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With a dmesg command it's now possible to see the new disc as a device sdb:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Loading iSCSI transport class v2.0-871.&lt;br /&gt;
 iscsi: registered transport (tcp)&lt;br /&gt;
 scsi1 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi2 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi3 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi4 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi5 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi6 : iSCSI Initiator over TCP/IP&lt;br /&gt;
 scsi 5:0:0:0: Direct-Access     QNAP     &lt;br /&gt;
 iSCSI Storage    3.1  PQ: 0 ANSI: 5&lt;br /&gt;
 sd 5:0:0:0: [sdb] 104857600 512-byte hardware sectors:&lt;br /&gt;
 (53.6 GB/50.0 GiB)&lt;br /&gt;
 sd 5:0:0:0: [sdb] Write Protect is off&lt;br /&gt;
 sd 5:0:0:0: [sdb] Mode Sense: 2f 00 00 00&lt;br /&gt;
 sd 5:0:0:0: [sdb] Write cache:&lt;br /&gt;
 disabled, read cache: enabled, doesn't support DPO or FUA&lt;br /&gt;
 sdb: sdb1&lt;br /&gt;
 sd 5:0:0:0: [sdb] Attached SCSI disk&lt;br /&gt;
&lt;br /&gt;
If necessary, format the disc and use this procedure as an example that creates a new partition /dev/sdb:&lt;br /&gt;
&lt;br /&gt;
 mkfs.ext4 /dev/sdb&lt;br /&gt;
&lt;br /&gt;
fstab mapping is done by device and it can be captured via /dev/sdb&lt;br /&gt;
&lt;br /&gt;
It will be necessary to inscribe it at /etc/fstab&lt;br /&gt;
&lt;br /&gt;
Assuming that this new volume will be used as home3, create its mount point:&lt;br /&gt;
&lt;br /&gt;
 mkdir /home3&lt;br /&gt;
&lt;br /&gt;
Map /etc/fstab by executing the nano editor:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/fstab&lt;br /&gt;
&lt;br /&gt;
Inscribe the following:&lt;br /&gt;
&lt;br /&gt;
 /dev/sdb /home3  ext4  defaults,usrquota,grpquota,user_xattr,acl   0   2&lt;br /&gt;
&lt;br /&gt;
Now, you need to run this script so as home3 can be added to the IPBRICK web interface.&lt;br /&gt;
&lt;br /&gt;
 /opt/system/scripts/system_add_new_workareas.php 1&lt;br /&gt;
&lt;br /&gt;
You will get the following notification:&lt;br /&gt;
&lt;br /&gt;
 Work Area 3 was successfully inserted!&lt;br /&gt;
 Don't forget to Apply Configurations to commit the changes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Firewall ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usually, the firewall service is disabled at an intranet server. However, by default, IPBRICK has it active. So, in order create a rule to allow the communication between the IPBRICK and the SAN, please access the following menu:&lt;br /&gt;
&lt;br /&gt;
 Advanced Configurations -&amp;gt; Network -&amp;gt; Firewall&lt;br /&gt;
&lt;br /&gt;
Click on Insert and create a rule of this type:&lt;br /&gt;
&lt;br /&gt;
 Type of configuration to insert: General Settings&lt;br /&gt;
 Rule: INPUT&lt;br /&gt;
 Interface: ETHx (The NIC used in the iSCSI connection)&lt;br /&gt;
 Protocol ALL&lt;br /&gt;
 Origin IP: [Storage IPs]&lt;br /&gt;
 Policy: ACCEPT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the Insert button to create the rule&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Manage iSCSI ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Some useful commands to manage iSCSI on IPBrick:&lt;br /&gt;
&lt;br /&gt;
 Restart the openiscsi: /etc/init.d/open-iscsi restart&lt;br /&gt;
 Check the session status: /etc/init.d/open-iscsi status&lt;br /&gt;
 Use the dmesg command to find the disc's device;&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPBrick_Groupware_-_iOS</id>
		<title>IPBrick Groupware - iOS</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPBrick_Groupware_-_iOS"/>
				<updated>2015-10-25T10:38:24Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: Created page with &amp;quot;'''* * * * Página em construção - disponível brevemente * * * *'''&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''* * * * Página em construção - disponível brevemente * * * *'''&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPBrick_Groupware_-_Android</id>
		<title>IPBrick Groupware - Android</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPBrick_Groupware_-_Android"/>
				<updated>2015-10-25T10:38:21Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: Created page with &amp;quot;'''* * * * Página em construção - disponível brevemente * * * *'''&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''* * * * Página em construção - disponível brevemente * * * *'''&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPBrick_Groupware_-_Microsoft_Outlook</id>
		<title>IPBrick Groupware - Microsoft Outlook</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPBrick_Groupware_-_Microsoft_Outlook"/>
				<updated>2015-10-25T10:38:17Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: Created page with &amp;quot;'''* * * * Página em construção - disponível brevemente * * * *'''&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''* * * * Página em construção - disponível brevemente * * * *'''&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	<entry>
		<id>https://wiki.ipbrick.com/index.php/IPBrick_Groupware_-_Mozilla_Thunderbird</id>
		<title>IPBrick Groupware - Mozilla Thunderbird</title>
		<link rel="alternate" type="text/html" href="https://wiki.ipbrick.com/index.php/IPBrick_Groupware_-_Mozilla_Thunderbird"/>
				<updated>2015-10-25T10:38:05Z</updated>
		
		<summary type="html">&lt;p&gt;Amachado: Created page with &amp;quot;'''* * * * Página em construção - disponível brevemente * * * *'''&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''* * * * Página em construção - disponível brevemente * * * *'''&lt;/div&gt;</summary>
		<author><name>Amachado</name></author>	</entry>

	</feed>