Saya lagi develop samba 3.4.8 dengan roaming profile untuk client windows XP dan windows seven. Semua client windows bisa join dan logon domain.
Masalah timbul di fitur offline files windows seven. Dengan fitur ini user bisa mengakses file-file di folder shared network (P:\) meski dia bekerja offline atau tidak konek ke server roaming. Sayangnya fitur ini tidak bisa berjalan sebagaimana yg diinginkan. Setelah googling beberapa kali sampai instal ulang windows seven tidak menemukan solusi akhirnya ketemu baris log di salah satu pc yang konek ke samba: [2011/07/04 16:40:00, 3] smbd/oplock_linux.c:120(linux_set_kernel_oplock) linux_set_kernel_oplock: Refused oplock on file offline/New Text Document.txt, fd = 31, file_id = 19:1c1ee017:0. (Invalid argument) Setelah baca-baca manual smb.conf, nampaknya samba tidak mengakftifkan secara default parameter "fake oplocks". Keterangan di manual smb.conf: fake oplocks (S) Oplocks are the way that SMB clients get permission from a server to locally cache file operations. If a server grants an oplock (opportunistic lock) then the client is free to assume that it is the only one accessing the file and it will aggressively cache file data. With some oplock types the client may even cache file open/close operations. This can give enormous performance benefits. When you set fake oplocks = yes, smbd(8) will always grant oplock requests no matter how many clients are using the file. It is generally much better to use the real oplocks support rather than this parameter. If you enable this option on all read-only shares or shares that you know will only be accessed from one client at a time such as physically read-only media like CDROMs, you will see a big performance improvement on many operations. If you enable this option on shares where multiple clients may be accessing the files read-write at the same time you can get data corruption. Use this option carefully! Default: fake oplocks = no Setelah menambahkan baris "fake oplocks = Yes" di smb.conf akhirnya fitur offline files berjalan mulus di windows seven. Oya, baris log yang berisi "linux_set_kernel_oplock: Refused oplock" masih muncul namun tidak mempengaruhi fitur offline files. Untuk test, saya reboot komputer windows seven dan putuskan koneksi data. Buka offline file P:/offline/New Text Document.txt no problem :). -- Arief Yudhawarman http://awarmanf.wordpress.com -- FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab Unsubscribe: kirim email ke tanya-jawab-unsubscr...@linux.or.id Arsip dan info milis selengkapnya di http://linux.or.id/milis