We are running ONTAP 6.1.1R2.
I thought I read somewhere that there are no file locks in a snapshot.
The snapshot is read only, but no files are locked, so you can open
any file if you have the necessary permissions.
However, I was running a virus scan (Norton) on a snapshot and it
failed to open a few files, according to the log. I'm pretty sure it
was not a permissions problem. We use unix passwd authentication for CIFS
and therefore all files have unix permissions. The CIFS user was
root (uid 0) and Norton successfully scanned about 180,000 files, many
of which are readable only by owner (and superuser). Norton failed to
open 16 files. Here is an error from the log:
Scan could not open file F:\weekly.0\a\af\afc3f\private\Disparity.doc
[00000012]
(We made a read only share out of the .snapshot directory and attached it to
drive F)
So that got me wondering about file locks. If a file is locked when
a snapshot is created, is the lock included in the snapshot? And if
so, does it lock the file in the snapshot?
Or else, if a file in the active filesystem is currently locked, does that
affect access to the corresponding file in a snapshot?
Later on, using the same share as above, I was able to copy the file to
the local desktop, so W2000 was able to open it.
Maybe it's a Norton thing. I'll try and look up that error code
[00000012]. Is this a CIFS error perhaps?
By the way, Norton failed to open some other files with error code [00000003]
but the ones I checked were all symlinks that the filer could not
follow, so that makes perfect sense.
Steve Losen scl(a)virginia.edu phone: 434-924-0640
University of Virginia ITC Unix Support