Actions

Difference between revisions of "HowTo Setup AlphaCom NetworkDisk"

From Zenitel Wiki

(Preparing the NetworkDisk shares)
Line 89: Line 89:
 
   Use sftp to transfer and install a new packages to this mount
 
   Use sftp to transfer and install a new packages to this mount
 
   Testing for a valid alphacom MySQL DB (simple test)
 
   Testing for a valid alphacom MySQL DB (simple test)
   AlphaCom MySQL DB folder found
+
   !! No AlphaCom MySQL DB folder found !!
   Use this script with option 'initdb' to re-initialiaze to an empty DB
+
   Use this script with option 'initdb' to create and initialiaze an empty DB
 +
 
 
   
 
   
 
  ------------------- END ---------------------------------
 
  ------------------- END ---------------------------------

Revision as of 20:34, 30 March 2008

The following services is supported on NetworkDisk:

  • Extended Aphache/PHP/Mysql support
  • Mysql Database storage
  • Log storage

Creating Samba shares

The only requirement for the sharing device is that is supports the SAMBA/CIFS protocol, and it has sufficient disk space.

Share names

On the sharing device tree separate shares needs to be setup:

Share Name Description
local The AlphaCom Extended Application packages. Mounted locally on /usr/local/
mysql Storage space for the AlphaCom MySQL databases. Mounted locally on /var/mysql/
log Storage space for AlphaCom system log. Mouned locally on /var/log/

Share user

Default:

user = ace
passswd = alphacom

If other user/passwd is to be used the mounting scripts described below needs to be updated.

Required tools for setting up AlphaCom NetworkDisk

The setup procedure requires some manual steps using a ssh terminal and sftp file transfer.

Recommended tools to use:

SSH terminal: PuTTY (http://www.chiark.greenend.org.uk/~sgtatham/putty/)
sftp client: WinSCP (http://winscp.net/eng/index.php)

Netdisk Configuration file

The IP address for the sharing device and share user information is stored in simple confoguration file (shell variables):

/opt/amc/config/netdiskconfig.sh

Preparing the shares for AlphaCom support

Open a SSH terminal to the AlphaCom target and su to root (use "su -"):

-bash-3.1$ su -
Password: {root password}

Preparing the NetworkDisk shares

The script /opt/amc/scripts/netdiskprepare.sh is used to prepare the mount partitions for AlphaCom Extended Application support.

First the the disks has to be mounted on the AlphaCom:

-bash-3.1# ./netdiskprepare.sh mount

 ------------------- START -------------------------------
 Trying to mount netdisk shares
Disk sucsessfully mounted on /mnt/mini/local
Disk sucsessfully mounted on /mnt/mini/log
Disk sucsessfully mounted on /mnt/mini/mysql

 ---------------------------------------------------------
 Free space on shares:
Filesystem            Size  Used Avail Use% Mounted on
//10.5.2.165/alphalog
                      465G  178M  465G   1% /mnt/mini/log
//10.5.2.165/alphalocal
                      465G  178M  465G   1% /mnt/mini/local
//10.5.2.165/alphadb  465G  178M  465G   1% /mnt/mini/mysql

 ---------------------------------------------------------
 Used Space on shares:
AlphaCom Extended Applications : 153M   /mnt/mini/local
AlphaCom MySQL Database        : 21M    /mnt/mini/mysql
AlphaCom NetDisk logging       : 0      /mnt/mini/log

 ---------------------------------------------------------
 Testing for a valid Extended Application share
 !! No AlphaCom Extended Applications found !!
 Use sftp to transfer and install a new packages to this mount
 Testing for a valid alphacom MySQL DB (simple test)
 !! No AlphaCom MySQL DB folder found !!
 Use this script with option 'initdb' to create and initialiaze an empty DB


------------------- END ---------------------------------

Installing AlphaCom Extended Application Package

Preparing the AlphaCom MySQL Database