Hi guys, I am using FreePBX 13.0.197 it has 1 1000gb drive which is almost full ( currently at 97%) I like to know is there a way to increase drive.
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 916G 839G 31G 97% /
tmpfs 7.8G 0 7.8G 0% /dev/shm
/dev/sda1 283M 32M 237M 12% /boot
/dev/sda2 is at 97% and i want to know is this possible to add another drive for recording storage?
server is running on hp hp proliant g7.
Yes, you either A) Clean up the current drive so there is more space on it. B) Add a second drive to the machine or C) Replace the entire drive with a new driver that has more space and move the data over.
You canāt magically make a 1TB hard drive have more space than it was built to store.
Add a hard drive , format it, and mount it somewhere that astrridk can read/erite to, in advanced settings, you can point your recorded location to match.
Hereās an idea. Why donāt you try and clean up the hard drive first? Remove old logs, unneeded files, old voicemails, etc. etc. etc. Have you looked to see what is actually taking up this space? You could be doing all this work just because you had a bunch of junk never cleared off your drive.
its on auto recording so i believe all space is going for recordings ā¦ and for us recording are super Important so i cant delete thoseā¦ but i would like to know how do i access server to delete files and older recording please ā¦
OK so i successfully mounted drive as /mnt/sdb but now how do i make server to send recording there ??? (i tested on testing server of freepbx not actual but i succeeded)
also will i be able to access recordings from old location ?
Youāll need to add it to the fstab and then start moving the old files. To ensure all of the recordings get moved, you should reboot the server after the fstab change is made.
Now, I only know how to do this āold schoolā, so the steps required in your version of Linux may vary slightly, but log into the console and start here:
Open the file /etc/fstab using an editor like vim (vi /etc/fstab should work).
Add a new line for the new drive. It will probably look something like this:
/dev/sdb /var/spool/asterisk ext3 defaults 0 0
Save the file.
Use the command āfwconsole stopā to stop Asterisk.
Use the āmvā command to rename /var/spool/asterisk to /var/spool/asterisk.old
Use the āmkdirā command to create a new /var/spool/asterisk
Use the command āmount -aā to mount the new drive as /var/spool/asterisk
Use ācd /var/spool/asterisk.oldā to go to the old asterisk log directory.
Use āfind . | cpio -pdmuv /var/spool/asteriskā to copy all of the old files to the new directory.
Use the command āfwconsole startā to restart Asterisk.
Once Asterisk starts back up again and youāre convinced everything is where it belongs, delete the old directory using 'rm -fr /var/spool/asterisk.oldā
change the location of recordings in advanced as previously stated to/mnt/sdb/monitor
add
/dev/sdb /mnt/sdb ext3 defaults 0 0
to /etc/fstab
reboot
.
.
mount
should show /dev/sdb mounted at /mnt/sdb (if the disk was identified correctly as /dev/sdb)
Everything should be tested and working to your satisfaction. Until the next step is completed, everything is reversible. When truly satisfied you can
thanks so will i be able to access older recordings and also i cant move recordings to new drive as both are 1 tb drives so if i transfer all recordings to new drive it would be on same condition as previous driveā¦ what i am trying (if possible ) ti keep recordings in older folder and add new drive for new recordings but also be able to access old and new recordings from cdr reports . is this possible ??