Hi Ulrich,<br><br>I dont think thats going to work, arent you suppose to create the raid with xdisk, than create LVM on top of the raid?<br><br><div class="gmail_quote">On Thu, Oct 21, 2010 at 7:16 AM, Ulrich Windl <span dir="ltr"><<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-regensburg.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<br>
not an iSCSI question, but maybe here's the right audience: I had sucessfully created a RAID1 using mdadm, multipath, iSCSI and some SAN storage on SLES10 SP3+Updates on x86_64. When I tried to do the same thing on a comparable machine, the RAID could not be created, because something tried to access the disk at a bad position. I reapeated the attempt with another set of disks of the same size, and it also failed.<br>

<br>
Details:<br>
# mdadm --verbose --create /dev/md5 --raid-devices=2 --level=raid1 --bitmap=internal --assume-clean /dev/mapper/EVA1_L232_host05 /dev/mapper/EVA2_L232_host05<br>
mdadm: /dev/mapper/EVA1_L232_host05 appears to be part of a raid array:<br>
    level=raid1 devices=2 ctime=Thu Oct 21 12:26:18 2010<br>
mdadm: /dev/mapper/EVA2_L232_host05 appears to be part of a raid array:<br>
    level=raid1 devices=2 ctime=Thu Oct 21 12:26:18 2010<br>
mdadm: size set to 31457216K<br>
Continue creating array? y<br>
mdadm: RUN_ARRAY failed: Input/output error<br>
mdadm: stopped /dev/md5<br>
hostname:~ # tail -24 /var/log/messages                                         Oct 21 12:28:05 hostname kernel: md: md5 stopped.<br>
Oct 21 12:28:07 hostname kernel: md: md5 stopped.<br>
Oct 21 12:29:46 hostname kernel: md: bind<dm-21><br>
Oct 21 12:29:46 hostname kernel: md: bind<dm-14><br>
Oct 21 12:29:46 hostname kernel: raid1: raid set md5 active with 2 out of 2 mirrors<br>
Oct 21 12:29:46 hostname kernel: md5: bitmap file is out of date (0 < 1) -- forcing full recovery<br>
Oct 21 12:29:46 hostname kernel: md5: bitmap file is out of date, doing full recovery<br>
Oct 21 12:29:46 hostname kernel: attempt to access beyond end of device<br>
Oct 21 12:29:46 hostname kernel: dm-14: rw=8, want=62914568, limit=62914560<br>
Oct 21 12:29:46 hostname kernel: attempt to access beyond end of device<br>
Oct 21 12:29:46 hostname kernel: dm-21: rw=8, want=62914568, limit=62914560<br>
Oct 21 12:29:46 hostname kernel: md5: bitmap initialized from disk: read 15/16 pages, set 489472 bits, status: -5<br>
Oct 21 12:29:46 hostname kernel: md5: failed to create bitmap (-5)<br>
Oct 21 12:29:46 hostname kernel: md: pers->run() failed ...<br>
Oct 21 12:29:46 hostname kernel: md: md5 stopped.<br>
Oct 21 12:29:46 hostname kernel: md: unbind<dm-14><br>
Oct 21 12:29:46 hostname kernel: md: export_rdev(dm-14)<br>
Oct 21 12:29:46 hostname kernel: md: unbind<dm-21><br>
Oct 21 12:29:46 hostname kernel: md: export_rdev(dm-21)<br>
<br>
hostname:~ # mdadm --query -X /dev/mapper/EVA2_L232_host05<br>
mdadm: WARNING: bitmap file is not large enough for array size 62914432!<br>
<br>
        Filename : /dev/mapper/EVA2_L232_host05<br>
           Magic : 6d746962<br>
         Version : 4<br>
            UUID : c522ab5a:24f292a0:0b3d7356:64ade12a<br>
          Events : 0<br>
  Events Cleared : 0<br>
           State : Out of date<br>
       Chunksize : 64 KB<br>
          Daemon : 5s flush period<br>
      Write Mode : Normal<br>
       Sync Size : 31457216 (30.00 GiB 32.21 GB)<br>
          Bitmap : 489472 bits (chunks), 489472 dirty (100.0%)<br>
hostname:~ # mdadm --query -X /dev/mapper/EVA1_L232_host05<br>
mdadm: WARNING: bitmap file is not large enough for array size 62914432!<br>
<br>
        Filename : /dev/mapper/EVA1_L232_host05<br>
           Magic : 6d746962<br>
         Version : 4<br>
            UUID : c522ab5a:24f292a0:0b3d7356:64ade12a<br>
          Events : 0<br>
  Events Cleared : 0<br>
           State : Out of date<br>
       Chunksize : 64 KB<br>
          Daemon : 5s flush period<br>
      Write Mode : Normal<br>
       Sync Size : 31457216 (30.00 GiB 32.21 GB)<br>
          Bitmap : 489472 bits (chunks), 489472 dirty (100.0%)<br>
<br>
"blockdev --getsize" reports "62914560" for each LUN being used.<br>
<br>
Regards,<br>
Ulrich<br>
<font color="#888888"><br>
<br>
--<br>
You received this message because you are subscribed to the Google Groups "open-iscsi" group.<br>
To post to this group, send email to <a href="mailto:open-iscsi@googlegroups.com">open-iscsi@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href="mailto:open-iscsi%2Bunsubscribe@googlegroups.com">open-iscsi+unsubscribe@googlegroups.com</a>.<br>
For more options, visit this group at <a href="http://groups.google.com/group/open-iscsi?hl=en" target="_blank">http://groups.google.com/group/open-iscsi?hl=en</a>.<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Rahsaan D. Page<br>