Sun Microsystems, Inc.  Sun System Handbook - ISO 3.4 June 2011 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-1008167.1
Update Date:2009-09-14
Keywords:

Solution Type  Technical Instruction Sure

Solution  1008167.1 :   Identifying "InUse" files on the Sun StorEdge[TM] 5210, 5310 or 5310c  


Related Items
  • Sun Storage 5210 NAS Appliance
  •  
  • Sun Storage 5310 NAS Appliance
  •  
  • Sun Storage 5310 NAS Gateway System
  •  
Related Categories
  • GCS>Sun Microsystems>Storage - Disk>Network Attached Storage
  •  

PreviouslyPublishedAs
211221


Description
Attempts to move/rename/delete a file on a windows share
published from a Sun StorEdge[TM] 5210, 5310 or 5310c results in a
Windows "File in Use" error. Attempts to move or rename
the file on the Unix host results in "Operation not permitted" error.

Steps to Follow
The first step in identifying the session/user that has marked the file
as "InUse" is to make note of the file name.  In this example, the file
in question is 'open_file.rtf'
Next, telnet to the 5210, 5310 or 5310c, log in as admin and identify
all open sessions/files using the cat command as shown in the following
example.
This command will produce a listing that contains ALL of the current
sessions (Windows PC's) accessing shares from the 5210 or 5310 as well
as user and file information per session sorted by session.
This information can then be used to identify which Windows PC client
is actually accessing the file that has been marked as "InUse"
Once the PC client has been indentified, you must go to that PC  and check to
see if the file is indeed in use on that pc. Close the file, log the users out and/or reboot the pc to clear the "InUse" condition
EXAMPLE:
========
5310NAS > cat proc/cifs/sessions
workers=4 sessions=2 users=4 trees=2 ofiles=3 req pool=2
(0x43AD1F0:10): ADMINPC1 [192.168.2.101] 11 1 Tue May  9 11:46:07 2006
shares=1
[0xD121000:78:1]: /v1g
users=2
NAS5310.acme.COM\nobody uid=1 cruid=0 (ref=6) Tue May 9 11:46:07 2006
NAS5310.acme.COM\Administrator uid=2 cruid=0 (ref=2) Tue May  9 11:46:07 2006
files=0
(0x43AD000:7): DATAPC1 [192.168.2.102] 11 1 Fri Apr 28 07:15:16 2006
shares=1
[0xD04F000:60:1]: /v1g
users=2
NAS5310.acme.COM\Administrator uid=1 cruid=0 (ref=6) Fri Apr 28 07:15:16 2006
NAS5310.acme.COM\nobody uid=2 cruid=0 (ref=10) Tue May 9 11:13:02 2006
files=3
fid=1748 (ref=1) . (ndref=4)
fid=1749 (ref=1) . (ndref=4)
fid=1759 (ref=1) open_file.rtf (ndref=1)
Now that we have the listing of active sessions, lets begin to
understand what we are looking at.
The first line contains several useful bits of information:
workers=4 sessions=2 users=4 trees=2 ofiles=3 req pool=2
sessions=2   ---> There are 2 Windows clients connected to the NAS
users=4      ---> There are 4 PC users accessing files on the NAS
ofiles=3     ---> These 4 users have a total of 3 open files
Next we identify the session information for each individual PC accessing
the 5210 or 5310. In this example, we have 2 sessions (Windows PCs with
mounted shares)
ADMINPC1 [192.168.2.101]
DATAPC1  [192.168.2.102]
Reviewing the session information for ADMINPC1, we see that a single share
named /v1g is mounted to this pc, there are 2 users, 'nobody'
and 'administrator' accessing this share and that these 2 users have no files open on the share:
(0x43AD1F0:10): ADMINPC1 [192.168.2.101] 11 1 Tue May  9 11:46:07 2006
shares=1
[0xD121000:78:1]: /v1g
users=2
NAS5310.acme.COM\nobody uid=1 cruid=0 (ref=6) Tue May 9 11:46:07 2006
NAS5310.acme.COM\Administrator uid=2 cruid=0 (ref=2) Tue May  9 11:46:07 2006
files=0
Reviewing the session information for DATAPC1, we see that the same single share
named /v1g is mounted to this pc, there are 2 users, 'nobody'
and 'administrator' accessing this share and that these 2 users have 3 files open on the share. Looking at the 3 files that are open, we see the file
'open_file.rtf' which is the file being reported as "InUse":
(0x43AD000:7): DATAPC1 [192.168.2.102] 11 1 Fri Apr 28 07:15:16 2006
shares=1
[0xD04F000:60:1]: /v1g
users=2
NAS5310.acme.COM\Administrator uid=1 cruid=0 (ref=6) Fri Apr 28 07:15:16 2006
NAS5310.acme.COM\nobody uid=2 cruid=0 (ref=10) Tue May 9 11:13:02 2006
files=3
fid=1748 (ref=1) . (ndref=4)
fid=1749 (ref=1) . (ndref=4)
fid=1759 (ref=1) open_file.rtf (ndref=1)
Now that we have identified the PC client that actually has the file
'open_file.rtf' listed as open, you must go to the pc DATAPC1 and check to
see if the file is indeed in use on that pc. It is possible that either
the administrator or nobody user is holding the file locked.  Close the
file, log the users out and/or reboot the pc to clear the "InUse" condition.
Note: Due to CR 6464379 (Read buffer limit of 64K on proc entries) the
output of the 'cat proc/cifs/sessions' command may be truncated
and, in this case, not all entries are displayed.


Product
Sun StorageTek 5310 NAS Gateway System
Sun StorageTek 5310 NAS Appliance
Sun StorageTek 5210 NAS Appliance

5210, 5310, 5310c, NAS, filesystem, InUse, in use, sessions
Previously Published As
85573

Change History
Date: 2006-08-29
User Name: 71396
Action: Approved
Comment: Performed final review of article.

No changes required

Publishing.
Version: 6
Date: 2006-08-28
User Name: 71396
Action: Accept
Comment:
Version: 0
Date: 2006-08-28
User Name: 119902
Action: Approved
Comment: I have reviewed this doc for technical accuracy
Version: 0
Date: 2006-08-28
User Name: 119902
Action: Accept
Comment:
Version: 0
Date: 2006-08-27
User Name: 125854
Action: Approved
Comment: Using the 'cat proc/cifs/sessions' command may produce truncated
output due to CR 6464379 (Read buffer limit of 64K on proc entries).

I have modified the Infodoc to indicate this deficiency.
Version: 0
Date: 2006-08-27
User Name: 125854
Action: Update Started
Comment: Due to CR 6464379 the output of 'cat proc/cifs/sessions' is truncated and not all information is displayed - the Infodoc
should be modified to indicate this deficiency.
Version: 0
Date: 2006-06-21
User Name: 111868
Action: Update Canceled
Comment: *** Restored Published Content *** changing audience to Contract as per http://kmo.central/howto/content/voyager-contributor-standards.html
Version: 0
Date: 2006-06-21
User Name: 111868
Action: Update Started
Comment: KE Audit
Version: 0
Date: 2006-05-15
User Name: 111868
Action: Approved
Comment: checked keywords
checked TM - corrected
checked expiry date
checked audience
publishing
Version: 3
Date: 2006-05-12
User Name: 111868
Action: Accept
Comment:
Version: 0
Date: 2006-05-11
User Name: 109562
Action: Approved
Comment: Good example and explanation
Version: 0
Date: 2006-05-09
User Name: 109562
Action: Accept
Comment:
Version: 0
Date: 2006-05-09
User Name: 119902
Action: Approved
Comment: please review for technical accuracy
Version: 0
Date: 2006-05-09
User Name: 119902
Action: Created
Comment:
Version: 0
Product_uuid
8a8b6eeb-092e-11da-99bc-080020a9ed93|Sun StorageTek 5310 NAS Gateway System
63654ce5-f88d-11d8-ab63-080020a9ed93|Sun StorageTek 5310 NAS Appliance
d4e4fc3d-7c3f-11d8-9e3a-080020a9ed93|Sun StorageTek 5210 NAS Appliance

Attachments
This solution has no attachment
  Copyright © 2011 Sun Microsystems, Inc.  All rights reserved.
 Feedback