Verifying the alternate attachment store

Last Updated : Nov 23, 2018 |
Prolog information
If you do not add a second virtual hard disk to the Avaya Breeze® platform cluster node before installing Presence Services, then, by default, the Presence Services software creates an alternate attachment store in the /var partition on the Avaya Breeze® platform server. Presence Services creates an alternate attachment store if a second hard disk is not found. You can verify if the alternate store exists by using the Avaya Breeze® platform or Presence Services server.
  1. Log in to the Avaya Breeze® platform running Presence Services as a root user.
  2. At the command prompt, run the lsblk —b command as shown in the following example.
    ADDITIONAL INFORMATION:
    If the result of the lsblk -d command shows a second virtual hard disk named sdb or vdb, then the second virtual hard disk was added successfully. Else, verify the virtual hard disk settings in the virtual machine by using the vCenter or vSphere client, and reboot the Avaya Breeze® platform server.
    Example
    [root@breeze106 ~]# lsblk -d
    NAME MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
    sda    8:0    0   50G  0 disk 
    sdb    8:16   0   50G  0 disk 
    sr0   11:0    1 1024M  0 rom 
    [root@breeze106 ~]#
  3. At the command prompt, run the ls command as shown in the following example.
    ADDITIONAL INFORMATION:
    If the result of the ls command shows the attachments directory and its contents, the attachment store directory structure is set up correctly. Else, perform Step 4.
    Example
    [root@ breeze106 ~]# ls -l /opt/ps
    total 0
    drwxrwx---. 7 asset susers 66 Aug 17 10:51 attachments

    [root@ breeze106 ~]# ls -l /opt/ps/attachments
    total 0
    drwxrwx---. 2 asset susers  6 Aug 17 10:51 cache
    drwxrwx---. 2 asset susers 31 Aug 17 10:51 conf
    drwxrwx---. 2 asset susers  6 Aug 17 10:51 files
    drwxrwx---. 2 asset susers  6 Aug 17 10:51 log
    drwxrwx---. 2 asset susers  6 Aug 17 10:51 tmp

    [root@ breeze106 ~]# ls -l /var/ps
    ls: cannot access /var/ps: No such file or directory         # this error is expected as /var/ps directory should not exist
  4. At the command prompt, run the ls command as shown in the following example.
    ADDITIONAL INFORMATION:
    If the result of the ls command shows that the /var/ps directory exists and contains an ‘attachment’ directory, perform Step 5. Else, you can install the Presence Services software and the installation will create the proper directory structure.
    Example
    [root@ breeze106 ~]# ls -al /var/ps
    total 0
    drwxrwx---.  7 asset susers   61 Aug 17 12:41 attachments
  5. At the command prompt, run the presBuildAttachmentDisk command with the -- move option to manually move the alternate attachment store from /var/ps to /opt/ps on the second virtual hard disk.
    ADDITIONAL INFORMATION:
    Note:
    If the Presence Services software is installed, ensure that you set Presence Services to Deny New Service mode before you move the alternate attachment store to the second virtual hard disk. This will ensure that no new multimedia file attachments are added to the attachment store while the store is being moved.
    [root@ breeze106 ~]# presBuildAttachmentDisk --move
    presBuildAttachmentDisk.sh: Attachment 2nd disk found
    presBuildAttachmentDisk.sh: Attachment disk is not mounted
    presBuildAttachmentDisk.sh: Attachment disk partitioned successfully
    presBuildAttachmentDisk.sh: Attachment disk formatted successfully
    presBuildAttachmentDisk.sh: Attachment disk mount point added
    presBuildAttachmentDisk.sh: Attachment disk mounted successfully
    presBuildAttachmentDisk.sh: Copying files from /var/ps/attachments to /opt/ps
    presBuildAttachmentDisk.sh: Removing files from /var/ps
    presBuildAttachmentDisk.sh: Done. Restart PresenceServices snapin
    Use the ls command to verify that the store structure is created.
    [root@ breeze106 ~]# ls -l /opt/ps
    total 0
    drwxrwx---. 7 asset susers 66 Aug 17 12:41 attachments
  6. If everything fails and the directory structure is not created properly, run the presBuildAttachmentDisk command, to completely remove any existing directory structure and create a new empty structure.
    ADDITIONAL INFORMATION:
    Use the detach option to remove the existing attachment store.
    [root@ breeze106 ~]# presBuildAttachmentDisk --detach
    presBuildAttachmentDisk.sh: Attachment alternate directory cleanup started
    presBuildAttachmentDisk.sh: Attachment alternate directory not found
    presBuildAttachmentDisk.sh: Attachment 2nd disk found
    presBuildAttachmentDisk.sh: Attachment disk cleanup started
    presBuildAttachmentDisk.sh: Attachment disk cleanup, all attachment data on /dev/psvg/presence_services will be lost
    Continue (y/n) ? y
    presBuildAttachmentDisk.sh: Attachment disk unmounted
    presBuildAttachmentDisk.sh: Remove entry for /dev/psvg/presence_services in /etc/fstab
    presBuildAttachmentDisk.sh: Done
    [root@ breeze106 ~]#
    Use the ls command to verify that the store is removed.
    [root@ breeze106 ~]# ls -l /opt/ps
    ls: cannot access /opt/ps: No such file or directory
    [root@ breeze106 ~]# ls -l /var/ps
    ls: cannot access /var/ps: No such file or directory
    [root@ breeze106 ~]#
    Use the autoconfigure option to create the new attachment store structure.
    [root@ breeze106 ~]# presBuildAttachmentDisk --autoconfigure
    presBuildAttachmentDisk.sh: Attachment disk auto configuration started
    presBuildAttachmentDisk.sh: Attachment 2nd disk found
    presBuildAttachmentDisk.sh: Attachment disk is not mounted
    presBuildAttachmentDisk.sh: Attachment disk partitioned successfully
    presBuildAttachmentDisk.sh: Attachment disk formatted successfully
    presBuildAttachmentDisk.sh: Attachment disk mount point added
    presBuildAttachmentDisk.sh: Attachment disk mounted successfully
    presBuildAttachmentDisk.sh: Attachment directory /opt/ps/attachments created
    presBuildAttachmentDisk.sh: Attachment directory /opt/ps/attachments/files created
    presBuildAttachmentDisk.sh: Attachment directory /opt/ps/attachments/cache created
    presBuildAttachmentDisk.sh: Attachment directory /opt/ps/attachments/conf created
    presBuildAttachmentDisk.sh: Attachment directory /opt/ps/attachments/log created
    presBuildAttachmentDisk.sh: Attachment directory /opt/ps/attachments/tmp created
    presBuildAttachmentDisk.sh: Attachment store file /opt/ps/attachments/conf/store created
    presBuildAttachmentDisk.sh: Attachment hash file /opt/ps/attachments/conf/hash created
    presBuildAttachmentDisk.sh: Done
    [root@ breeze106 ~]#
    Use the ls command to verify that the store structure is created.
    [root@ breeze106 ~]# ls -l /opt/ps
    total 0
    drwxrwx---. 7 asset susers 66 Aug 17 13:04 attachments

    [root@ breeze106 ~]# ls -l /var/ps
    ls: cannot access /var/ps: No such file or directory                # this is expected
    [root@ breeze106 ~]#