Expand system disk capacity and physically migrate the data directory
As 丰盘ECM is used more heavily, the system disk may raise capacity alerts. On a virtual host with dynamic disk resizing, the operations administrator only needs to expand the server disk. If the disk cannot be expanded directly and you can only add a new disk, move the working directory of the 丰盘 system to the new, larger disk.
For how to mount a new disk on Linux, see How to Add a New Disk to an Existing Linux Server.
Assuming you created a new partition and mounted it at /mnt/newdisk/ as described in that article, migrate the working directory as follows:
bash
# Take the 丰盘 system offline temporarily. This does not affect system data.
sudo bash /opt/xpan/tools/xpc.sh stop
# Assume the new storage partition is mounted at /mnt/newdisk/
# Move the xpan working directory of the 丰盘 system to the new disk mount point.
# All data of the 丰盘 system moves to /mnt/newdisk/xpan/
# Do not add a trailing slash to the second mv argument as /mnt/newdisk/xpan/,
# or the path becomes /mnt/newdisk/xpan/xpan/
sudo mv /opt/xpan/ /mnt/newdisk/
# Create a link at the original working directory path that points to the new physical path.
# The second ln argument must not end with a slash, or you get this error:
# ln: target '/opt/xpan/' is not a directory: No such file or directory
sudo ln -sf /mnt/newdisk/xpan/ /opt/xpan
# Test by entering the tools directory. If cd fails, the directory link is wrong.
cd /opt/xpan/tools/
# Bring the whole system back online.
sudo bash xpc.sh up