• repository.home with windows share

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #40996  by vincentk222
 
I have OpenKM 6.2.4 installed on Linux
Is it possible to change the repository.home in OpenKM.cfg to a windows share

Actually I have change change repository.home= /home/okm/mylocalstorage
mylocalstorage is mounted to a windows share in the fstab

this works but if the linux server reboot befor the windows server then the mount do not work and problem appear.
 #41001  by jllort
 
Should check in tomcat script if the unit is monted, if not, try to mountm check again and if failed the stop starting tomcat.
Code: Select all
# Mount disk
if mount | grep "$BACKUP_DIR type" > /dev/null; then
  echo "$BACKUP_DIR already mounted";
else
  echo "Mounting $BACKUP_DIR ...";
  mount -t cifs //REMOTE_SERVER/REMOTE_DIR $BACKUP_DIR -o username=REMOTE_USER,password=REMOTE_PASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777
  
  if mount | grep "$BACKUP_DIR type" > /dev/null; then
    echo "$BACKUP_DIR mounted";
  else
    echo "Error mounting $BACKUP_DIR.";
    exit -1;
  fi
fi
However we do not suggest this kind of configuration, the problem is not only the linux restarting, the network resource can be unlinked after the initial mounting etc... and while you get openkm running the respository is not available. Networking mapping is not the sames as SAN etc... we encourage you to mount a disk on your linux I do not understand why sharing from windows ( I do not understanding the advantage on this scenario or why you need it ).
 #41015  by vincentk222
 
It's because in our small organisation we have a data server (windows 2008 r2) where we store all documents/data, etc.... And this server have backup too.
We don't want to install OpenKm on it. So the idea was to install only Mysql ad have a share folder for repository and put OpenKM on an external Linux device.
The server will restart every 15 days during the night and we will not touch the linux device. During the night there will be no use and after the W2008 reboot the mount still work (tested).
But if there is a power ruptur then there is a chance that the linux will goes faster that the windows. So your script is a good solution.
Anotherone is to keep data and backup them on the W2008 server.
 #41025  by jllort
 
OK understood. However my suggestion for a small company is on future buy a more powerful server and virtualize it. For middle - small companies usually is good solution and you can take advantage of doing periodically snapshots.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.