Re: [CentOS] unable to umount
Am 22.02.2015 um 16:12 schrieb Stephen Harris li...@spuddy.org: nothing is using the partition $ lsof |grep srv empty Although the prompt is a $, I assume you're actually doing this as root? Yeah - its a bad behaviour doing tasks with a # prompt and then making a request in mailinglists with $ as prompt. Sorry for that. $ umount /srv umount: /srv: device is busy umount: /srv: device is busy what could keeping the device busy ... ? Is the device NFS exported? I've seem that prevent umounting even though nothing shows up in the process list. Its a local virtual device (raid controller exports it as one device). -- LF ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] unable to umount
Am 22.02.2015 um 15:51 schrieb J Martin Rushton martinrushto...@btinternet.com: on an EL5 XEN DOM0 system I have following volume $ df -h /srv FilesystemSize Used Avail Use% Mounted on /dev/sdc1 917G 858G 60G 94% /srv that partition was used by virtual machines but they were all halted. service xendomains stop $ xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 3000 2 r-695.1 $ service xend stop nothing is using the partition $ lsof |grep srv empty Run as root: # lsof +D /srv okay - i will try this scan before booting next time. $ fuser -m /srv empty Again, run this as root. Compare (test example from my system): $ fuser -m /boot 2/dev/null | wc 0 44 264 # fuser -m /boot 2/dev/null | wc 0 2231338 That's 180 processes I'd miss as an ordinary user. yep - all my commands were executed as root user (sorry for the $ vs. # confusion) $ fuser -km /srv empty but i can not umount /srv $ umount /srv umount: /srv: device is busy umount: /srv: device is busy I'm sure you've checked, but where is your PWD? I am also not sitting on the device :-) -- Thanks LF ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] unable to umount
On 02/25/2015 07:48 AM, Leon Fauster wrote: Am 22.02.2015 um 16:12 schrieb Stephen Harris li...@spuddy.org: Is the device NFS exported? I've seem that prevent umounting even though nothing shows up in the process list. Its a local virtual device (raid controller exports it as one device). I believe that Stephen was asking if you are exporting that filesystem via NFS to other systems. Check /etc/exports. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] unable to umount
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Resent after apparent failure to deliver. On 22/02/15 14:51, J Martin Rushton wrote: On 22/02/15 14:19, Leon Fauster wrote: Hi, on an EL5 XEN DOM0 system I have following volume $ df -h /srv FilesystemSize Used Avail Use% Mounted on /dev/sdc1 917G 858G 60G 94% /srv that partition was used by virtual machines but they were all halted. service xendomains stop $ xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 3000 2 r-695.1 $ service xend stop nothing is using the partition $ lsof |grep srv empty Run as root: # lsof +D /srv $ fuser -m /srv empty Again, run this as root. Compare (test example from my system): $ fuser -m /boot 2/dev/null | wc 0 44 264 # fuser -m /boot 2/dev/null | wc 0 2231338 That's 180 processes I'd miss as an ordinary user. $ fuser -km /srv empty but i can not umount /srv $ umount /srv umount: /srv: device is busy umount: /srv: device is busy I'm sure you've checked, but where is your PWD? what could keeping the device busy ... ? __ Thanks, LF ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJU67ZpAAoJEAF3yXsqtyBlTLQQAOMoky5ML5KW6MfXTlGotANY 5Z17guXZSh3tqqL6qA/FxZIP+W/LMMNMdWDcFi7cPj10xvH1wZuifKTnWWbqzS2q gwiwh0IvXC5tlw66RcogHo9lao/8+jc+z4zYM2iUeLEQmXd35oqgR8A/3B6UHekO pJFPoNQJl5CkHPb396+YjYgD0dLVYwOiqogs4XcVke7V7GssrsqXFplGMJerD5BB fswfWX7e/KewzwG0ehSanJX5LPEUm25HGG75w8kaMNB+WFCv9fp650yrkgVXYBIJ j5Ule7pggRqeUj7VzEBAvkaznI/qbD/ndZbjhVas/ppqt3dkTEYh0lLLvPci5ONv ka6t91DrdEOzXwbXFH+Fd6Fx0sZMB5gx0b1clsTopnuS2rPJ6otxooYyLRvWODx9 74gEKOv5ixtPP5mSJV6qFH8K/A5TCctP9F5nyvB4SBD4ZMjEBMJpyWJU+uCIWy1O 3QGVWR9vXvWmrrdryvI2fTO8I+mf1cjk8dOR/7ZJyxB4ZyzrB60Ff/0ikS9bKx96 Wzr4NgHF3N3fHgBiJlfE5l1X41KieM2Et87mLMiCfcSYc5dxMrfomYabJVNIStdG wEAy9szwGFr+iI6Ggul9PHyTXt3Jg48RKtTKPrCUWzWzak+nI92dVm00tFKt1a+3 GwFc5B0UVID8qI5nW8f2 =cWme -END PGP SIGNATURE- ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] unable to umount
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 22/02/15 14:19, Leon Fauster wrote: Hi, on an EL5 XEN DOM0 system I have following volume $ df -h /srv FilesystemSize Used Avail Use% Mounted on /dev/sdc1 917G 858G 60G 94% /srv that partition was used by virtual machines but they were all halted. service xendomains stop $ xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 3000 2 r-695.1 $ service xend stop nothing is using the partition $ lsof |grep srv empty Run as root: # lsof +D /srv $ fuser -m /srv empty Again, run this as root. Compare (test example from my system): $ fuser -m /boot 2/dev/null | wc 0 44 264 # fuser -m /boot 2/dev/null | wc 0 2231338 That's 180 processes I'd miss as an ordinary user. $ fuser -km /srv empty but i can not umount /srv $ umount /srv umount: /srv: device is busy umount: /srv: device is busy I'm sure you've checked, but where is your PWD? what could keeping the device busy ... ? __ Thanks, LF ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJU6eziAAoJEAF3yXsqtyBlp+gP/14sbPXHFgeDeGXw4ykn3P+V cveXJ298G6PRnAWB9+fQPYcl0exEb4uPaKWoeGMYWUXWskmzHc1Q906ACqKmACT8 8AL1sdnfbuiBlK0oJ7vF/0WS3OdY8YPpJRrDYdnembgRVFej1OsQRj8l0CO2waIK O2qdjH/q4X8vHAZQPyL86/Ji/A7el7pG/B+M1u5E7XeXaGW8W/wan7G0zMWUdJ6H /xXt3AtlsPj/Stw1hnjELlD1ovUPQ3hrHoQOQ9DBYSgaLCCpkljhcyEmAeirzw59 H4OFEAVb5+MEnI8AQ1SMIcysKLeGbGagjaauLwiHvOENuPoUSM8zo8Yk55KSTj0V 4vO4p219ZX+EPxiG8rKtPG6+uRARndB4dy/hbstyACpTUurEyAyhWfP0YAfGRH8b 2jsFUhYdjaE/l6OdOMM2Qpdl+Gxa0fO06Ou2QXxD+bp80WjoeCwbhEkn3qGBQu8N 2kRkEnukA4nhtN71cRnTUMqbQSGxi+L573Un38SlWVC4k4ZWwgeDkoic2PUmokYG p0Rxe4GNA3cG56JSK81M9J4Nzgj7EYJ/nIImYk/YW+VzdGq+JVghUIjXCLKE7eju myR5od92SspWGmGevpbeHG+entD2EnWLZ67b2Pu2qJlA78+pmbsPL3uCPemxc7UA 9w8pU8kL8l20x0LIIPpB =mFRu -END PGP SIGNATURE- ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] unable to umount
Hi, on an EL5 XEN DOM0 system I have following volume $ df -h /srv FilesystemSize Used Avail Use% Mounted on /dev/sdc1 917G 858G 60G 94% /srv that partition was used by virtual machines but they were all halted. service xendomains stop $ xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 3000 2 r-695.1 $ service xend stop nothing is using the partition $ lsof |grep srv empty $ fuser -m /srv empty $ fuser -km /srv empty but i can not umount /srv $ umount /srv umount: /srv: device is busy umount: /srv: device is busy what could keeping the device busy ... ? __ Thanks, LF ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] unable to umount
nothing is using the partition $ lsof |grep srv empty Although the prompt is a $, I assume you're actually doing this as root? $ umount /srv umount: /srv: device is busy umount: /srv: device is busy what could keeping the device busy ... ? Is the device NFS exported? I've seem that prevent umounting even though nothing shows up in the process list. -- rgds Stephen ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos