* Re: [Sysadmins] ovz и mount --bind. забавный глюк.
2007-08-20 8:06 [Sysadmins] ovz и mount --bind. забавный глюк Alexey Borovskoy
@ 2007-08-20 8:08 ` Mikhail A. Pokidko
2007-08-20 8:24 ` Alexey Borovskoy
2007-08-20 8:39 ` Pavlov Konstantin
` (3 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: Mikhail A. Pokidko @ 2007-08-20 8:08 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
+x на *.*mount стоят?
2007/8/20, Alexey Borovskoy:
> Добрый вечер.
>
> Есть следующее:
>
> 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
>
>
> Что это и как лечить? В запасе есть кувалда, но это не кошерно.
>
> --
> Алексей.
> GPG key fingerprint
> 949B BC0E 2C44 7528 4F63 2753 E37A 9E3F 11F3 BDE1
>
> _______________________________________________
> Sysadmins mailing list
> Sysadmins@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/sysadmins
>
>
>
--
Mikhail A. Pokidko
ALTLinux Team
e-mail: pma@altlinux.org
xmpp: solar@solar.net.ru
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Sysadmins] ovz и mount --bind. забавный глюк.
2007-08-20 8:06 [Sysadmins] ovz и mount --bind. забавный глюк Alexey Borovskoy
2007-08-20 8:08 ` Mikhail A. Pokidko
@ 2007-08-20 8:39 ` Pavlov Konstantin
2007-08-20 8:50 ` Alexey Borovskoy
2007-08-20 9:51 ` Ivan Fedorov
` (2 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: Pavlov Konstantin @ 2007-08-20 8:39 UTC (permalink / raw)
To: sysadmins
[-- 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 --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Sysadmins] ovz и mount --bind. забавный глюк.
2007-08-20 8:39 ` Pavlov Konstantin
@ 2007-08-20 8:50 ` Alexey Borovskoy
0 siblings, 0 replies; 10+ messages in thread
From: Alexey Borovskoy @ 2007-08-20 8:50 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
[-- Attachment #1: Type: text/plain, Size: 1560 bytes --]
* Понедельник 20 августа 2007 Pavlov Konstantin
> 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]#
я прикрутил в конец скрипта exit 0. Но это же неправильно.
Глюк надо лечить.
--
Алексей.
GPG key fingerprint
949B BC0E 2C44 7528 4F63 2753 E37A 9E3F 11F3 BDE1
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Sysadmins] ovz и mount --bind. забавный глюк.
2007-08-20 8:06 [Sysadmins] ovz и mount --bind. забавный глюк Alexey Borovskoy
2007-08-20 8:08 ` Mikhail A. Pokidko
2007-08-20 8:39 ` Pavlov Konstantin
@ 2007-08-20 9:51 ` Ivan Fedorov
2007-08-20 11:10 ` Alexey Borovskoy
2007-08-20 11:22 ` Slava Dubrovskiy
2007-08-21 8:00 ` Michael Shigorin
4 siblings, 1 reply; 10+ messages in thread
From: Ivan Fedorov @ 2007-08-20 9:51 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
[-- Attachment #1: Type: text/plain, Size: 1017 bytes --]
Alexey Borovskoy пишет:
> Добрый вечер.
>
> Есть следующее:
>
> 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
>
>
> Что это и как лечить? В запасе есть кувалда, но это не кошерно.
Это не глюк. Это фича - альтовские скрипты сами все отмонтируют при
выключении машины.
Так что на самом деле совет с "||" самый правильный.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Sysadmins] ovz и mount --bind. забавный глюк.
2007-08-20 9:51 ` Ivan Fedorov
@ 2007-08-20 11:10 ` Alexey Borovskoy
0 siblings, 0 replies; 10+ messages in thread
From: Alexey Borovskoy @ 2007-08-20 11:10 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
[-- Attachment #1: Type: text/plain, Size: 1496 bytes --]
* Понедельник 20 августа 2007 Ivan Fedorov
> Alexey Borovskoy пишет:
> > Добрый вечер.
> >
> > Есть следующее:
> >
> > 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
> >
> >
> > Что это и как лечить? В запасе есть кувалда, но это не
> > кошерно.
>
> Это не глюк. Это фича - альтовские скрипты сами все
> отмонтируют при выключении машины.
Закомментировал umount. Не отмонтировывает.
>
> Так что на самом деле совет с "||" самый правильный.
--
Алексей.
GPG key fingerprint
949B BC0E 2C44 7528 4F63 2753 E37A 9E3F 11F3 BDE1
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Sysadmins] ovz и mount --bind. забавный глюк.
2007-08-20 8:06 [Sysadmins] ovz и mount --bind. забавный глюк Alexey Borovskoy
` (2 preceding siblings ...)
2007-08-20 9:51 ` Ivan Fedorov
@ 2007-08-20 11:22 ` Slava Dubrovskiy
2007-08-20 11:55 ` Alexey Borovskoy
2007-08-21 8:00 ` Michael Shigorin
4 siblings, 1 reply; 10+ messages in thread
From: Slava Dubrovskiy @ 2007-08-20 11:22 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]
Alexey Borovskoy пишет:
> Добрый вечер.
>
> Есть следующее:
>
> 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
>
>
> Что это и как лечить? В запасе есть кувалда, но это не кошерно.
>
А я вообще не делаю .umount. Вроде и так работает.
--
WBR,
Dubrovskiy Vyacheslav
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3249 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Sysadmins] ovz и mount --bind. забавный глюк.
2007-08-20 11:22 ` Slava Dubrovskiy
@ 2007-08-20 11:55 ` Alexey Borovskoy
0 siblings, 0 replies; 10+ messages in thread
From: Alexey Borovskoy @ 2007-08-20 11:55 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
[-- Attachment #1: Type: text/plain, Size: 1279 bytes --]
* Вторник 21 августа 2007 Slava Dubrovskiy
> Alexey Borovskoy пишет:
> > Добрый вечер.
> >
> > Есть следующее:
> >
> > 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
> >
> >
> > Что это и как лечить? В запасе есть кувалда, но это не
> > кошерно.
>
> А я вообще не делаю .umount. Вроде и так работает.
Остаются mount --bind в HN.
--
Алексей.
GPG key fingerprint
949B BC0E 2C44 7528 4F63 2753 E37A 9E3F 11F3 BDE1
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Sysadmins] ovz и mount --bind. забавный глюк.
2007-08-20 8:06 [Sysadmins] ovz и mount --bind. забавный глюк Alexey Borovskoy
` (3 preceding siblings ...)
2007-08-20 11:22 ` Slava Dubrovskiy
@ 2007-08-21 8:00 ` Michael Shigorin
4 siblings, 0 replies; 10+ messages in thread
From: Michael Shigorin @ 2007-08-21 8:00 UTC (permalink / raw)
To: sysadmins
[-- 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
^ permalink raw reply [flat|nested] 10+ messages in thread