From: Denis Klimov <zver@altlinux.org>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Монтирование жесткого диска в контейнере OpenVZ
Date: Mon, 6 Oct 2008 18:18:05 +0600
Message-ID: <20081006181805.b7bfc890.zver@altlinux.org> (raw)
In-Reply-To: <48EA0073.7080706@gmail.com>
On Mon, 06 Oct 2008 19:11:31 +0700 Vasyuk_Maksim wrote:
> Привет все!
> Поднял сервак с OpenVZ, создал там виртуальные серваки (ntpd,dns,web),
> пока все нормально.
> Захотел замутить ftp, уперся в то что не могу из контейнера смонтировать
> раздел. Захотел хранилище фтп сделать на отдельном винте, он подключен и
> из HW монтироуеться нормально. В доке (virtuozzo) сказано что нада
> сделать что-то типа
> #vzctl set 101 --devices b:8:16:rw --devices b:8:17:rw --devices save
> в их случает
> # ls -l /dev/sdb{,1,2}
> brw-rw---- 1 root disk 8, 16 Jan 30 13:24 /dev/sdb
> brw-rw---- 1 root disk 8, 17 Jan 30 13:24 /dev/sdb1
> brw-rw---- 1 root disk 8, 18 Jan 30 13:24 /dev/sdb2
>
>
> в моем случае
> # ls -l /dev/hd*
> brw-r----- 1 root disk 3, 0 Oct 4 11:35 /dev/hda
> brw-r----- 1 root disk 3, 1 Oct 6 12:47 /dev/hda1
>
> сделал
> vzctl set 101 --devices b:3:0:rw --devices b:3:1:rw --devices save
>
> в конфиг контейнера дописалось
> DEVICES="b:3:0:rw"
> DEVICES="b:3:1:rw"
>
> Дальше в доке описываеться что контейнер видит устройство ну и
> соостветственно с ним уже работает.
> В моем случае я устровсто не вижу.
>
> Ну в общем пока такой вопрос, как смонтировать раздел из контейнера OpenVZ?
В подобных случаях я использую опцию devnodes.
см. man vzctl
или пользуюсь скриптами <VEID>.mount
http://forum.openvz.org/index.php?t=msg&th=159&#msg_720
--
Denis Klimov
zver
next prev parent reply other threads:[~2008-10-06 12:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-14 5:59 [Sysadmins] htop и vz-контекст Sergey
2008-03-14 6:16 ` Хихин Руслан
2008-03-14 8:39 ` Michael Shigorin
2008-03-15 16:01 ` Sergey
2008-03-16 21:31 ` Michael Shigorin
2008-03-15 16:38 ` Sergey
2008-10-03 10:51 ` Sergey
2008-10-06 12:11 ` [Sysadmins] Монтирование жесткого диска в контейнере OpenVZ Vasyuk_Maksim
2008-10-06 12:18 ` Denis Klimov [this message]
2008-10-06 20:56 ` Michael Shigorin
2008-10-06 22:47 ` Alexey Borovskoy
2008-10-06 22:48 ` Michael Shigorin
2008-10-08 5:35 ` Vasyuk_Maksim
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=20081006181805.b7bfc890.zver@altlinux.org \
--to=zver@altlinux.org \
--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