zm 1.24.1 + NFS

Forum for questions and support relating to the 1.24.x releases only.
Locked
verus
Posts: 15
Joined: Tue Sep 15, 2009 6:49 am

zm 1.24.1 + NFS

Post by verus »

Hello,,

I have a server with ZM and another server with a big disk in that i use for storage.
I connected via NFS and pointed the events to the NFS directory.
when i stop the ZM server and start it, i can see that the directory is filled with the zm events, the user rights are also okay.

When i want to see an event, it takes forever...
event window where i should see the video is empty, and showing transferring data from x.x.x.x .... and it stays like that.

How does that come for a small event ?
any ideas how i can fix this ?

Or is this not meant to work with nfs and should everything stay on the same server ?

grtz, Ph.
sef1976
Posts: 46
Joined: Sun Aug 16, 2009 5:24 am

Post by sef1976 »

try it mount samba fs
verus
Posts: 15
Joined: Tue Sep 15, 2009 6:49 am

Post by verus »

i did but you can't use symlinks with samba and ZM makes symlinks in the events directory.
Or am i wrong ?
grtz, Ph.
sef1976
Posts: 46
Joined: Sun Aug 16, 2009 5:24 am

Post by sef1976 »

on samba fs linux create soft-link
verus
Posts: 15
Joined: Tue Sep 15, 2009 6:49 am

Post by verus »

hello,

that's what i tried with samba but i got a permission denied when creating softlinks.
Do you have a link to more information about it ?
thanks, Ph.
sezamnet
Posts: 20
Joined: Mon Sep 21, 2009 11:20 am
Location: Poland

Maybe this

Post by sezamnet »

Command:
chmod 777 /path_katalog



Maybe this will help in gaining access
notabenem
Posts: 3
Joined: Fri Aug 21, 2009 8:09 am

NFS should work!

Post by notabenem »

Hi,

I think you have exactly the same problem I am experiencing. So far, no solution. I have already tried SAMBA, but it did not work too well either.
http://www.zoneminder.com/forums/viewtopic.php?t=14292
sef1976
Posts: 46
Joined: Sun Aug 16, 2009 5:24 am

Post by sef1976 »

Code: Select all

; /etc/samba/smb.conf

[global]
   printing = cups
   printcap name = cups
   load printers = no
   guest account = nobody
   invalid users = root

   security = user
   workgroup = FS
   netbios name = FS_1
   server string = %h server (Samba %v)

   syslog only = no
   syslog = 0;

   socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096

   encrypt passwords = true
   wins support = no
   domain master = no
   local master = no
   preferred master = no
   name resolve order = lmhosts host wins bcast
   dns proxy = no
   preserve case = yes
   short preserve case = yes
   unix password sync = false
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
   max log size = 100
 unix charset = UTF8
 display charset = UTF8
 dos charset = 866

[homes]
   comment = Home Directories
   browseable = no
   read only = yes
   create mask = 0700
   directory mask = 0700

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   guest ok = no
   read only = yes
   write list = knoppix

[printers]
   printer admin = knoppix
   comment = All Printers
   browseable = no
   path = /tmp
   printable = yes
   public = no
   writable = no
   create mode = 0700

[S]
   comment = Samba share
   writable = no
   locking = no
   path = /opt/tor/res
   browseable = yes
   public = yes

Code: Select all

#/etc/fstab
//10.10.10.10/S /media/tor cifs rw,user,exec,utf8,user=user,passwd=1,codepage=utf8 0 0
verus
Posts: 15
Joined: Tue Sep 15, 2009 6:49 am

Post by verus »

hello,

that's what i tried, did somebody else tried this anyway (with success)?
Yes, i can make a samba share and i can make a soft link in
/usr/share/zoneminder/events to that share.

lrwxrwxrwx 1 root root 19 2009-09-24 14:39 events -> /zm_storage/events/

where zm_storage is my storage on the other (storaga)server.
But, when i start zoneminder, it can't make a symlink in zm_storage (because that is on the other server).
When you try to make a symlink on a samba share you get (for test):

ln: creating symbolic link `./test': Operation not supported

and zoneminder makes a link in the events directory to the events.
ideas ?
grtz, Ph.
sef1976
Posts: 46
Joined: Sun Aug 16, 2009 5:24 am

Post by sef1976 »

Code: Select all

//10.10.10.252/pub on /media/pub type cifs (rw,mand,nosuid,nodev)

[root@sef cdrom]# pwd
/media/pub/Update/sys/cdrom

[root@sef cdrom]# ln -s ins.sh test
[root@sef cdrom]# ls -l

-rw-rw-rw- 1 root root 204  22 18:41 ins.sh
lrwxrwxrwx 1 root root   6  24 21:12 test -> ins.sh
verus
Posts: 15
Joined: Tue Sep 15, 2009 6:49 am

Post by verus »

any idea why i get:

ln: creating symbolic link `./test': Operation not supported
Locked