From: Michael Shigorin <mike@osdn.org.ua>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] ovz и mount --bind. забавный глюк.
Date: Tue, 21 Aug 2007 11:00:28 +0300
Message-ID: <20070821080028.GD8054@osdn.org.ua> (raw)
In-Reply-To: <200708202106.50780.alexey.borovskoy@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1196 bytes --]
On Mon, Aug 20, 2007 at 09:06:31PM +1300, Alexey Borovskoy wrote:
> # vzctl stop 202
> Stopping VE ...
> VE was stopped
> umount: /mnt/ovz/samba/scans: not mounted
> umount: /mnt/ovz/samba/scans: not mounted
> umount: /mnt/ovz/samba/install: not mounted
> umount: /mnt/ovz/samba/install: not mounted
> Error executing umount script /etc/vz/conf/202.umount
> Что это и как лечить? В запасе есть кувалда, но это не кошерно.
Вчера переделал (и сделал общим) скрипт /etc/vz/conf/umount,
который в данном разе озадачен одним и тем же ресурсом --
вкручиванием стораджа в /var/ftp:
---
#!/bin/bash
#. /etc/vz/vz.conf
. /etc/vz/vz.conf
. $VE_CONFFILE
( fgrep $VE_ROOT/var/ftp /proc/mounts ) && umount $VE_ROOT/var/ftp ||:
exit 0
---
До проверки на смонтированность в ситуации, когда что-то
смонтировано куда-то, а оттуда bindmount'ится по VE,
регулярно огребал отмонтирование этого самого стораджа
при некоторых ситуациях (навроде vzctl restart и облома
монтирования из-за очепятки).
Собирался заюзать vzmount, но раз Ваня его всё равно опять
переделывает -- подхачил на скору руку, вроде помогло. :)
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
[-- Attachment #2: umount --]
[-- Type: text/plain, Size: 143 bytes --]
#!/bin/bash
#. /etc/vz/vz.conf
. /etc/vz/vz.conf
. $VE_CONFFILE
( fgrep $VE_ROOT/var/ftp /proc/mounts ) && umount $VE_ROOT/var/ftp ||:
exit 0
prev parent reply other threads:[~2007-08-21 8:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-20 8:06 Alexey Borovskoy
2007-08-20 8:08 ` Mikhail A. Pokidko
2007-08-20 8:24 ` Alexey Borovskoy
2007-08-20 8:39 ` Pavlov Konstantin
2007-08-20 8:50 ` Alexey Borovskoy
2007-08-20 9:51 ` Ivan Fedorov
2007-08-20 11:10 ` Alexey Borovskoy
2007-08-20 11:22 ` Slava Dubrovskiy
2007-08-20 11:55 ` Alexey Borovskoy
2007-08-21 8:00 ` Michael Shigorin [this message]
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=20070821080028.GD8054@osdn.org.ua \
--to=mike@osdn.org.ua \
--cc=shigorin@gmail.com \
--cc=sysadmins@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 sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git