From owner-freebsd-current@freebsd.org Fri Nov 13 11:26:53 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A1E912D7F17 for ; Fri, 13 Nov 2020 11:26:53 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CXblc41s3z3ngP for ; Fri, 13 Nov 2020 11:26:52 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: by mail-ed1-x535.google.com with SMTP id v4so10310125edi.0 for ; Fri, 13 Nov 2020 03:26:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=UN5mANSg5CKVewa9oKxVn3TCz/5zXp2JjIB/py+ZRIA=; b=jumrjgMYPON+nT4hzawScHEKMzVBNWkh9V4KM9s/QEa0XBHQKUoidxmJTDavPSZ+uD OSXAn/CX2KYS/umpH9/Md2tyM174o9d+kdjWfcG04YbNUUT69K2IehvF78hn8IOfXh40 3uxH5Ol1cE32xmY4bSN3nFbUIuoh+6BSjDBO7d6hFt/BI2PhyjTegAp6c83KRjFPNDDt Lf7UGGD91K8hT5SgmFFo8uRyfJq/HJfiAi0onitVuDEk//Y16aCBTSdPvma2PVXUHfse Xwisw96Y5ZXf3plY+2d4C0XiQj95P5MO1Wk086ArOJLvbhbYRKDigns6g7jF6pjHyVHR OS9Q== X-Gm-Message-State: AOAM533/fKYYTjHM4J4D6b3+2fw71wKyZpd2Kt3NTk0rNtE7ymbk2d4O o+QJYCQa9xkBw4ZFdfxZqHKnOibY2o0= X-Google-Smtp-Source: ABdhPJzDQfxluvXrCSS920TLDCX/frVGikBqRnmEbMo7XLXBsX4TT4xh+7lktBn9ZSfNagjut9a4Ww== X-Received: by 2002:a50:9993:: with SMTP id m19mr1860060edb.99.1605266810868; Fri, 13 Nov 2020 03:26:50 -0800 (PST) Received: from MacBook-Pro-van-Johan.local (85-147-130-226.cable.dynamic.v4.ziggo.nl. [85.147.130.226]) by smtp.gmail.com with ESMTPSA id b12sm3664966edn.86.2020.11.13.03.26.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Nov 2020 03:26:49 -0800 (PST) Subject: Re: Shutdown errors and timeout To: Andrea Venturoli , freebsd-current@freebsd.org References: <65b1ff51-a946-61d0-79d9-104c1e053554@gmail.com> <5d9d4c6c-f6d4-b832-0eac-1b83845b1bfe@netfence.it> From: Johan Hendriks Message-ID: Date: Fri, 13 Nov 2020 12:26:48 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.4.2 MIME-Version: 1.0 In-Reply-To: <5d9d4c6c-f6d4-b832-0eac-1b83845b1bfe@netfence.it> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4CXblc41s3z3ngP X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::535:from]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::535:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::535:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Nov 2020 11:26:53 -0000 On 13/11/2020 11:55, Andrea Venturoli wrote: > On 11/13/20 11:35 AM, Johan Hendriks wrote: > > Just my 2c... > > > >> The vritual machine seems to fail stopping something and gives a >> timeout after 90 sec. > > I've seen this on many (physical) boxes and I solved by increasing > shutdown timeout. Sometimes 90s is just too little (especially, but > not only, if you have VMs running). > > E.g. I have rcshutdown_timeout="600" in /etc/rc.conf and > kern.init_shutdown_timeout=900 in /etc/sysctl.conf. > > > >> On the bare metal machine i see the following. >> Writing entropy file: . >> Writing early boot entropy file: . >> cannot unmount '/var/run': umount failed >> cannot unmount '/var/log': umount failed >> cannot unmount '/var': umount failed >> cannot unmount '/usr/home': umount failed >> cannot unmount '/usr': umount failed >> cannot unmount '/': umount failed > > Probably a process is still running and that's why those filesystems > cannot be (unforcibly) unmounted. > Logs can help identify which process it is. > Perhaps putting rc_debug="YES" in /etc/rc.conf can be useful. > > > >  bye >     av. > Thank you for your anwer. The rc_debug showed me that the virtualox server are hangs on zfs_stop, if i do not enable bastille and reboot all is fine after a shutdown, so i think the jail zfs datasets are interfering. The baremetal server is not waiting for anything just throw the umount errors directly. regards.