Gentoo Archives: gentoo-cluster

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-cluster@l.g.o
Subject: Re: [gentoo-cluster] clvm/lvm2/device-mapper
Date: Thu, 05 Nov 2009 00:57:11
Message-Id: robbat2-20091105T004827-100432161Z@orbis-terrarum.net
In Reply to: Re: [gentoo-cluster] clvm/lvm2/device-mapper by David Ulrich
1 On Wed, Nov 04, 2009 at 11:15:59PM +0100, David Ulrich wrote:
2 > >I'm trying to get some access to a SAN mounted space elsewhere to
3 > >test, so I can debug it further, should know later today if I can get
4 > >access.
5 Ok, I've reproduced it now. kpartx is picking the wrong starting device and
6 offset for extended partitions. Looks like it's starting from sda4 but calling
7 it dm-2.
8
9 # sfdisk -qL -d /dev/sda
10 # partition table of /dev/sda
11 unit: sectors
12 /dev/sda1 : start= 128, size= 524288, Id=83, bootable
13 /dev/sda2 : start= 524416, size= 10485760, Id=83
14 /dev/sda3 : start= 11010176, size=1453828654, Id= 5
15 /dev/sda4 : start= 0, size= 0, Id= 0
16 /dev/sda5 : start= 11010239, size= 50331713, Id=82
17 /dev/sda6 : start= 61342015, size=1403496815, Id=8e
18
19 # kpartx -l /dev/sda
20 sda1 : 0 524288 /dev/sda 128
21 sda2 : 0 10485760 /dev/sda 524416
22 sda3 : 0 1453828654 /dev/sda 11010176
23 sda5 : 0 50331713 /dev/dm-2 63
24 sda6 : 0 1403496815 /dev/dm-2 50331839
25
26 # cat /proc/partitions
27 major minor #blocks name
28
29 8 0 732421120 sda
30 8 1 262144 sda1
31 8 2 5242880 sda2
32 8 3 1 sda3
33 8 5 25165856 sda5
34 8 6 701748407 sda6
35 253 0 5242880 dm-0
36 253 1 5242880 dm-1
37 253 2 20971520 dm-2
38 253 3 5242880 dm-3
39 253 4 52428800 dm-4
40
41
42
43 --
44 Robin Hugh Johnson
45 Gentoo Linux: Developer, Trustee & Infrastructure Lead
46 E-Mail : robbat2@g.o
47 GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85

Replies

Subject Author
Re: [gentoo-cluster] clvm/lvm2/device-mapper "Robin H. Johnson" <robbat2@g.o>