You mean / instead of /home ?
By default, FreePBX distro creates just 2 partitions, one is /boot and the other is an LVM for /
Have you selected a custom partition at install time?
Create a new directory on the / partition called âhome2â.
Look in the /etc/fstab file and find the actual partition make of the /home directory.
umount /home
mount /dev/whatever_its_called /home2
cd /home2
find . | cpio -pdmuv /home
Step 6 copies all of your files from the old /home partition to the /home directory on the root drive.
cd /home2
Yes, I know. Just being safe
rm -fr *
cd /var
find . | cpio -pdmuv /home2
This will copy everything on the /var directory to your old home partition.
vi /etc/fstab
Change the /home mount point to /var
reboot -s
Reboot into single user mode.
mv /var /var2 ; mkdir /var
mount -u -a
This should mount your drives back onto their (new) mount points. All of the files in your old /var directory are now in /var2
cd /var2
find . | cpio -pdmv
cd /
rm -fr /var2
Reboot and hope I didnât miss anything.
I moved the /var directory contents twice. Anything that was updated since the boot wonât be moved, so if youâre comfortable that the old /var2 directory is no longer needed, you can delete it and clear some space on your root directory.
The single-user reboot is there so you donât auto mount all of the partitions. You want to make sure all of the files in /var are on the new partition when you remount the drives so that the logs work. Also, when mass deleting the /var directory, make sure you are deleting the old one (â/var2â)and not the actual â/varâ directory. That would smart.
a 2gb /var partition might be a problem unless you carefully massage your log rotation.
But initially you said
âI have a system set up with Raid that seems to be storing all our info to the wrong partitionâ
can you be more explicit?. Your /home would likely just have a small asterisk directory so not a huge problem. Anything about LVM in your case is a red-herring, dont worry about it.
your / partition is indeed quite full, lets see the issue of
Sorry if this has been already answered, but this doesnât seem to be a FreePBX distro in terms of partitioning. Did you select a custom partition scheme when installing?
If my memory serves me correctly this was a raid install using the distro for sure but⌠I was using a supermicro server which would not properly recognize the raid. I worked with a sangoma tech from Australia maybe⌠who helped with using the custom partitioning scheme to make it work. There is certainly a chance I just didnât follow his directions very well.
It is not a problem per-se. You can fix this with some Linux commands, some reboots and ideally if you have a spare disk you can use. The idea behind this is to make two partitions, one for /boot and another for LVM, where two LVM partitions will reside, root and swap.
How comfortable are you with editing partitions, moving Filesystems and so on?
Sadly I wouldnât call it a strength. Iâm wondering if this might be a good time for some paid sangoma support. Not sure if they take on tasks like this. With this being an active server for a large customer Iâm wary. @cynjut left amazing instructions but one misstep and I would not really know how to rescue it.
Well in this case, not sure if remote support can help you because you need to unmount active partitions and for that your server must be booted from a live cd, and if you are going with the route of adding a spare disk for the temporary move, then you need to put that disk physically inside the server. But you can always try asking for their help.