From: Anton Farygin <rider@altlinux.com>
To: devel@altlinux.com
Subject: [devel] [Fwd: [sisyphus] unionfs упал в Sisyphus]
Date: Tue, 01 Mar 2005 10:28:53 +0300
Message-ID: <422419B5.6040901@altlinux.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: [sisyphus] unionfs упал в Sisyphus --]
[-- Type: message/rfc822, Size: 3650 bytes --]
From: Anton Farygin <rider@altlinux.com>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: [sisyphus] unionfs упал в Sisyphus
Date: Tue, 01 Mar 2005 10:12:24 +0300
Message-ID: <422415D8.8090600@altlinux.com>
В Sisyphus попали модули unionfs для ядер std26-*.
Как этим пользоваться:
1) поставить нужный пакет
2) в зависимости от задачи - создать unionfs readwrite branch или не
создавать
3) смонтировать несколько branch'ей в один
Например:
имеем подмонтированный NFS как read-only в каталог /build
необходимо сделать данные в этом каталоге read-write.
Создаем каталог для rw branch:
mkdir /tmp/build
монтируем:
mount -t unionfs -o dirs=/tmp/build=rw:/build=ro null /build
Все. Данные в каталоге /build можно изменять (удалять, добавлять).
При этом все изменения попадают в каталог /tmp/build/
Еще один пример, более странный ;-)
Имеем:
смонтированный через NFS (R/O) каталог /build
смонтированный через NFS (R/O) каталог /raid
Задача: объединить дерево каталогов /build и /raid в /build,
одновременно сделав /build как read-write с записью изменений в /tmp/build
mkdir /tmp/build
mount -t unionfs -o dirs=/tmp/build=rw:/build=ro:/raid=ro null /build
А вот более реальный пример:
Имеем:
кучу жестких дисков, NFS и т.д.
задача:
выложить объединенную структуру на FTP (R/O)
решение:
mount -t unionfs -o
dirs=/mnt/disk=ro,/mnt/disk1=ro,/mnt/disk2=ro..../mnt/diskN=ro none /var/ftp
Из известных ошибок:
- невозможность удаления каталогов с ro branch'ем на squashfs
- проблемы с переносом (mv) массы симлинков, реально расположенных на
r/o branch'е
Все остальное вроде как работает.
Также в Sisyphus лежат unionfs-utils, предоставляющие возможность на
лету добавлять/удалять branch'и, включать/отключать режим отладки.
man unionfs, man unionctl, man uniondbg
Просьба в случае обнаружения ошибок вешать в нашу bugzilla на пакет
unionfs, сопровождая:
- testcase на C или shell
- логами ядра, от подмонтированного unionfs с опцией debug=19
- информацией о ядре и файловых системах branch'ей
Regards,
Rider
_______________________________________________
Sisyphus mailing list
Sisyphus@altlinux.ru
https://lists.altlinux.ru/mailman/listinfo/sisyphus
reply other threads:[~2005-03-01 7:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=422419B5.6040901@altlinux.com \
--to=rider@altlinux.com \
--cc=devel@altlinux.com \
--cc=devel@altlinux.ru \
/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 Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git