1 |
Le 1 nov. 2009 à 20:54, Robin H. Johnson a écrit : |
2 |
|
3 |
> On Sun, Nov 01, 2009 at 08:37:55PM +0100, Ulrich David wrote: |
4 |
>>>> sys-fs/multipath-tools-0.4.7-r2 (0.4.8 doesn't work) |
5 |
>>> Could you elaborate on how it doesn't work? What is your SAN |
6 |
>>> hardware? |
7 |
>> My hardware is DS4300 turbo. I have problems running kpartx from |
8 |
>> multipath-tools 0.4.8. It doesn't detect all my partitions... |
9 |
>> running on "dmsetup ls --target multipath". |
10 |
> If your drive is larger than 1TiB, there was a fix that got included |
11 |
> with multipath-tools-0.4.8-r1, so try that first (it's pending |
12 |
> stabilization). |
13 |
|
14 |
It's only 20GB volumes. |
15 |
|
16 |
> Or sounds like this might be bug #268961 again, that I didn't have |
17 |
> enough info on before. |
18 |
> - Do you see the partitions on top of the multipath device in |
19 |
> /proc/partitions? |
20 |
|
21 |
yes I see it. |
22 |
The problem is on extended partitions. I have : |
23 |
sda1 -> primary (boot) |
24 |
sda2 -> primary (swap) |
25 |
sda3 -> primary (root) |
26 |
sda4 -> extended on all the rest of disk |
27 |
- sda5 -> logical partition (usr) |
28 |
- sda6 -> logical partition (var) |
29 |
|
30 |
The first 3 partitions are ok (sda1 through sda3) but It takes sda4 |
31 |
instead of sda5 and sda6 .... so It doesn't recognize sda5 and sda6. |
32 |
|
33 |
> - Can you provide a udev info dump for your multipath device? |
34 |
|
35 |
With multipath 0.4.7-r2 (working correctly) : |
36 |
|
37 |
dom0 ~ # multipath -ll |
38 |
system (3600a0b80001f3e190000552a4ab06e95) dm-2 IBM ,1722-600 |
39 |
[size=20G][features=1 queue_if_no_path][hwhandler=0] |
40 |
\_ round-robin 0 [prio=0][enabled] |
41 |
\_ 0:0:1:0 sdd 8:48 [active][ready] |
42 |
\_ round-robin 0 [prio=3][active] |
43 |
\_ 1:0:1:0 sdh 8:112 [active][ready] |
44 |
... |
45 |
|
46 |
dom0 ~ # dmsetup ls --target multipath |
47 |
system (254, 2) |
48 |
data0r1 (254, 4) |
49 |
sys1domU (254, 3) |
50 |
data0r0 (254, 1) |
51 |
mpath4 (254, 0) |
52 |
|
53 |
dom0 ~ # udevadm info --query=all --path=/sys/block/dm-2 |
54 |
P: /block/dm-2 |
55 |
N: mapper/system |
56 |
L: -100 |
57 |
S: block/254:2 |
58 |
S: dm-2 |
59 |
S: disk/by-id/dm-name-system |
60 |
S: disk/by-id/dm-uuid-3600a0b80001f3e190000552a4ab06e95 |
61 |
E: UDEV_LOG=3 |
62 |
E: DEVPATH=/block/dm-2 |
63 |
E: DEVNAME=/dev/mapper/system |
64 |
E: DEVTYPE=disk |
65 |
E: DM_NAME=system |
66 |
E: DM_MAJOR=254 |
67 |
E: DM_MINOR=2 |
68 |
E: DM_STATUS=ACTIVE |
69 |
E: DM_READ_ONLY=0 |
70 |
E: DM_EXISTS=1 |
71 |
E: DM_SUSPENDED=Active |
72 |
E: DM_TABLE_LIVE=1 |
73 |
E: DM_TABLE_INACTIVE=0 |
74 |
E: DM_OPEN=5 |
75 |
E: DM_SEGMENTS=1 |
76 |
E: DM_EVENTS=1 |
77 |
E: DM_UUID=3600a0b80001f3e190000552a4ab06e95 |
78 |
E: DM_TARGET_TYPES=multipath |
79 |
E: DEVLINKS=/dev/block/254:2 /dev/dm-2 /dev/disk/by-id/dm-name-system / |
80 |
dev/disk/by-id/dm-uuid-3600a0b80001f3e190000552a4ab06e95 |
81 |
|
82 |
|
83 |
dom0 ~ # udevadm info --query=all --path=/sys/block/sda |
84 |
P: /block/sda |
85 |
N: sda |
86 |
S: block/8:0 |
87 |
S: disk/by-id/scsi-3600a0b80001f3e49000055614ac5d165 |
88 |
E: UDEV_LOG=3 |
89 |
E: DEVPATH=/block/sda |
90 |
E: DEVNAME=/dev/sda |
91 |
E: DEVTYPE=disk |
92 |
E: ID_VENDOR=IBM |
93 |
E: ID_VENDOR_ENC=IBM\x20\x20\x20\x20\x20 |
94 |
E: ID_MODEL=1722-600 |
95 |
E: ID_MODEL_ENC=1722-600\x20\x20\x20\x20\x20\x20\x20\x20 |
96 |
E: ID_REVISION=0914 |
97 |
E: ID_TYPE=disk |
98 |
E: ID_SERIAL=3600a0b80001f3e49000055614ac5d165 |
99 |
E: ID_SERIAL_SHORT=600a0b80001f3e49000055614ac5d165 |
100 |
E: ID_BUS=scsi |
101 |
E: DEVLINKS=/dev/block/8:0 /dev/disk/by-id/ |
102 |
scsi-3600a0b80001f3e49000055614ac5d165 |
103 |
|
104 |
|
105 |
David |
106 |
|
107 |
> |
108 |
>>> Upstream LVM2 merged device-mapper into LVM2, that's why the dep |
109 |
>>> has a |
110 |
>>> || block. |
111 |
>> So, if I install lvm2 I do not need device-mapper package to be |
112 |
>> installed in order to use multipath-tools, right? |
113 |
> Correct. |
114 |
> LVM2 2.02.45 and newer provide device-mapper. |
115 |
> |
116 |
> -- |
117 |
> Robin Hugh Johnson |
118 |
> Gentoo Linux: Developer, Trustee & Infrastructure Lead |
119 |
> E-Mail : robbat2@g.o |
120 |
> GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85 |