Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Rebuilding a kernel on a hardened gentoo
Date: Wed, 12 Sep 2018 13:07:41
Message-Id: 7251783.UjefcPkyp8@andromeda
In Reply to: Re: [gentoo-user] Rebuilding a kernel on a hardened gentoo by "J. Roeleveld"
1 On Wednesday, September 12, 2018 2:14:05 PM CEST J. Roeleveld wrote:
2 > On September 12, 2018 7:43:12 AM UTC, "Stefan G. Weichinger"
3 <lists@×××××.at> wrote:
4 > >Am 12.09.18 um 08:42 schrieb J. Roeleveld:
5 > >> On Tuesday, September 11, 2018 11:48:59 AM CEST Stefan G. Weichinger
6 > >
7 > >wrote:
8 > >>> At first I emerged latest stable gentoo-sources, enabled these flags
9 > >
10 > >and
11 > >
12 > >>> compiled ... but the lpfc module didn't detect the SAN devices
13 > >>> correctly, so I switched back to 4.1.15 (mark this as another todo
14 > >
15 > >here
16 > >
17 > >>> ... sooner or later I want a more recent kernel working with lpfc
18 > >
19 > >... I
20 > >
21 > >>> have no clue about multipath so far)
22 > >>
23 > >> I found multipath quite "simple" to implement when following the
24 > >
25 > >documentation
26 > >
27 > >> for this.
28 > >
29 > >*which* documentation, please?
30 > >
31 > >with the newer kernel I got:
32 > >
33 > >[ 864.521464] lpfc 0000:02:00.1: 1:1303 Link Up Event x7b received
34 > >Data: x7b x0 x20 x0 x0 x0 0
35 > >[ 868.693743] lpfc 0000:02:00.0: 0:1305 Link Down Event x7c received
36 > >Data: x7c x20 x80011 x0 x0
37 > >[ 869.523664] lpfc 0000:02:00.0: 0:1303 Link Up Event x7d received
38 > >Data: x7d x0 x20 x0 x0 x0 0
39 > >[ 873.691535] lpfc 0000:02:00.1: 1:1305 Link Down Event x7c received
40 > >Data: x7c x20 x80011 x0 x0
41 > >[ 874.521185] lpfc 0000:02:00.1: 1:1303 Link Up Event x7d received
42 > >Data: x7d x0 x20 x0 x0 x0 0
43 > >[ 878.694259] lpfc 0000:02:00.0: 0:1305 Link Down Event x7e received
44 > >Data: x7e x20 x80011 x0 x0
45 > >
46 > >
47 > >and no /dev/sdX created for the relevant LUN (is that the term?)
48 > >
49 > >I see a multipath.conf on the system, will try to understand that.
50 >
51 > Multipath devices end up under /dev/mapper/...
52 >
53 > I think it was Redhat who had most decent docs. Will check my bookmarks
54 > tonight and give you the full list.
55
56 Bit sooner:
57 https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/
58 dm_multipath/mpio_overview
59
60 https://www.thegeekdiary.com/beginners-guide-to-device-mapper-dm-multipathing/
61
62
63 I use multipath from a SAS-controller to a dual-backplane and SAS-disks.
64 From the controller, I have 2 paths to each disk, which means I have twice the
65 amount of "sd?" entries.
66
67 ==
68 # multipath -l
69 35000cca25d8ec910 dm-4 HGST,HUS726040ALS210
70 size=3.6T features='1 retain_attached_hw_handler' hwhandler='0' wp=rw
71 |-+- policy='service-time 0' prio=0 status=active
72 | `- 0:0:7:0 sdh 8:112 active undef running
73 `-+- policy='service-time 0' prio=0 status=enabled
74 `- 0:0:20:0 sdt 65:48 active undef running
75 ==
76 (This is only the first device)
77
78 It shows that device "35000cca25d8ec910" is mapped to "sdh" and "sdt".
79 To use the disk correctly, I need to access "/dev/mapper/35000cca25d8ec910",
80 which is:
81 # ls -lsa /dev/mapper/35000cca25d8ec910
82 0 lrwxrwxrwx 1 root root 7 Sep 4 11:43 /dev/mapper/35000cca25d8ec910 -> ../
83 dm-4
84
85 I have "multipathd" in the "boot" runlevel.
86
87 Version info:
88 # eix -I multipath
89 [I] sys-fs/multipath-tools
90 Available versions: 0.5.0-r1 0.6.4-r1{tbz2} ~0.7.6^t ~0.7.7^t {rbd
91 systemd KERNEL="linux"}
92 Installed versions: 0.6.4-r1{tbz2}(10:51:01 AM 01/23/2018)(-rbd -
93 systemd)
94 Homepage: http://christophe.varoqui.free.fr/
95 Description: Device mapper target autoconfig
96
97 # uname -a
98 Linux san1 4.9.76-gentoo-r1-generic #1 SMP Tue Jan 23 12:05:11 CET 2018 x86_64
99 Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz GenuineIntel GNU/Linux
100
101 As for the terms, a LUN is a Logical disk provided by a SAN to a different
102 system. I have multipath inside my SAN and have a single path to iSCSI
103 clients. (Single switch with bonded NICs)
104
105 --
106 Joost

Replies

Subject Author
Re: [gentoo-user] Rebuilding a kernel on a hardened gentoo "Stefan G. Weichinger" <lists@×××××.at>