ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Pavlov Konstantin <thresh@altlinux.ru>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] ovz и mount --bind. забавный глюк.
Date: Mon, 20 Aug 2007 12:39:59 +0400
Message-ID: <20070820083959.GA25239@cryo.net.ru> (raw)
In-Reply-To: <200708202106.50780.alexey.borovskoy@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1233 bytes --]

On Mon, Aug 20, 2007 at 09:06:31PM +1300, Alexey Borovskoy wrote:
> Добрый вечер.
> 
> Есть следующее:
> 
> 202.mount
> 
> #!/bin/bash
> 
> mount --bind /mnt/ovz/samba/scans /var/lib/vz/root/202/mnt/scans
> mount --bind /mnt/ovz/samba/install /var/lib/vz/root/202/mnt/install
> 
> 202.umount
> 
> #!/bin/bash
> 
> umount /var/lib/vz/root/202/mnt/scans
> umount /var/lib/vz/root/202/mnt/install
> 
> При vzctl mount 202 и vzctl umount 202 все хорошо.
> 
> Но при vzctl start 202 и vzctl stop 202 получаем глюк
> 
> # 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
> 
> 
> Что это и как лечить? В запасе есть кувалда, но это не кошерно.

[root@HN1 conf]# cat 129.umount
#!/bin/sh

[ -f /etc/vz/vz.conf ] || exit 1
[ -f "$VE_CONFFILE" ] || exit 1

. /etc/vz/vz.conf
. "$VE_CONFFILE"

/bin/umount "$VE_ROOT/mounted_share" ||:

[root@HN1 conf]#

-- 
Костя появится через неделю, а пакет с ядром он уходя поставил
собираться :-)
		-- aen in devel@

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2007-08-20  8:39 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 [this message]
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

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=20070820083959.GA25239@cryo.net.ru \
    --to=thresh@altlinux.ru \
    --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