LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-22-2014, 06:57 AM   #1
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
nfs share can't be unmounted, "device is busy"


I'm running oVirt on CentOS-6.5
Problem is the nfs shares used by oVirt can't be unmounted, which leads to the server hanging at reboot.
The server hangs at unmounting with message "umount.nfs: /rhev/data-center/mnt/vnode1.myserver.se:_mnt_exports_data: device is busy".
Same when I try to unmount manually even when no vm's are running.
Code:
lsof /rhev/data-center/mnt/vnode1.myserver.se:_mnt_exports_data
COMMAND    PID    USER   FD   TYPE DEVICE    SIZE/OFF       NODE NAME
sanlock  25044 sanlock    9u   REG   0,28     1048576  536871044 /rhev/data-center/mnt/vnode1.myserver.se:_mnt_exports_data/c63c95f1-3985-41f3-864e-dd6f5dd90c85/dom_md/ids (vnode1.myserver.se:/mnt/exports/data)
sanlock  25044 sanlock   11u   REG   0,28     1048576 1074695842 /rhev/data-center/mnt/vnode1.myserver.se:_mnt_exports_data/c63c95f1-3985-41f3-864e-dd6f5dd90c85/ha_agent/hosted-engine.lockspace (vnode1.myserver.se:/mnt/exports/data)
qemu-kvm 28597    qemu   14u   REG   0,28 26843545600  536871048 /rhev/data-center/mnt/vnode1.myserver.se:_mnt_exports_data/c63c95f1-3985-41f3-864e-dd6f5dd90c85/images/ae55adb1-2f74-4825-a317-3fb193a0f4ae/f8fad855-cc47-4b42-b1ff-bc559eff9859 (vnode1.myserver.se:/mnt/exports/data)
Trying to stop sanlock with "service sanlock stop" fails, no explanation.
There is nothing useful in /var/log/messages or /var/log/sanlock.log
How can I get the server to reboot properly?
 
Old 10-22-2014, 10:12 AM   #2
vwtech
Member
 
Registered: Dec 2007
Distribution: Fedora, Oracle Linux & Centos
Posts: 197

Rep: Reputation: 26
What happens if you kill the PID's that have those files open, is that an option that you can attempt?
 
Old 10-23-2014, 02:13 AM   #3
dubnik
Member
 
Registered: Dec 2006
Location: Slovakia
Distribution: Red Hat
Posts: 48

Rep: Reputation: 1
Hi

try lazy umnount

#umount -l
 
Old 10-23-2014, 12:15 PM   #4
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Original Poster
Rep: Reputation: 127Reputation: 127
Thanks for your suggestions!
However, both tried no success.
Killing the pid leaves the shares still unmountable, don't remember exactly but "subsys" keeps them locked.
After the kill they are also completely inaccessible.
I tried deleting /var/lock/subsys/sanlock but still no success.

umount -l & umount -f just gives "device is busy", waited about half an hour before rebooting but still hangs.
 
Old 11-06-2014, 03:41 AM   #5
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Try removing the nfs entry from /etc/mtab

also use the below command
Code:
# lsof +aL1 /mount/point
then
Code:
# kill -9 PID
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Device is busy" message when trying to resize filesystem on encrypted LVM rokyo Linux - Newbie 1 07-11-2014 02:35 AM
FC multipath says "device busy " when connecting again. SLES 11 - netapp - emulex permalac Linux - Server 1 01-13-2012 04:45 PM
Debian 5 mdadm "device or resource busy" raid edwardzc Debian 1 12-27-2010 04:52 AM
"locate" on unmounted device titopoquito Linux - Software 6 12-13-2006 05:07 PM
NFS issue, "device or resource busy" katesclau Linux - Networking 0 04-03-2006 10:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration