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> (raw) В 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
reply other threads:[~2005-03-01 7:12 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=422415D8.8090600@altlinux.com \ --to=rider@altlinux.com \ --cc=sisyphus@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 Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git