ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Eugene Prokopiev <prokopiev@stc.donpac.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] mount --bind из HN в VE
Date: Sun, 15 Apr 2007 23:47:07 +0400
Message-ID: <4622813B.8080804@stc.donpac.ru> (raw)
In-Reply-To: <46224EF0.30602@stc.donpac.ru>

> Т.е. $VE_ROOT размонтируется раньше, чем вызывается 
> /etc/vz/conf/101.umount

нет, не размонтируется:

# cat 101.umount
#!/bin/bash -x

. /etc/vz/vz.conf

mount

ls $VE_ROOT
ls $VE_ROOT/data/tmp

umount -v /data/tmp


# vzctl stop 101
Stopping VE ...
VE was stopped
+ . /etc/vz/vz.conf
++ VIRTUOZZO=yes
++ LOCKDIR=/var/lib/vz/lock
++ DUMPDIR=/var/lib/vz/dump
++ VE0CPUUNITS=1000
++ LOGGING=yes
++ LOGFILE=/var/log/vzctl.log
++ LOG_LEVEL=0
++ VERBOSE=0
++ DISK_QUOTA=yes
++ VZFASTBOOT=no
++ TEMPLATE=/var/lib/vz/template
++ VE_ROOT=/var/lib/vz/root/101
++ VE_PRIVATE=/var/lib/vz/private/101
++ CONFIGFILE=vps.basic
++ DEF_OSTEMPLATE=altlinux
++ VZWDOG=no
++ IPV6=no
++ IPTABLES='ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter 
iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length'
+ mount
/dev/md0 on / type ext3 (rw)
proc on /proc type proc (rw,noexec,nosuid,gid=19)
sysfs on /sys type sysfs (rw)
udevfs on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw)
shmfs on /dev/shm type tmpfs (rw)
tmpfs on /tmp type tmpfs (rw,nosuid)
/dev/md1 on /data type ext3 (rw)
/data/tmp on /data/vz/root/101/data/tmp type none (rw,bind)
+ ls /var/lib/vz/root/101
bin  boot  data  dev  etc  home  lib  lib64  media  mnt  opt  proc  root 
  sbin  srv  sys  tmp  usr  var
+ ls /var/lib/vz/root/101/data/tmp
+ umount -v /data/tmp
could not umount /data/vz/root/101/data/tmp - trying /data/tmp instead
umount: /data/tmp: not mounted
could not umount /data/vz/root/101/data/tmp - trying /data/tmp instead
umount: /data/tmp: not mounted
Error executing umount script /etc/vz/conf/101.umount

Что происходит?

-- 
С уважением, Прокопьев Евгений


  parent reply	other threads:[~2007-04-15 19:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-15  8:58 Eugene Prokopiev
2007-04-15  9:32 ` Dmitry V. Levin
2007-04-15 16:12   ` Eugene Prokopiev
2007-04-15 16:19     ` Eugene Prokopiev
2007-04-15 19:47     ` Eugene Prokopiev [this message]
2007-04-15 19:53       ` Konstantin A. Lepikhov
2007-04-15 20:11         ` Eugene Prokopiev
2007-04-15 21:39           ` Konstantin A. Lepikhov
2007-04-16  5:32             ` Eugene Prokopiev
2007-04-16  6:28               ` Eugene Prokopiev
2007-04-16 10:48                 ` Dmitry V. Levin

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=4622813B.8080804@stc.donpac.ru \
    --to=prokopiev@stc.donpac.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