From: "Михаил Новоселов" <mikhailnov@dumalogiya.ru> To: sisyphus@lists.altlinux.org Subject: Re: [sisyphus] Что делать с systemd? Date: Wed, 13 Jan 2021 15:29:45 +0300 Message-ID: <88eecb62-b431-8bd5-1973-b78ff78cdef4@dumalogiya.ru> (raw) In-Reply-To: <cabd831a-fdcb-05c1-4559-56c8c4753a29@ya.ru> 12.01.2021 23:35, Антон Мидюков пишет: > 13.01.2021 03:08, Alexei V. Mezin пишет: >> Блин, достало уже! >> >> Почему 10 подряд перезагрузок компьютера могут давать совершенно разные результаты? То все работает, то пропадает поддержка сессий. Теперь комп постоял новогодние праздники выключенным, и сломалось автомонтирование сетевых шар: статус automount-юнитов enabled; inactive(dead). >> >> Вот с какого такого после НГ перестали монтироваться сетевые шары? Только что обновился, теперь при загрузке вижу сразу после логов ядра сообщение, что ordering cycle found in automount, и ессесно ничего не монтируется. Три года до этого момента все монтировалось, и никаких циклов не было. А тут вдруг перестало. >> >> systemd так и задуман, чтоб КАЖДАЯ перезагрузка проходила с новым порядком запуска юнитов с непредсказуемым результатом? Три раза загрузился -- один раз оказался без сети, serivce network (etcnet) не отработал ВООБЩЕ. >> > Нужно, как минимум, указывать в юнитах зависимости, чтобы не было непредсказуемых ситуаций. > У меня сделано так: > > systemctl cat mnt-myhdd.mount > # /etc/systemd/system/mnt-myhdd.mount > [Unit] > Description=NFS share > Requires=NetworkManager.service генератор systemd-fstab-generator автоматически проставляет зависимости от network-online.target для NFS-шар, в свою очередь NetworkManager-wait-online обеспечивает нормальную работу network-online-target в большинстве конфигураций сети. Если требуется такое вручную прописывать, то значит что-то идет не так. И, кстати, NetworkManager.service не означает, что есть сеть, это лишь момент, когда сеть только начала запускаться. > [Mount] > What=myhdd:/home/antohami/myhdd > Where=/mnt/myhdd > Type=nfs4 > Options=rw > DirectoryMode=0777 > > systemctl cat mnt-myhdd.automount > # /etc/systemd/system/mnt-myhdd.automount > [Unit] > Description=NFS share > Requires=NetworkManager.service > [Automount] > Where=/mnt/myhdd > TimeoutIdleSec=180 > [Install] > WantedBy=graphical.target > > Работает стабильно. > -- ------ С уважением, Михаил Новоселов | mikhailnov@dumalogiya.ru | https://nixtux.ru
next prev parent reply other threads:[~2021-01-13 12:29 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-01-12 20:08 Alexei V. Mezin 2021-01-12 20:28 ` Alexei V. Mezin 2021-01-12 20:35 ` Антон Мидюков 2021-01-13 12:29 ` Михаил Новоселов [this message] 2021-01-16 21:13 ` Alexei V. Mezin 2021-01-17 12:39 ` Михаил Новоселов 2021-01-17 15:39 ` Alexei V. Mezin 2021-01-17 15:58 ` Alexei V. Mezin 2021-01-17 16:10 ` Антон Мидюков 2021-01-17 16:26 ` Alexei V. Mezin 2021-01-17 17:45 ` Leonid Krivoshein 2021-01-17 18:11 ` Alexei V. Mezin 2021-01-17 16:23 ` Alexei V. Mezin 2021-01-13 8:45 ` Andrey Savchenko 2021-01-13 14:08 ` Alexei Mezin 2021-01-13 11:38 ` Michael Shigorin 2021-01-13 12:32 ` Михаил Новоселов 2021-01-15 17:57 ` Michael Shigorin 2021-01-17 12:51 ` Михаил Новоселов 2021-01-13 12:27 ` Михаил Новоселов
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=88eecb62-b431-8bd5-1973-b78ff78cdef4@dumalogiya.ru \ --to=mikhailnov@dumalogiya.ru \ --cc=sisyphus@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git