Adding Second HD (Hard Drive)

~ 0 min
04-05-2020 04:47

 

STEP #1 - Verify if Server detect HD
cat /proc/partitions 

 

STEP #2 - Verify if HD is Mount
df -h

 

STEP #3 - Create HD Mount Point
mkdir /monitor

 

STEP #4 - Change Folder Permissions
chgrp asterisk /monitor
chown asterisk /monitor
ls -al

STEP #5 - Edit Server's Boot File
nano /etc/rc.local

ADD THIS CODE:

/bin/mount /dev/sdb1 /monitor

 

STEP #6 - Execute Server's Boot Script
cd /etc
./rc.local

 

STEP #7 - Verify HD Mounting Point
df -h

 

STEP #8- Verify Recording Location (To Backup Old Recordings)
cd /var/spool/asterisk/monitor/
ls
mv ./* /monitor
cd

 

STEP #9 - Removed Recording Folder + Create a Symbolic Link to New Folder
rm -rf /var/spool/asterisk/monitor
/bin/ln -s /monitor /var/spool/asterisk

 

STEP #10 - Verify Symbolic Link to New Folder
cd /var/spool/asterisk
ls -l

 

STEP #11 - Change Folder Permissions to Prevent Writing Errors
chown -h asterisk:asterisk monitor
ls -l

 

 

Average rating 0 (0 Votes)

You cannot comment on this entry