Bug 507549
Summary: | Bug in lockd prevents a locks being freed. | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Sachin Prabhu <sprabhu> |
Component: | kernel | Assignee: | Sachin Prabhu <sprabhu> |
Status: | CLOSED ERRATA | QA Contact: | Red Hat Kernel QE team <kernel-qe> |
Severity: | medium | Docs Contact: | |
Priority: | urgent | ||
Version: | 5.3 | CC: | dhoward, dzickus, jlayton, jpirko, jplans, rwheeler, steved, yanwang |
Target Milestone: | rc | Keywords: | ZStream |
Target Release: | --- | Flags: | sprabhu:
needinfo+
|
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 505591 | Environment: | |
Last Closed: | 2010-03-30 06:58:18 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 505591 | ||
Bug Blocks: | 517967, 526950 |
Description
Sachin Prabhu
2009-06-23 09:40:46 UTC
in kernel-2.6.18-165.el5 You can download this test kernel from http://people.redhat.com/dzickus/el5 Please do NOT transition this bugzilla state to VERIFIED until our QE team has sent specific instructions indicating when to do so. However feel free to provide a comment indicating that this fix has been verified. reproduce on 5.4: 1.setup nfs server which kernel is 5.4 (2.6.18-164.el5) # df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 63547176 2837968 57429132 5% / /dev/sda1 101086 12594 83273 14% /boot tmpfs 2022036 0 2022036 0% /dev/shm # mount /dev/sda1 /test1 # df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 63547176 2837968 57429132 5% / /dev/sda1 101086 12594 83273 14% /boot tmpfs 2022036 0 2022036 0% /dev/shm /dev/sda1 101086 12594 83273 14% /test1 # grep test1 /etc/exports /test1 *(no_root_squash,rw,no_subtree_check) # /etc/init.d/nfs restart 2.mount the share server:/test1 on a client(2.6.18-164.el5) and grab a lock on it. client# mount server:/test1 /mnt client# cd /mnt/ client# touch a use the below test program to grabs a lock on a file https://bugzilla.redhat.com/attachment.cgi?id=363937 client# ./a.out a 1 Opening file a -- Done Locking file a -- Done 3.Run the command on the nfs server: 1)service nfslock restart This is used to reset the time for the garbage collector which clears killed nlm_host 2)Run the command again: service nfslock restart This is used to mark current nlm_host->h_killed to 1. 3)unexport /test1, exportfs -u '*:/test1' This is used to simulate the RHCS where the nfs service is stopped. 4) Run the command service nfslock restart to free all locks held on /test1 5) Try unmounting /test1 # umount /test1 umount: /test1: device is busy umount: /test1: device is busy set up 5.5 new kernel 2.6.18-192.el5 on client and follow the above steps, and umount successfully. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2010-0178.html |