Re: [Ocfs2-users] ERROR: status = -17

2013-04-23 Thread Joel Becker
On Tue, Apr 16, 2013 at 11:08:34AM -0600, Jerry Smith wrote:
> Good Morning all,
> 
> 
> Have started seeing this over the last few days on a couple of hosts.  
> Does anyone have any familiarity with this, and or how I can debug what 
> mount/filesystem/inode is having the issues?
> 
> Apr 16 02:49:36 host1 kernel: 
> (dtocatalogbr,5864,3):ocfs2_prepare_dir_for_insert:4391 ERROR: status = -17
> Apr 16 02:49:36 host1 kernel: 
> (dtocatalogbr,5864,3):__ocfs2_prepare_orphan_dir:1932 ERROR: status = -17
> Apr 16 02:49:36 host1 kernel: 
> (dtocatalogbr,5864,3):ocfs2_prepare_orphan_dir:1973 ERROR: status = -17
> Apr 16 02:49:36 host1 kernel: (dtocatalogbr,5864,3):ocfs2_unlink:887 
> ERROR: status = -17

Somehow you are trying to unlink a file whose inode is already in the
orphan dir.  You can use debugfs.ocfs2 to determine what inodes are in
the orphan dir, but it isn't easy to see which one triggered the error.
You might try checking multiple times over the course of an hour.  If
the same inode number remains while all of the others clear out, that
might be your culprit.

Joel

> 
> 
> #uname -a
> Linux host1 2.6.32-300.27.1.el6uek.x86_64 #1 SMP Tue Jun 19 14:21:30 EDT 
> 2012 x86_64 x86_64 x86_64 GNU/Linux
> 
> #cat /etc/redhat-release
> Red Hat Enterprise Linux Server release 6.2 (Santiago)
> 
> #rpm -qa | grep ocfs
> ocfs2console-1.6.4-1.el6.x86_64
> ocfs2-tools-devel-1.6.4-1.el6.x86_64
> ocfs2-tools-1.6.4-1.el6.x86_64
> 
> 
> I have a few boxes a bit further along at OEL 6.3 and newer ocfs2 bits, 
> where I am not seeing these errors arise.
> 
> ocfs2 versions of:
> 
> $ rpm -qa |grep 
> ocfs  
>
> 
> ocfs2-tools-1.8.0-10.el6.x86_64
> ocfs2-tools-devel-1.8.0-10.el6.x86_64
> 
> Are there known issues/fixes between these kernels/ocfs2-tools that fix 
> the ERROR -17 I am seeing?
> 
> Thanks,
> 
> --Jerry
> 
> 
> ___
> Ocfs2-users mailing list
> Ocfs2-users@oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/ocfs2-users

-- 

You can use a screwdriver to screw in screws or to clean your ears,
however, the latter needs real skill, determination and a lack of fear
of injuring yourself.  It is much the same with JavaScript.
- Chris Heilmann

http://www.jlbec.org/
jl...@evilplan.org

___
Ocfs2-users mailing list
Ocfs2-users@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-users


Re: [Ocfs2-users] How can I umount the OCFS2 file system?

2013-04-23 Thread Joel Becker
On Tue, Apr 16, 2013 at 11:01:19AM +, Guozhonghua wrote:
> root@Server20:~# uname -a
> Linux Server20 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 
> x86_64 x86_64 x86_64 GNU/Linux
> root@Server20:~#
> 
> root@Server20:~# mount | grep ocfs2
> ocfs2_dlmfs on /dlm type ocfs2_dlmfs (rw)
> /dev/sdc on /vms/vepa-testlun1 type ocfs2 (rw,_netdev,heartbeat=local)
> /dev/sdb on /vms/vepa-testlun0 type ocfs2 (rw,_netdev,heartbeat=local)
> /dev/sdh on /vms/share type ocfs2 (rw,_netdev,heartbeat=local)
> root@Server20:~# umount /vms/vepa-testlun1
> umount: /vms/vepa-testlun1: device is busy.
> (In some cases useful info about processes that use
>  the device is found by lsof(8) or fuser(1))
> root@Server20:~# fuser -m /vms/vepa-testlun1
> root@Server20:~# lsof +d /vms/vepa-testlun1
> root@Server20:~# lsof /vms/vepa-testlun1
> root@Server20:~# umount /vms/vepa-testlun1
> umount: /vms/vepa-testlun1: device is busy.
> (In some cases useful info about processes that use
>  the device is found by lsof(8) or fuser(1))
> root@Server20:~# umount /vms/vepa-testlun1 ;echo $?
> umount: /vms/vepa-testlun1: device is busy.
> (In some cases useful info about processes that use
>  the device is found by lsof(8) or fuser(1))
> 1

Are there any NFS or CIFS exports?

Joel

> 
> 
> -
> 
> 
> 
> ???
> This e-mail and its attachments contain confidential information from H3C, 
> which is
> intended only for the person or entity whose address is listed above. Any use 
> of the
> information contained herein in any way (including, but not limited to, total 
> or partial
> disclosure, reproduction, or dissemination) by persons other than the intended
> recipient(s) is prohibited. If you receive this e-mail in error, please 
> notify the sender
> by phone or email immediately and delete it!

> ___
> Ocfs2-users mailing list
> Ocfs2-users@oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/ocfs2-users


-- 

"Nearly all men can stand adversity, but if you really want to
 test a man's character, give him power."
- Abraham Lincoln

http://www.jlbec.org/
jl...@evilplan.org

___
Ocfs2-users mailing list
Ocfs2-users@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-users