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 20:12:32 +0400
Message-ID: <46224EF0.30602@stc.donpac.ru> (raw)
In-Reply-To: <20070415093203.GA11968@basalt.office.altlinux.org>

Dmitry V. Levin пишет:
> On Sun, Apr 15, 2007 at 12:58:55PM +0400, Eugene Prokopiev wrote:
> 
>>Достаточно свежий сизиф:
>>
>># cat /etc/vz/conf/101.mount
>>#!/bin/bash
>>
>>. /etc/sysconfig/vz
> 
> 
> /etc/sysconfig/vz раньше был ссылкой на /etc/vz/vz.conf
> 
> Теперь этой ссылки нет.

Спасибо. Однако не очень понятные проблемы остались:

# cat /etc/vz/conf/101.mount
#!/bin/bash

. /etc/vz/vz.conf

mount -o bind /data/tmp $VE_ROOT/data/tmp

# cat /etc/vz/conf/101.umount
#!/bin/bash

. /etc/vz/vz.conf

mount

umount $VE_ROOT/data/tmp

# vzctl start 101
Starting VE ...
VE is mounted
Setting CPU units: 1000
VE start in progress...

# vzctl stop 101
Stopping VE ...
VE was stopped
/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)
umount: /data/tmp: not mounted
umount: /data/tmp: not mounted
Error executing umount script /etc/vz/conf/101.umount

Почему mount показывает, что /data/tmp смонтирован, а umount не может 
его размонтировать?

Если /etc/vz/conf/101.umount удалить, то после остановки VE мы увидим:

# 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)

# umount /data/vz/root/101/data/tmp
umount: /data/tmp: not mounted
umount: /data/vz/root/101/data/tmp: not found
umount: /data/tmp: not mounted
umount: /data/vz/root/101/data/tmp: not found

# umount /data/tmp
umount: /data/tmp: not mounted

# ls /data/vz/root/101

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

Почему это может происходить?

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


  reply	other threads:[~2007-04-15 16:12 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 [this message]
2007-04-15 16:19     ` Eugene Prokopiev
2007-04-15 19:47     ` Eugene Prokopiev
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=46224EF0.30602@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