﻿{"id":2599,"date":"2023-12-04T15:36:56","date_gmt":"2023-12-04T07:36:56","guid":{"rendered":"http:\/\/nick.txtcc.com\/?p=2599"},"modified":"2023-12-04T15:36:56","modified_gmt":"2023-12-04T07:36:56","slug":"ubuntu%e5%bc%80%e6%9c%ba%e5%8d%a1%e5%9c%a8-a-start-job-is-runing-for-wait-for-network-to-be-configured-1min-23s-no-limit","status":"publish","type":"post","link":"https:\/\/nick.txtcc.com\/index.php\/linux\/2599","title":{"rendered":"Ubuntu\u5f00\u673a\u5361\u5728 A start job is runing for wait for Network to be configured (1min 23s \/ no limit)"},"content":{"rendered":"<p>\u5728\u3010service\u3011\u4ee3\u7801\u5feb\u6700\u672b\u5c3e\u52a0\u4e0aTimeoutStartSec=2sec<\/p>\n<p>root@k8s-master1:~# cd \/etc\/systemd\/system\/network-online.target.wants\/\nroot@k8s-master1:\/etc\/systemd\/system\/network-online.target.wants# ll\ntotal 8\ndrwxr-xr-x 2 root root 4096 Aug 24 2021 .\/\ndrwxr-xr-x 19 root root 4096 Mar 24 08:11 ..\/\nlrwxrwxrwx 1 root root 56 Aug 16 2021 systemd-networkd-wait-online.service -> \/lib\/systemd\/system\/systemd-networkd-wait-online.service<\/p>\n<h1>SPDX-License-Identifier: LGPL-2.1+<\/h1>\n<p>#<\/p>\n<h1>This file is part of systemd.<\/h1>\n<p>#<\/p>\n<h1>systemd is free software; you can redistribute it and\/or modify it<\/h1>\n<h1>under the terms of the GNU Lesser General Public License as published by<\/h1>\n<h1>the Free Software Foundation; either version 2.1 of the License, or<\/h1>\n<h1>(at your option) any later version.<\/h1>\n<p>[Unit]\nDescription=Wait for Network to be Configured\nDocumentation=man:systemd-networkd-wait-online.service(8)\nDefaultDependencies=no\nConflicts=shutdown.target\nRequires=systemd-networkd.service\nAfter=systemd-networkd.service\nBefore=network-online.target shutdown.target<\/p>\n<p>[Service]\nType=oneshot\nExecStart=\/lib\/systemd\/systemd-networkd-wait-online\nRemainAfterExit=yes\nTimeoutStartSec=2sec\n[Install]\nWantedBy=network-online.target<\/p>\n<p>\u8c03\u6574vg\u5927\u5c0f\uff1a<\/p>\n<p>vgdisplay\nlvdisplay<\/p>\n<p>\u6269\u5bb9\uff1a\nlvcreate -L 300G -n data-lv vgname\nmkfs.ext4 \/dev\/vgname\/data-lv\nlvextend -l +100%FREE \/dev\/vgname\/data-lv\nresize2fs \/dev\/vgname\/data-lv 480M\ne2fsck -fy \/dev\/vgname\/data-lv<\/p>\n<p>\u7f29\u5bb9\uff1a\numount \/home\ne2fsck \/dev\/vg_powerpd\/lv_home\nresize2fs -f \/dev\/vg_powerpd\/lv_home 15g\nlvreduce -L15g \/dev\/vg_powerpd\/lv_home\nmount \/dev\/vg_powerpd\/lv_home<\/p>","protected":false},"excerpt":{"rendered":"<p>\u5728\u3010service\u3011\u4ee3\u7801\u5feb\u6700\u672b\u5c3e\u52a0\u4e0aTimeoutStartSec=2sec root@k8s-master1:~# cd \/etc\/systemd\/system\/network-online.tar&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2599","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/2599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=2599"}],"version-history":[{"count":2,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/2599\/revisions"}],"predecessor-version":[{"id":2601,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/2599\/revisions\/2601"}],"wp:attachment":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=2599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=2599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=2599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}