I am trying to backup FreePBX, but it will only back up to it's specified path on the local disk. I have another partition/volume group with Gigabytes in free space. I want to point/mount that space to the default location for PBX which is on the root partition/VG. Is that possible?
This is also on mirrored drives.
So, essentially I want to have /var/lib/asterisk/backups on the root partition/VG pointing to /backups on the /home partition/VG
Code:
[root@localhost asterisk]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
50G 29G 19G 62% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
/dev/mapper/ddf1_4c53492020202020808627c3000000004711471100001450p1
485M 31M 429M 7% /boot
/dev/mapper/VolGroup-lv_home
404G 444M 383G 1% /home
Code:
[root@localhost asterisk]# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0003c95f
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 60667 486791168 8e Linux LVM
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0003c95f
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sdb2 64 60667 486791168 8e Linux LVM