Page 1 of 1

zm 1.24.1 + NFS

Posted: Tue Sep 22, 2009 2:25 pm
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.

Posted: Tue Sep 22, 2009 5:38 pm
by sef1976
try it mount samba fs

Posted: Tue Sep 22, 2009 7:09 pm
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.

Posted: Wed Sep 23, 2009 4:15 am
by sef1976
on samba fs linux create soft-link

Posted: Wed Sep 23, 2009 7:12 am
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.

Maybe this

Posted: Wed Sep 23, 2009 11:51 am
by sezamnet
Command:
chmod 777 /path_katalog



Maybe this will help in gaining access

NFS should work!

Posted: Wed Sep 23, 2009 12:06 pm
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

Posted: Wed Sep 23, 2009 1:06 pm
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

Posted: Thu Sep 24, 2009 12:56 pm
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.

Posted: Thu Sep 24, 2009 6:14 pm
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

Posted: Fri Sep 25, 2009 8:02 am
by verus
any idea why i get:

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