From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6668C433E0 for ; Thu, 9 Jul 2020 20:23:43 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 46CB920720 for ; Thu, 9 Jul 2020 20:23:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 46CB920720 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1jtd4L-0007Lj-5X; Thu, 09 Jul 2020 16:22:57 -0400 Received: from omr1.cc.ipv6.vt.edu ([2607:b400:92:8300:0:c6:2117:b0e] helo=omr1.cc.vt.edu) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1jtd4J-0007Ld-Jg for kernelnewbies@kernelnewbies.org; Thu, 09 Jul 2020 16:22:55 -0400 Received: from mr2.cc.vt.edu (mr2.cc.ipv6.vt.edu [IPv6:2607:b400:92:8400:0:90:e077:bf22]) by omr1.cc.vt.edu (8.14.4/8.14.4) with ESMTP id 069KMrfp026572 for ; Thu, 9 Jul 2020 16:22:54 -0400 Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by mr2.cc.vt.edu (8.14.7/8.14.7) with ESMTP id 069KMmEi003416 for ; Thu, 9 Jul 2020 16:22:53 -0400 Received: by mail-qt1-f199.google.com with SMTP id h10so2523921qtc.4 for ; Thu, 09 Jul 2020 13:22:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=U4LeU1fvQNA9aRRiNjvjKG4GYvR2IIbsgC8KV9Wv2cA=; b=FAhhXXFQCeJ9H0CNWv9UFkZcyBRmggwQbvDGQs9yW4o1W2JIdzGoDq+y/8UsYVnPob MqGWjqBBicERi5jVe4Z+5Omgnr5RJcoTdoIwWTXZ3nNKB7+b1hS421c+NXoA+944F8IH T4cmGdVGLjxgq8Tm2LK1fWiwPTpgDSy2vYbdNsY9FIYDx7ME0Y3vbQxQRCBDgjfaGAwN 6Ap8m/BN/oNA5VC4E4wID4JngjBz7cxqHD7/60JVh6NqSXNB1n7kXAu9n7Li2Vk8xH9C JiTbLkCGAeQ9A+k9UcnVTjdDKaSL4RorWzcUb8V+kbCNFc61eUjEVD6b2YM26NGCcz8G B2cA== X-Gm-Message-State: AOAM531SRsCFwjrfLb+upe5Cdp3x8Vj33Rwdmtd88sd1IYm5kETZr4LT zl2ag0m0TwAalZIE2HcO5lnWQlnM91OZFtpkcrRwXbtbzLlVDsm7f/mh53v849TkCCKNk9JsG2T y65EvkSRrcbed/PHgIbcqD+D3L7bfc+hiRAv/WAU= X-Received: by 2002:a0c:bd15:: with SMTP id m21mr65874290qvg.61.1594326168406; Thu, 09 Jul 2020 13:22:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxx2i5CwrWBV0Wm3/INJIH0fWo+KVCwAN7LzliCbuLxThbjTDlRbQMy5jZQ+fT6DwCLrWZag== X-Received: by 2002:a0c:bd15:: with SMTP id m21mr65874272qvg.61.1594326168058; Thu, 09 Jul 2020 13:22:48 -0700 (PDT) Received: from turing-police ([2601:5c0:c001:c9e1::359]) by smtp.gmail.com with ESMTPSA id b10sm4740213qkh.124.2020.07.09.13.22.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 13:22:46 -0700 (PDT) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Tomek The Messenger Subject: Re: how to debug problem with "failing unmounting" In-Reply-To: References: Mime-Version: 1.0 Date: Thu, 09 Jul 2020 16:22:45 -0400 Message-ID: <102548.1594326165@turing-police> Cc: kernelnewbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============3704747022490069216==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============3704747022490069216== Content-Type: multipart/signed; boundary="==_Exmh_1594326165_30482P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1594326165_30482P Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Thu, 09 Jul 2020 14:22:00 +0200, Tomek The Messenger said: > On the soc on which I work there is issue with unmouting some > partitions/directories during /sbin/reboot, here is some example: > > =5B OK =5D Stopped target Local File System. > Unmouting Temporary Directory (/tmp)... > Unmouting /run/user/0... > ... > =5B FAILED =5D Failed unmouting Temporary Directory (/tmp). > =5B FAILED =5D Failed unmouting /run/user/0. > .... > > Unfortunately like it is typical in kernel information about why > unmouting failed doesn't appear.=20 Those aren't kernel messages, they're messages issued by your init system= . (Based on OK/FAILED, you're probably using a sysvinit rather than systemd= , and the messages are coming from scripts in /etc/rc.d/rc6/ which is the 'rebo= ot' runlevel - rc6 has symlinks to the actual script. The main shutdown/rebo= ot script basically does a 'for =24script in /etc/rc.d/rc6; do =24script sto= p; done'. The most common reason for a filesystem to fail to unmount is that a proc= ess still has a file open on the file system. And for this, lsof is your friend. Stick an '/bin/lsof /tmp' in the scr= ipt at the appropriate place to find out what's still got /tmp busy. (Depending on the system, it may not be worth looking into - often /tmp and /run are tmpfs systems that are going to evaporate *anyhow*, so there= 's no actual danger of a filesystem or data getting corrupted due to a hard dismount while the file system is active) --==_Exmh_1594326165_30482P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBXwd8lQdmEQWDXROgAQI3+g//cWObrJkveaTxIstRNMWEUpIrKdH3cafK rs2FnKPlvmo2UwyXHypUJgTSy66OMMPZ6hthm0O6QstnEKbB9XFtIAksPix10wey Zlg7aJzUUHxVFmf+gSKKvTDUFv0n5JvGsWEOf47e9o9tvdJZjwu00q0+r0Kkg4Nd ez+/wLc0O1vfCuaE7314PaHyRq9Ima2nsZejTQj/wIO+SRlxzpzvRWFda15WxAHf iDj+GfxK1USRndhnlosVsHoLXgbUtm2IluFQtE2rwjMpa15PRTZTURZpFVNJIzew RvFDfcvNG3i/tdsD8wKie6pso8l0AdkeUCcLMqs1DbJoAxh7Fr/+yO+a6bf+0YXj ZWomKdY4/TOe5E1GNJ356GAGi9ibQtAE2qYN6M7rvlPirWAPpZ5Y/3vUW9XVmY5m GDhh2Tzb1skW1u7CWvzW7V76830/JXzsGpoUdpkvAh17sZAE6ZO7dMqY2/x402I2 V057ku/cFe5u/WkAhPaIJpBmhgkAWzTl7OLdm0q6ryM6YLlNvd2SEybwZMp181c7 UqA4qb2fPXzOjXXRSGwFoS5sV7kD7PZU5r8duGtiwVIvI6hiSsdcInrm0aoTTkN1 kMYahCddJa06sj854Y5q7Jd+sHREEveRdNSD2/VLs1icGJTdydQA87/2XlrfsKaO 0Dlr7tIU5Wo= =7mtT -----END PGP SIGNATURE----- --==_Exmh_1594326165_30482P-- --===============3704747022490069216== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============3704747022490069216==--