Actions

HowTo Setup AlphaCom NetworkDisk

From Zenitel Wiki

Revision as of 20:48, 30 March 2008 by Kjellove (talk) (Mounting the shares, and test the content)

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.

Mounting the shares, and test the content

First the the disks has to be mounted on the AlphaCom, command and typical output:

-bash-3.1# ./netdiskprepare.sh mount

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

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

 ---------------------------------------------------------
 Used Space on shares:
AlphaCom Extended Applications : 0      /mnt/local
AlphaCom MySQL Database        : 0      /mnt/mysql
AlphaCom NetDisk logging       : 0      /mnt/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 ---------------------------------

The scripts give two warnings saying that no Extended Application package installed, and no MySQL database found. Continue with paragraphs below until you can mount without the warnings. You can use the script to unmount the shares (and mount again for testing): Tip: Use the linux mount command to get a list of the active mounts in the system.

-bash-3.1# ./netdiskprepare.sh umount

Installing the Extended application package

Installing AlphaCom Extended Application Package

Preparing the AlphaCom MySQL Database