Recordings volume
Call recordings live on their own fixed-size volume, mounted on the telephony engine’s recordings folder. When full, only new recordings fail: calls carry on normally, and the database, the telephony engine and voicemail, which are on the system disk, keep their space. Customer announcements are in the same folder: with a full volume, uploading a new announcement fails too.
At installation
The image sets it up on its first boot:
- with a second, empty disk added to the VM (recommended in production): it is formatted and mounted whole; its size is the one you give it;
- otherwise, a 50 GB file (
/var/lib/kanadr-systeme/enregistrements.img), mounted in the same place. If the system disk lacks space, the volume is reduced (5 GB stay free on the system disk) and the first-boot log says so; if it is too small, the instance starts without a dedicated volume and the portal home page says so.
A disk is only used if it is entirely empty (no partition, no filesystem), neither removable nor read-only, and of 1 GB at least (an empty floppy drive is ignored); a disk holding data is never formatted.
With the package, set it up yourself, with the telephony engine stopped (calls are cut during the operation):
sudo systemctl stop kanadr-moteur
sudo kanadr-volume-enregistrements creer --disque /dev/vdb # a dedicated empty disk
sudo kanadr-volume-enregistrements creer --taille 50G # or a file
sudo systemctl start kanadr-moteur
Recordings already there are copied into the volume.
How much space
The telephony engine records in stereo MP3: about 16 MB per hour of recorded call. 50 GB therefore hold about 3,000 hours. Retention (6 months at most) deletes the oldest every hour: count the hours recorded over that period.
Monitoring and growing
sudo kanadr-volume-enregistrements etat: size, used and free space.- The portal home page warns at 80% usage, alerts at 95%, and flags recordings without a dedicated volume; the operator’s email alerts go out at the same thresholds, and below 20% then 10% free space on the system disk.
- Prometheus:
kanadr_volume_taille_octets,kanadr_volume_libre_octetsandkanadr_enregistrements_volume_dedie, with reference alerts (see Monitoring).
To grow it, live (calls and recordings carry on):
- file:
sudo kanadr-volume-enregistrements agrandir 100G(the system disk must have the space); - second disk: grow it in the hypervisor, then
sudo kanadr-volume-enregistrements agrandir.
A volume cannot shrink. To free space without growing it, shorten recording retention (Settings, Personal data tab, or per customer).