From: Alexey Gladkov <gladkov.alexey@gmail.com>
To: make-initrd@lists.altlinux.org
Subject: Re: [make-initrd] Multipath feature
Date: Mon, 29 Jan 2024 13:47:24 +0000
Message-ID: <ZbesbI6bnT1jCHlG@example.org> (raw)
In-Reply-To: <363829e3-42c5-4370-a95a-a659449302ca@gmail.com>
On Mon, Jan 29, 2024 at 03:03:25PM +0300, Leonid Krivoshein wrote:
> >> Видимо в config.mk фичи надо паковать всю /%_lib/multipath, как в спеке
> >> multipath-tools, т.к. там ещё и плагины. На стабильных бранчах в
> >> установщике multipath рабочий, в обычной rootfs тоже.
> > Кто-нибудь может проверить эту теорию ?
>
> Проверил на предоставленном стенде на реальном железе. Теорию
> подтверждаю. Виноват make-initrd, не установщик. Если хочешь, могу
> скинуть личным письмом более подробную диагностику. Вот так не заработало:
>
> $ cat /etc/initrd.mk
> # trying to detect modules and features to access to root volume
> AUTODETECT = all
> FEATURES += lvm multipath
> PUT_DIRS += /lib64/multipath
PUT_FILES += /lib64/multipath
> А вот так заработало, корень системы на multipath:
>
> $ cat /etc/initrd.mk
> # trying to detect modules and features to access to root volume
> AUTODETECT = all
> FEATURES += lvm
> FEATURES += multipath
> PUT_FILES += $(shell ls /lib64/multipath/*.so)
Ок. Значит получается не хватает зависимости на lvm и плагинов.
С плагинами всегда боль. Что у multipath, что у plymouth они лежат в
разных местах у разных вендоров. Я понимаю, что это только моя боль, но
всё же. Нужно подумать как лучше паковать такое.
> Т.е. ещё проблема с PUT_DIRS.
PUT_DIRS работает также как PUT_FEATURE_DIRS. Это директория содержимое,
которой нужно положить относительно корень образа.
> > $ rpm -qa 'make-initrd*'
> make-initrd-mdadm-2.31.0-alt4.noarch
> make-initrd-luks-2.31.0-alt4.noarch
> make-initrd-lvm-2.31.0-alt4.noarch
> make-initrd-integrity-0.5.0-alt1.noarch
> make-initrd-2.31.0-alt4.x86_64
> make-initrd-devmapper-2.31.0-alt4.noarch
> make-initrd-multipath-2.31.0-alt4.noarch
>
> $ sudo initrd-ls /boot/initrd-6.1.29-un-def-alt1.img |grep ./lib64/multipath
>
> (пусто при первом варианте). И не пусто при втором, и кстати даты странные:
>
> 1 drwxr-xr-x 2 0 0 0 Jan 01 03:00:00 1970 ./lib64/multipath
> 1 -rw-r--r-- 1 0 0 14312 Jan 01 03:00:00 1970
> ./lib64/multipath/libcheckcciss_tur.so
> 1 -rw-r--r-- 1 0 0 14432 Jan 01 03:00:00 1970
> ./lib64/multipath/libcheckdirectio.so
> 1 -rw-r--r-- 1 0 0 14464 Jan 01 03:00:00 1970
> ./lib64/multipath/libcheckemc_clariion.so
> 1 -rw-r--r-- 1 0 0 14232 Jan 01 03:00:00 1970
> ./lib64/multipath/libcheckhp_sw.so
> 1 -rw-r--r-- 1 0 0 14456 Jan 01 03:00:00 1970
> ./lib64/multipath/libcheckrdac.so
> 1 -rw-r--r-- 1 0 0 14240 Jan 01 03:00:00 1970
> ./lib64/multipath/libcheckreadsector0.so
> 1 -rw-r--r-- 1 0 0 14408 Jan 01 03:00:00 1970
> ./lib64/multipath/libchecktur.so
> 1 -rw-r--r-- 1 0 0 30696 Jan 01 03:00:00 1970
> ./lib64/multipath/libforeign-nvme.so
> 1 -rw-r--r-- 1 0 0 14296 Jan 01 03:00:00 1970
> ./lib64/multipath/libprioalua.so
> 1 -rw-r--r-- 1 0 0 14288 Jan 01 03:00:00 1970
> ./lib64/multipath/libprioana.so
> 1 -rw-r--r-- 1 0 0 14008 Jan 01 03:00:00 1970
> ./lib64/multipath/libprioconst.so
> 1 -rw-r--r-- 1 0 0 14312 Jan 01 03:00:00 1970
> ./lib64/multipath/libpriodatacore.so
> 1 -rw-r--r-- 1 0 0 14304 Jan 01 03:00:00 1970
> ./lib64/multipath/libprioemc.so
> 1 -rw-r--r-- 1 0 0 14304 Jan 01 03:00:00 1970
> ./lib64/multipath/libpriohds.so
> 1 -rw-r--r-- 1 0 0 14304 Jan 01 03:00:00 1970
> ./lib64/multipath/libpriohp_sw.so
> 1 -rw-r--r-- 1 0 0 14304 Jan 01 03:00:00 1970
> ./lib64/multipath/libprioiet.so
> 1 -rw-r--r-- 1 0 0 14304 Jan 01 03:00:00 1970
> ./lib64/multipath/libprioontap.so
> 1 -rw-r--r-- 1 0 0 14312 Jan 01 03:00:00 1970
> ./lib64/multipath/libpriopath_latency.so
> 1 -rw-r--r-- 1 0 0 14304 Jan 01 03:00:00 1970
> ./lib64/multipath/libpriorandom.so
> 1 -rw-r--r-- 1 0 0 14304 Jan 01 03:00:00 1970
> ./lib64/multipath/libpriordac.so
> 1 -rw-r--r-- 1 0 0 14296 Jan 01 03:00:00 1970
> ./lib64/multipath/libpriosysfs.so
> 1 -rw-r--r-- 1 0 0 14312 Jan 01 03:00:00 1970
> ./lib64/multipath/libprioweightedpath.so
>
>
> --
> WBR, Leonid Krivoshein.
> _______________________________________________
> Make-initrd mailing list
> Make-initrd@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/make-initrd
--
Rgrds, legion
next prev parent reply other threads:[~2024-01-29 13:47 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-18 7:53 Vladimir Mokrozub
2024-01-18 13:54 ` Vladimir Mokrozub
2024-01-23 22:44 ` Konstantin Lepikhov
2024-01-24 0:09 ` Leonid Krivoshein
2024-01-24 13:00 ` Vladimir Mokrozub
2024-01-28 14:12 ` Alexey Gladkov
2024-01-28 17:17 ` Leonid Krivoshein
2024-01-29 12:03 ` Leonid Krivoshein
2024-01-29 13:47 ` Alexey Gladkov [this message]
2024-01-29 14:21 ` Leonid Krivoshein
2024-01-29 14:38 ` Alexey Gladkov
2024-01-29 16:39 ` Leonid Krivoshein
2024-01-29 16:42 ` Leonid Krivoshein
2024-01-29 16:56 ` Alexey Gladkov
2024-02-16 22:05 ` Leonid Krivoshein
2024-02-16 22:26 ` Leonid Krivoshein
2024-02-17 13:00 ` Alexey Gladkov
2024-02-17 13:15 ` Alexey Gladkov
2024-02-17 18:55 ` Leonid Krivoshein
2024-02-19 10:01 ` Leonid Krivoshein
2024-02-19 10:20 ` Leonid Krivoshein
2024-02-19 12:40 ` Leonid Krivoshein
2024-02-19 13:18 ` Alexey Gladkov
2024-02-19 15:08 ` Leonid Krivoshein
2024-02-19 15:30 ` Alexey Gladkov
2024-02-19 17:44 ` Leonid Krivoshein
2024-02-19 10:32 ` Alexey Gladkov
2024-02-19 10:55 ` Leonid Krivoshein
2024-02-19 12:47 ` Alexey Gladkov
2024-02-19 12:52 ` Leonid Krivoshein
2024-02-19 13:29 ` Alexey Gladkov
2024-02-19 15:07 ` Leonid Krivoshein
2024-02-19 17:48 ` Leonid Krivoshein
2024-02-19 21:41 ` Alexey Gladkov
2024-02-20 1:04 ` Leonid Krivoshein
2024-01-29 13:53 ` Alexey Gladkov
2024-01-29 14:16 ` Leonid Krivoshein
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=ZbesbI6bnT1jCHlG@example.org \
--to=gladkov.alexey@gmail.com \
--cc=make-initrd@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
Make-initrd development discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/make-initrd/0 make-initrd/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 make-initrd make-initrd/ http://lore.altlinux.org/make-initrd \
make-initrd@lists.altlinux.org make-initrd@lists.altlinux.ru make-initrd@lists.altlinux.com
public-inbox-index make-initrd
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.make-initrd
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git