* [Sysadmins] Не правильное отображание df в контейнере OVZ @ 2008-10-08 5:42 Vasyuk_Maksim 2008-10-08 5:45 ` Denis Klimov 2008-10-08 8:46 ` Nikolay A. Fetisov 0 siblings, 2 replies; 13+ messages in thread From: Vasyuk_Maksim @ 2008-10-08 5:42 UTC (permalink / raw) To: ALT Linux sysadmin discuss Здрасте всем! Система ALS 4.0 x86_64 В контейнере # df Filesystem Size Used Avail Use% Mounted on simfs 1.0G 0 1.0G 0% / Накидал в него маленько файликов ему пофиг, всеравно показывает used 0, больше гигабайта кидать не пробовал, но мне кажеться и так что-то у меня не так ). Так во всех контейнерах. Может кто сталкивался? ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Sysadmins] Не правильное отображание df в контейнере OVZ 2008-10-08 5:42 [Sysadmins] Не правильное отображание df в контейнере OVZ Vasyuk_Maksim @ 2008-10-08 5:45 ` Denis Klimov 2008-10-08 5:49 ` Denis Klimov 2008-10-08 8:46 ` Nikolay A. Fetisov 1 sibling, 1 reply; 13+ messages in thread From: Denis Klimov @ 2008-10-08 5:45 UTC (permalink / raw) To: ALT Linux sysadmin discuss On Wed, 08 Oct 2008 12:42:06 +0700 Vasyuk_Maksim wrote: > Здрасте всем! > > Система ALS 4.0 x86_64 > > В контейнере > # df > Filesystem Size Used Avail Use% Mounted on > simfs 1.0G 0 1.0G 0% / > > Накидал в него маленько файликов ему пофиг, всеравно показывает used 0, > больше гигабайта кидать не пробовал, но мне кажеться и так что-то у меня > не так ). Так во всех контейнерах. > Может кто сталкивался? Случайно не в с bind'ом директорию "кидаете"? -- Denis Klimov zver ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Sysadmins] Не правильное отображание df в контейнере OVZ 2008-10-08 5:45 ` Denis Klimov @ 2008-10-08 5:49 ` Denis Klimov 2008-10-08 7:33 ` Vasyuk_Maksim 0 siblings, 1 reply; 13+ messages in thread From: Denis Klimov @ 2008-10-08 5:49 UTC (permalink / raw) To: ALT Linux sysadmin discuss On Wed, 8 Oct 2008 11:45:22 +0600 Denis Klimov wrote: > Случайно не в с bind'ом директорию "кидаете"? Мысли бегут быстрее чем печатаю :о) Случайно не в с bind'ом примонтированную директорию "кидаете"? -- Denis Klimov zver ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Sysadmins] Не правильное отображание df в контейнере OVZ 2008-10-08 5:49 ` Denis Klimov @ 2008-10-08 7:33 ` Vasyuk_Maksim 2008-10-08 7:36 ` Denis Klimov 0 siblings, 1 reply; 13+ messages in thread From: Vasyuk_Maksim @ 2008-10-08 7:33 UTC (permalink / raw) To: ALT Linux sysadmin discuss Denis Klimov пишет: > Случайно не в с bind'ом примонтированную директорию "кидаете"? > Кидаю в /var/tmp. А что сам шаблон место от виртуального раздела не кушает? Ну мне кажется в любом случа Used 0 это не верно, притом повторюсь во всех контейнерах. 101 контейнер у мну под тесты, так я туда apt`ом залил уже всякой всячины а он все 0 показывает. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Sysadmins] Не правильное отображание df в контейнере OVZ 2008-10-08 7:33 ` Vasyuk_Maksim @ 2008-10-08 7:36 ` Denis Klimov 2008-10-08 8:07 ` Vasyuk_Maksim 0 siblings, 1 reply; 13+ messages in thread From: Denis Klimov @ 2008-10-08 7:36 UTC (permalink / raw) To: ALT Linux sysadmin discuss On Wed, 08 Oct 2008 14:33:08 +0700 Vasyuk_Maksim wrote: > Кидаю в /var/tmp. > А что сам шаблон место от виртуального раздела не кушает? кушает. > Ну мне кажется в любом случа Used 0 это не верно, притом повторюсь во > всех контейнерах. > 101 контейнер у мну под тесты, так я туда apt`ом залил уже всякой > всячины а он все 0 показывает. Мм, ну тогда конечно странно. Вешайте багу с подробным описанием. -- Denis Klimov zver ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Sysadmins] Не правильное отображание df в контейнере OVZ 2008-10-08 7:36 ` Denis Klimov @ 2008-10-08 8:07 ` Vasyuk_Maksim 2008-10-08 8:12 ` Denis Klimov 0 siblings, 1 reply; 13+ messages in thread From: Vasyuk_Maksim @ 2008-10-08 8:07 UTC (permalink / raw) To: ALT Linux sysadmin discuss Denis Klimov пишет: > Мм, ну тогда конечно странно. > Вешайте багу с подробным описанием. > https://bugzilla.altlinux.org/show_bug.cgi?id=7802 С этим как-то связано или новую вешать? ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Sysadmins] Не правильное отображание df в контейнере OVZ 2008-10-08 8:07 ` Vasyuk_Maksim @ 2008-10-08 8:12 ` Denis Klimov 0 siblings, 0 replies; 13+ messages in thread From: Denis Klimov @ 2008-10-08 8:12 UTC (permalink / raw) To: ALT Linux sysadmin discuss On Wed, 08 Oct 2008 15:07:52 +0700 Vasyuk_Maksim wrote: > Denis Klimov пишет: > > Мм, ну тогда конечно странно. > > Вешайте багу с подробным описанием. > > > https://bugzilla.altlinux.org/show_bug.cgi?id=7802 > Вешайте новую. -- Denis Klimov zver ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Sysadmins] Не правильное отображание df в контейнере OVZ 2008-10-08 5:42 [Sysadmins] Не правильное отображание df в контейнере OVZ Vasyuk_Maksim 2008-10-08 5:45 ` Denis Klimov @ 2008-10-08 8:46 ` Nikolay A. Fetisov 2008-10-08 10:23 ` Vasyuk_Maksim 1 sibling, 1 reply; 13+ messages in thread From: Nikolay A. Fetisov @ 2008-10-08 8:46 UTC (permalink / raw) To: sysadmins On Wed, 08 Oct 2008 12:42:06 +0700 Vasyuk_Maksim wrote: > В контейнере > # df > Filesystem Size Used Avail Use% Mounted on > simfs 1.0G 0 1.0G 0% / Файловая система на HN какая? Дисковые квоты работают только с ext2/ext3: http://wiki.openvz.org/Disk_quota,_df_and_stat_weird_behaviour "Other reasons of strange numbers", п. 2. -- С уважением, Николай Фетисов ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Sysadmins] Не правильное отображание df в контейнере OVZ 2008-10-08 8:46 ` Nikolay A. Fetisov @ 2008-10-08 10:23 ` Vasyuk_Maksim 2008-10-08 10:56 ` Nikolay A. Fetisov 0 siblings, 1 reply; 13+ messages in thread From: Vasyuk_Maksim @ 2008-10-08 10:23 UTC (permalink / raw) To: ALT Linux sysadmin discuss Nikolay A. Fetisov пишет: > Файловая система на HN какая? > > Дисковые квоты работают только с ext2/ext3: > http://wiki.openvz.org/Disk_quota,_df_and_stat_weird_behaviour > "Other reasons of strange numbers", п. 2. # df -T Filesystem Type Size Used Avail Use% Mounted on /dev/sda2 ext3 494M 160M 310M 34% / udevfs tmpfs 5.0M 80K 5.0M 2% /dev shmfs tmpfs 498M 0 498M 0% /dev/shm tmpfs tmpfs 498M 0 498M 0% /tmp /dev/sda6 ext3 1004M 18M 936M 2% /home /dev/sda5 ext3 2.0G 151M 1.8G 8% /usr /dev/sda7 xfs 145G 1.5G 144G 1% /var Контейнеры лежат в /var/lib/vz Разметка была сделана при установке автоматически для сервера. Так и что получается xfs для этого дела не годиться? А почему она тогда по умолчанию на сервере с OVZ? Получается для ovz надо отпиливать раздел c ext3? Переставлять чели сервак и делать уже разметку ручками? Хм.Мне уже плохо )) Хорошо еще не успел жизнено-важные сервисы на этот сервак вынести ) ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Sysadmins] Не правильное отображание df в контейнере OVZ 2008-10-08 10:23 ` Vasyuk_Maksim @ 2008-10-08 10:56 ` Nikolay A. Fetisov 2008-10-09 6:47 ` Vasyuk_Maksim 2008-10-11 4:40 ` Vasyuk_Maksim 0 siblings, 2 replies; 13+ messages in thread From: Nikolay A. Fetisov @ 2008-10-08 10:56 UTC (permalink / raw) To: sysadmins On Wed, 08 Oct 2008 17:23:55 +0700 Vasyuk_Maksim wrote: > /dev/sda7 xfs 145G 1.5G 144G 1% /var ... что и требовалось доказать. > Разметка была сделана при установке автоматически для сервера. ... а автоматика для сервера - это плохо... > Так и что получается xfs для этого дела не годиться? Для размещения контейнеров - вполне годится. Квоты только работать не будут, что, впрочем, в ряде случаев и не так уж и нужно. Из возможных неприятно-неожиданных проблем есть только одна: пока контейнер работает, занимаемое им место ограничивается только размерами диска, и на значение в DISKSPACES внимание не обращается. А вот после некорректного завершения работы HN квота пересчитается, и тут-то возможное превышение реального размера над указанным в DISKSPACES и проявляется... > А почему она тогда по умолчанию на сервере с OVZ? Это в Bugzilla. > Получается для ovz надо отпиливать раздел c ext3? Если нужны квоты - то да. Или размещать те контейнеры, где они нужны, на отдельных разделах с ext3, или переводить на ext3 целиком /var/lib/vz/private . > Переставлять чели сервак и делать уже разметку ручками? Зависит от того, сколько на нём уже всего настроено. Так можно перенести /var с /dev/sda7, отдать sda7 под управление LVM2, выделить нужные по размеру разделы под /var, /var/log, /var/lib/vz/private, кстати для данной машины и под /tmp заодно, ну и т.д. -- С уважением, Николай Фетисов ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Sysadmins] Не правильное отображание df в контейнере OVZ 2008-10-08 10:56 ` Nikolay A. Fetisov @ 2008-10-09 6:47 ` Vasyuk_Maksim 2008-10-09 7:24 ` Nikolay A. Fetisov 2008-10-11 4:40 ` Vasyuk_Maksim 1 sibling, 1 reply; 13+ messages in thread From: Vasyuk_Maksim @ 2008-10-09 6:47 UTC (permalink / raw) To: ALT Linux sysadmin discuss Nikolay A. Fetisov пишет: > Так можно перенести /var с /dev/sda7, отдать sda7 под управление LVM2, > выделить нужные по размеру разделы под /var, /var/log, > /var/lib/vz/private, кстати для данной машины и под /tmp заодно, ну и > т.д. Спасибо за такой развернутый ответ ;) Собираюсь перебросить var на другой раздел, уже отформатировал его под ext3 для переброски, временно. Затем уже подготовить /dev/sda7 как вы порекомендовали. Достаточно будет просто скопировать весь var в другой раздел или перебрасывать надо как-то по хитрому типа dd? ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Sysadmins] Не правильное отображание df в контейнере OVZ 2008-10-09 6:47 ` Vasyuk_Maksim @ 2008-10-09 7:24 ` Nikolay A. Fetisov 0 siblings, 0 replies; 13+ messages in thread From: Nikolay A. Fetisov @ 2008-10-09 7:24 UTC (permalink / raw) To: sysadmins On Thu, 09 Oct 2008 13:47:04 +0700 Vasyuk_Maksim wrote: > ... > Собираюсь перебросить var на другой раздел, > ... > Достаточно будет просто скопировать весь var в другой раздел или > перебрасывать надо как-то по хитрому типа dd? Судя по размеру текущего раздела, там уже есть какие-то развёрнутые VPS. Лучше # rsync -aHSxvP --delete --numeric-ids /var/ /var-new/ С dd хитростей будет намного больше. -- С уважением, Николай Фетисов ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Sysadmins] Не правильное отображание df в контейнере OVZ 2008-10-08 10:56 ` Nikolay A. Fetisov 2008-10-09 6:47 ` Vasyuk_Maksim @ 2008-10-11 4:40 ` Vasyuk_Maksim 1 sibling, 0 replies; 13+ messages in thread From: Vasyuk_Maksim @ 2008-10-11 4:40 UTC (permalink / raw) To: ALT Linux sysadmin discuss Nikolay A. Fetisov пишет: >> Переставлять чели сервак и делать уже разметку ручками? >> > Зависит от того, сколько на нём уже всего настроено. > > Так можно перенести /var с /dev/sda7, отдать sda7 под управление LVM2, > выделить нужные по размеру разделы под /var, /var/log, > /var/lib/vz/private, кстати для данной машины и под /tmp заодно, ну и > т.д. Все сделал как порекомендовали. Спасибо большое! ;) За LVM2 отдельное спасибо ;) ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2008-10-11 4:40 UTC | newest] Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-10-08 5:42 [Sysadmins] Не правильное отображание df в контейнере OVZ Vasyuk_Maksim 2008-10-08 5:45 ` Denis Klimov 2008-10-08 5:49 ` Denis Klimov 2008-10-08 7:33 ` Vasyuk_Maksim 2008-10-08 7:36 ` Denis Klimov 2008-10-08 8:07 ` Vasyuk_Maksim 2008-10-08 8:12 ` Denis Klimov 2008-10-08 8:46 ` Nikolay A. Fetisov 2008-10-08 10:23 ` Vasyuk_Maksim 2008-10-08 10:56 ` Nikolay A. Fetisov 2008-10-09 6:47 ` Vasyuk_Maksim 2008-10-09 7:24 ` Nikolay A. Fetisov 2008-10-11 4:40 ` Vasyuk_Maksim
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