<div>Hi </div>
<div> </div>
<div>I am a new linux user </div>
<div>this device mapper mutilpathing has been disturbing me for quite sometime now.</div>
<div>can anyone please tell me what are the hardware requirements for using kpartx and mutipathing on linux</div>
<div> </div>
<div>Thanks,</div>
<div>neelima<br><br> </div>
<div><span class="gmail_quote">On 2/8/06, <b class="gmail_sendername">Arno Wagner</b> <<a href="mailto:wagner@tik.ee.ethz.ch">wagner@tik.ee.ethz.ch</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Is it possible that you are using the wrong target type,<br>e.g. RAID0/1/5? That would explain the complaint about hdc being
<br>too small. Maybe you do not have linear in as target type<br>in the new system?<br><br>If you do a 'cat /proc/mdstat', it needs to list the<br>'linear' target, like this:<br><br>root ~>cat /proc/mdstat<br>Personalities : [linear] [raid0] [raid1] [raid5] [raid10]
<br>...             ^^^^^^^^<br><br>Arno<br><br><br>On Tue, Feb 07, 2006 at 06:37:26PM +0100, Thomas Berton wrote:<br>> Hello,<br>> I'm encountering some problems with device-mapper when migrating my lvm<br>> system to a new debian system.
<br>> I must say I had to play around with pvcreate and vgcfgrestore to get<br>> /dev/hdb recognized again on the new system but after fixing that issue<br>> I'm stuck with following problem:<br>> Booting the new system with the lvm disks it seems that the
<br>> device-mapper is having troubles putting together the lvm device:<br>><br>> output from dmesg:<br>> device-mapper: 4.1.0-ioctl (2003-12-10) initialised: <a href="mailto:dm@uk.sistina.com">dm@uk.sistina.com
</a><br>> device-mapper: device /dev/hdc too small for target<br>> device-mapper: : dm-linear: Device lookup failed<br>><br>> device-mapper: error adding target to table<br>><br>> Starting the lvm service gives the following:
<br>> storage:~# /etc/init.d/lvm start<br>> Setting up LVM Volume Groups...<br>> Reading all physical volumes.  This may take a while...<br>> Found volume group "storage" using metadata type lvm2<br>
> /dev/storage: opendir failed: No such file or directory<br>> device-mapper ioctl cmd 9 failed: Invalid argument<br>> Couldn't load device 'storage-storage1'.<br>> 1 logical volume(s) in volume group "storage" now active
<br>> storage:~#<br>><br>> Nevertheless other lvm commands seem to display correct information<br>> about the lvm.<br>> Below is the output from pvscan, lvscan, lvmdiskscan, pvdisplay and<br>> vgdisplay.
<br>> The lvm is appearing in the /dev/mapper folder, but no link is made in<br>> the /dev folder btw.<br>> Mounting the lvm fails, gives the error of bad superblock (ext3<br>> filesystem).<br>> The lvm has been created using the full disks and not working on
<br>> partitions.<br>> I'm hoping someone on this list can help me out or give me some pointers<br>> on how to continue and getting the disks right and making my lvm<br>> mountable again.<br>> Thx in advance,
<br>> Thomas.<br>><br>> storage:~# pvscan<br>> PV /dev/hda   VG storage   lvm2 [279.46 GB / 0    free]<br>> PV /dev/hdc   VG storage   lvm2 [189.92 GB / 0    free]<br>> PV /dev/hdb   VG storage   lvm2 [279.46
 GB / 0    free]<br>> Total: 3 [748.84 GB] / in use: 3 [748.84 GB] / in no VG: 0 [0   ]<br>> storage:~#<br>><br>> storage:~# lvscan<br>> ACTIVE            '/dev/storage/storage1' [748.84 GB] inherit<br>> storage:~#
<br>><br>> storage:~# lvmdiskscan<br>> /dev/hda  [      279.46 GB] LVM physical volume<br>> /dev/hdc  [      189.92 GB] LVM physical volume<br>> /dev/sda1 [       18.63 GB]<br>> /dev/sda2 [      957.00 MB]
<br>> /dev/sda3 [        4.66 GB]<br>> /dev/sda5 [      956.97 MB]<br>> /dev/sda6 [        2.80 GB]<br>> /dev/hdb  [      279.46 GB] LVM physical volume<br>> 0 disks<br>> 5 partitions<br>> 3 LVM physical volume whole disks
<br>> 0 LVM physical volumes<br>> storage:~#<br>><br>> storage:~# pvdisplay<br>> --- Physical volume ---<br>> PV Name               /dev/hda<br>> VG Name               storage<br>> PV Size               
279.46 GB / not usable 0<br>> Allocatable           yes (but full)<br>> PE Size (KByte)       4096<br>> Total PE              71541<br>> Free PE               0<br>> Allocated PE          71541<br>> PV UUID               ZDOYsq-1rGU-bngq-QVZu-DqvG-I7AO-r7Rnl5
<br>><br>> --- Physical volume ---<br>> PV Name               /dev/hdc<br>> VG Name               storage<br>> PV Size               189.92 GB / not usable 0<br>> Allocatable           yes (but full)<br>
> PE Size (KByte)       4096<br>> Total PE              48620<br>> Free PE               0<br>> Allocated PE          48620<br>> PV UUID               VT7Lkj-n4V1-G8mV-a6GF-kspp-Zs61-3YzXD3<br>><br>> --- Physical volume ---
<br>> PV Name               /dev/hdb<br>> VG Name               storage<br>> PV Size               279.46 GB / not usable 0<br>> Allocatable           yes (but full)<br>> PE Size (KByte)       4096<br>> Total PE              71541
<br>> Free PE               0<br>> Allocated PE          71541<br>> PV UUID               jJqtAX-XxMz-nIEC-2ast-7y40-XPFG-rN0Rzz<br>> storage:~#<br>><br>> storage:~# vgdisplay<br>> --- Volume group ---
<br>> VG Name               storage<br>> System ID<br>> Format                lvm2<br>> Metadata Areas        3<br>> Metadata Sequence No  12<br>> VG Access             read/write<br>> VG Status             resizable
<br>> MAX LV                0<br>> Cur LV                1<br>> Open LV               0<br>> Max PV                0<br>> Cur PV                3<br>> Act PV                3<br>> VG Size               
748.84 GB<br>> PE Size               4.00 MB<br>> Total PE              191702<br>> Alloc PE / Size       191702 / 748.84 GB<br>> Free  PE / Size       0 / 0<br>> VG UUID               59Yxut-UcZa-MBUS-KH8Y-5wZP-Eh1x-1E33Wl
<br>><br>> storage:~#<br>><br>> --<br>> dm-devel mailing list<br>> <a href="mailto:dm-devel@redhat.com">dm-devel@redhat.com</a><br>> <a href="https://www.redhat.com/mailman/listinfo/dm-devel">https://www.redhat.com/mailman/listinfo/dm-devel
</a><br>><br><br>--<br>Arno Wagner, Dipl. Inform., CISSP --- CSG, ETH Zurich, <a href="mailto:wagner@tik.ee.ethz.ch">wagner@tik.ee.ethz.ch</a><br>GnuPG:  ID: 1E25338F  FP: 0C30 5782 9D93 F785 E79C  0296 797F 6B50 1E25 338F
<br>----<br>Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans<br>Windows is the "under-3" toy of the OS world. -- Matthew D. Fuller<br><br>--<br>dm-devel mailing list<br><a href="mailto:dm-devel@redhat.com">
dm-devel@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/dm-devel">https://www.redhat.com/mailman/listinfo/dm-devel</a><br></blockquote></div><br>