skip to main content
Appendix B - Using Remote Storage
   
Appendix B - Using Remote Storage
 
This chapter will cover the following topics:
Subject
Page
Subsections
 
Introduction
 
op5 LogServer and it’s underlying operating system op5 Appliance System gives you a variety of options to attach external storage.
This chapter will cover two of the possibilities for remote storage: Windows fileserver and NFS.
Using Remote Storage
 
When you use remote storage, you have to create a folder and use it as a mount point by defining it in the file /etc/fstab:
 
LABEL=/ / ext3 data=writeback,noatime 1 1
LABEL=/boot /boot ext3 data=writeback,noatime 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /tmp tmpfs nodev,nosuid,noatime 0 0
LABEL=SWAP-sda5 swap swap defaults 0 0
 
Normally, everthing in /etc/fstab is mounted on system startup. If you want to mount everything after editing, you can issue the command:
mount -a
and if you want to check what is currently mounted you can issue the command:
df
and mount using the commands mount and umount.
 
B.1 Mounting a Windows Fileserver
 
Add a line to /etc/fstab where the first column, the device, is the Windows path for the share you want to mount, using forward slashes instead of backslashes.
The second column should be a path that exists where you want to mount it. If you would like to mount it on /var/remotearchive you can create the folder by issuing the command:
mkdir -p /var/remotearchive
 
The third column should say cifs and the fourth, fifth and sixth should be defaults, 0 and 0 respectively.
Example 1 //192.168.0.3/logs /opt/logserver/remote cifs defaults 0 0
B.2 Mounting an NFS share
 
If you have a UNIX environment, it is quite common to have NFS shares published from the file server using /etc/exports and then mounted on one or several client systems.
This chapter only describes NFS since it is the most common file server system, but if you are using a more advanced file server system – such as AFS or Coda – you can mount these just as on any other Linux system.
Add a line to /etc/fstab where the first column is the NFS server followed by a : and the path on the file server.
Let the second column be an existing path where you want the NFS share to be mounted – for this example /var/remotearchive
Let the third column be nodev,nosuid and the forth and fifth columns both be 0.
Example 2 //192.168.0.3/exports/logs /opt/logserver/remote nfs nodev,nosuid 0 0