{"id":38,"date":"2008-07-14T17:06:16","date_gmt":"2008-07-14T13:06:16","guid":{"rendered":"http:\/\/www.unixpin.com\/wordpress\/?p=38"},"modified":"2008-07-14T17:06:16","modified_gmt":"2008-07-14T13:06:16","slug":"howto-umount-filesystem-in-solris","status":"publish","type":"post","link":"https:\/\/www.unixpin.com\/?p=38","title":{"rendered":"\u041a\u0430\u043a \u043e\u0442\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0432 solaris"},"content":{"rendered":"<p>\u0415\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u043d\u0435 \u043e\u0442\u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0441\u0440\u0430\u0437\u0443 \u0435\u0435 \u0441 \u0444\u043e\u0440\u0441\u043e\u043c \u0440\u0432\u0430\u0442\u044c,<br \/>\n\u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u0441 \u043d\u0435\u0439 \u043f\u043e \u0445\u043e\u0440\u043e\u0448\u0435\u043c\u0443 ;)<br \/>\n<!--more--><br \/>\n\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<br \/>\n\u0442\u043e\u043c \/dev\/vx\/dsk\/mydg\/testvol \u043f\u0440\u0438\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u0432 \/var\/apache\/www<\/p>\n<p><code># umount \/var\/apache\/www<br \/>\numount: \/var\/apache\/www busy<br \/>\n# fuser \/var\/apache\/www 2>\/dev\/null<br \/>\n    1021    1054     841<\/code><\/p>\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 fuser \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0432 STDERR \u0438\u043c\u0435\u043d\u0430 \u0444\u0430\u0439\u043b\u043e\u0432, \u0430 \u0432 STDOUT \u043d\u043e\u043c\u0435\u0440\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432,<br \/>\n\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442.<br \/>\n\u0418\u0442\u0430\u043a, \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u0440\u0436\u0430\u0442 \u043a\u0430\u0442\u0430\u043b\u043e\u0433. \u0415\u0441\u043b\u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439,<br \/>\n\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c<\/p>\n<p><code>fuser \/var\/apache\/www\/* 2>\/dev\/null<br \/>\nfuser \/var\/apache\/www\/*\/* 2>\/dev\/null<br \/>\n\u0438\u043b\u0438<br \/>\nfind \/var\/apache\/www  -exec fuser {} \\; 2>\/dev\/null<\/code><\/p>\n<p>\u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u043e\u043c\u0435\u0440\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0438 \u043f\u0440\u0438\u0431\u0438\u0432\u0430\u0435\u043c \u0438\u0445 (\u043d\u0443 \u043b\u0443\u0447\u0448\u0435,<br \/>\n\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c)<br \/>\n<code># ps -ef |grep 1021<br \/>\n  apache  1021  1020   0 10:57:01 ?           0:00 \/usr\/apache\/bin\/httpd<br \/>\n# \/etc\/init.d\/apache stop<\/code><\/p>\n<p>\u0421\u043d\u043e\u0432\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b\u0438 fuser-\u043e\u043c, \u0432\u0441\u0435 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435, \u043d\u0438\u043a\u0430\u043a\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u043d\u0430\u0448\u0443 \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043d\u0435 \u0434\u0435\u0440\u0436\u0430\u0442.<\/p>\n<p><code># umount \/var\/apache\/www<br \/>\numount: \/var\/apache\/www busy<\/code><\/p>\n<p>\u0422\u0430\u043a, \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c \u0442\u0435\u043c\u0443&#8230;<br \/>\n<code># dfshares<br \/>\nRESOURCE                                  SERVER ACCESS    TRANSPORT<br \/>\n      myserv:\/var\/apache\/www\/sun                  myserv  -         -<\/code><\/p>\n<p>\u041e\u043f\u0430, \u043f\u043e\u0445\u043e\u0434\u0443, nfs \u0434\u0435\u0440\u0436\u0438\u0442 \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u044f\u0434\u0440\u0430.<\/p>\n<p><code># unshare \/var\/apache\/www\/sun<br \/>\n# umount \/var\/apache\/www<br \/>\numount: \/var\/apache\/www busy<\/code><\/p>\n<p>\u0422\u0430\u043a, \u043d\u0443 \u043a\u0430\u043a\u0438\u0435 \u0435\u0449\u0435 \u0435\u0441\u0442\u044c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b&#8230;<br \/>\nmount | grep \/var\/apache\/www<br \/>\n<code># mount |grep \/var\/apache\/www<br \/>\n\/var\/apache\/www on \/dev\/vx\/dsk\/mydg\/testvol read\/write\/setuid\/devices\/intr\/largefiles\/logging\/xattr\/onerror=panic\/dev=1540028 on Mon Jul 14 10:54:29 2008<br \/>\n\/zone\/00\/root\/var\/apache\/www on \/var\/apache\/www read\/write\/setuid\/devices\/dev=1540028 on Mon Jul 14 10:55:58 2008<br \/>\n\/tmp\/6 on \/var\/apache\/www\/sun read\/write\/setuid\/devices\/dev=1540028 on Mon Jul 14 16:27:24 2008<\/code><\/p>\n<p>\u0422\u0430\u043a, \u043d\u0443 \u0442\u0443\u0442 \u0431\u0443\u0434\u0435\u043c \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0438 \u043e\u0442\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u043b\u0438\u0446\u0430<br \/>\n<code># zoneadm -z zone00 halt<br \/>\n# cat \/etc\/mnttab |grep \/tmp\/6<br \/>\n\/var\/apache\/www\/sun     \/tmp\/6  lofs    dev=1540028     1216038444<br \/>\n# umount \/tmp\/6<br \/>\n# umount \/var\/apache\/www<br \/>\n#<\/code><\/p>\n<p>\u041d\u0443 \u0432\u043e\u0442 \u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u0432\u044b\u0448\u0435\u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u043d\u0435 \u043f\u043e\u043c\u043e\u0433\u043b\u043e, \u043d\u0443 \u0442\u043e\u0433\u0434\u0430<br \/>\n<code># umount -f \/var\/apache\/www<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0415\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u043d\u0435 \u043e\u0442\u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0441\u0440\u0430\u0437\u0443 \u0435\u0435 \u0441 \u0444\u043e\u0440\u0441\u043e\u043c \u0440\u0432\u0430\u0442\u044c, \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u0441 \u043d\u0435\u0439 \u043f\u043e \u0445\u043e\u0440\u043e\u0448\u0435\u043c\u0443 ;)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[81,1015,79,80,1016],"class_list":["post-38","post","type-post","status-publish","format-standard","hentry","category-solaris","tag-fuser","tag-sun","tag-mount","tag-umount","tag-solaris"],"_links":{"self":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=38"}],"version-history":[{"count":0,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/38\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}