Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated using 4PSA automated script

...

  1. Install the NFS utilities and supporting clients and daemons for the NFS server on the main node (the IC), that will became the NFS server for the distributed environment.

    Code Block
    yum install nfs-utils
  2. When working with NFS, you must take into consideration the total number of NFS threads that are available on the NFS server. By default, this number is set to 8. However, it's better to increase the number of threads on the NFS server. To do this, increase the value of RPCNFSDCOUNT in /etc/sysconfig/nfs

    Code Block
    RPCNFSDCOUNT=32
  3. Once the files are installed and the number of processes is set, start the NFS daemon on the IC.

    Code Block
    service nfs start
    service rpcbind start
  4. Before exporting the shared storage disk, you need to make sure that all the shared files and folders are available there.

  5. Assuming that /home/storage/ is the storage home directory, the following command will copy all the required files in the shared location.

    Code Block
    cp -Rap /var/spool/asterisk/ /home/storage/ --parents
    cp -Rap /var/lib/asterisk/ /home/storage/ --parents
    cp -Rap /var/lib/voipnow/ /home/storage/ --parents
    cp -Rap /var/lib/voipnowquota/ /home/storage/ --parents
    cp -Rap /var/lib/faxmsg/ /home/storage/ --parents
    cp -Rap /var/spool/fax/ /home/storage/ --parents
    cp -Rap /usr/local/voipnow/scache /home/storage/ --parents
    cp -Rap /usr/local/voipnow/stmp /home/storage/ --parents
    cp -Rap /usr/local/voipnow/tmp /home/storage/ --parents
  6. After running all these commands, the structure should look something like this:

    Code Block
    /home/storage/
    ├── usr
    │   └── local
    │       └── voipnow
    │           ├── scache
    │           ├── stmp
    │           └── tmp
    └── var
        ├── lib
        │   ├── asterisk
        │   │   ├── agi-bin
        │   │   ├── certs
        │   │   ├── documentation
        │   │   ├── firmware
        │   │   ├── images
        │   │   ├── keys
        │   │   ├── moh
        │   │   ├── music
        │   │   ├── phoneprov
        │   │   ├── sounds
        │   │   └── static-http
        │   ├── faxmsg
        │   ├── voipnow
        │   │   ├── core
        │   │   ├── dumps
        │   │   ├── prorepo
        │   │   ├── provisioning
        │   │   └── templates
        │   └── voipnowquota
        │      
        └── spool
            ├── asterisk
            │   ├── dictate
            │   ├── fax
            │   ├── meetme
            │   ├── monitor
            │   ├── outgoing
            │   ├── system
            │   ├── tmp
            │   ├── vm -> voicemail/default/
            │   └── voicemail
            └── fax
  7. The folders from the shared location must be mounted on the IC as well on the other nodes. For the IC, which is the main node also used as th eNFS server, the following lines must be added in /etc/fstab

    Code Block
    /home/storage/var/spool/asterisk /var/spool/asterisk   none    bind    0 0
    /home/storage/var/lib/asterisk /var/lib/asterisk   none    bind    0 0
    /home/storage/usr/local/voipnow/stmp /usr/local/voipnow/stmp   none    bind    0 0
    /home/storage/usr/local/voipnow/scache /usr/local/voipnow/scache   none    bind    0 0
    /home/storage/var/lib/faxmsg /var/lib/faxmsg   none    bind    0 0
    /home/storage/usr/local/voipnow/tmp /usr/local/voipnow/tmp   none    bind    0 0
    /home/storage/var/lib/voipnowquota /var/lib/voipnowquota   none    bind    0 0
    /home/storage/var/spool/fax /var/spool/fax   none    bind    0 0
    /home/storage/var/lib/voipnow /var/lib/voipnow   none    bind    0 0
  8. In order to export the shared folder to all the nodes from the distributed environment, the line below must be added to /etc/exports. This line says that /home/storage will be exported and that it can be used by any NFS client from then network 10.150.12.0/24. Basically, any NFS client can mount the shared folder and use it.

    Code Block
    /home/storage 10.150.12.0/255.255.255.0(rw,async,no_root_squash,no_all_squash)
    Warning

    To increase the writing performance of the NFS server, the share was exported using async as the method of writing. Keep in mind, however, that async can cause data loss and corruption of the saved files.

  9. Once the fstab and exports lines were added, the folders must be mounted and shared on the network. The following commands are required:

    Code Block
    mount -a
    exportfs -a

...

Content by Label
showLabelsfalse
max5
sortmodified
showSpacefalse
reversetrue
typepage
labelsdistributed architecture nfs infrastructure controller ic nodes storage disk
cqllabel in ("architecture","distributed","controller","ic","nodes","disk","infrastructure","storage","nfs") and type = "page"

Page properties
hiddentrue
Related issues 

Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.