#165 mkfs.ext3 freezes on scsi disks

v0.7.x (release)
closed-fixed
nobody
5
2010-01-17
2009-11-10
Anonymous
No

I have tryed to make a mkfs.ext3 on /dev/sda1, wich is the only partition crreated on a scsi disk, backed by a plain file.
I am using 0.7.5 with the debian lenny root filesystem image. The scsi parameter I am adding to the conf file is just
scsi0=disk,j:\test.bin (test.bin is a 8 GB empty file)

What happens is that mkfs starts quickly, but soon slows down, and can even freeze colinux. Sometimes it crashes windows also.
This also happened on the latest devel snapshot, and also when the scsi backing is a raw device.

Tested con Windows XP SP2

Discussion

  •  
    Attachments
  • Henry N.
    Henry N.
    2009-11-10

    Please try 0.7.6-rc1 from todays build (with kernel 2.6.22.18), or the devel build after 2009-11-05 with kernel 2.6.25.20 - Because a bug #2890857 inside scsi driver was fixed last days.

    How many memory you have configured or used inside Linux?
    I ask, because we have fixed an other bug #2893343 this weekend.

     
  • Henry N.
    Henry N.
    2009-11-11

    Ok, have seen it with 0.7.6-rc1
    scsi0=disk,j:\test.bin,8192
    Created primary partition on /dev/sda with fdisk
    mkfs.ext3 /dev/sda1
    ...
    First coLinux stops doing, no keyboard reaction, The host is idle. Some seconds later, the host is no accessible. The mouse can move, and window-frames (GUI) can move with it. But, can not start taskmanager, and all of the windows-explorer hangs. It seams, that the complete filesystem is locked.

     
  • Henry N.
    Henry N.
    2009-11-11

    • status: open --> open-accepted
     
  • Henry N.
    Henry N.
    2009-11-15

    • status: open-accepted --> open-fixed
     
  • Ok, I have tried with this snapshot, and it "almost" works, it still slows down a lot, but although it eventually seems to complete, there are a lot of errors about "rejecting I/O to a offline device" or something like that, and after the command finishes, the device is not visible any more.

    This is trying to write to scsi0=disk,\device\harddissk2\partition0,8100 , wich is a USB pen drive attached.

    Sometimes, even, the windows mouse stops moving and I can see a windows balloon complaining about usb device nor working properly. When the mkfs.ext3 ends, it recovers.

     
  • Henry N.
    Henry N.
    2009-11-16

    It is normal, that Windows is slow down. mkfs.ext3 has a heavy disk IO.

    The next here is an other problem, and it would be nice you would open a new Bug.
    If You use \device\harddissk2\partition0, that Windows and coLinux are fighting for the format on USB disk. Windows does not know ext3 an will ask you to format it with FAT. Multiple access to same filesystem does not work. You needs to disable the drive letter in Windows Disk Manager before you starts coLinux.

    And last, the parameter "8100" should not append on existing files and real disk. The parameter is an option to create, blowup or shrink image files. Be very carefully with this parameter! This can damage (corrupt) existing image files.

     
  • Ok, tried with scsi0=\Device\Harddisk2\Partition0 , wich is the same USB Flash pen drive.

    Removing the drive letter from windows doesn't seem to make a difference. Still getting "sd:0:0:0:0: rejecting I/O to offline device"
    If scsi0 is a standard file it works, though.

    Anyway, I'll put it in a new bug, as requested.

    Thanks

     
  • Henry N.
    Henry N.
    2010-01-17

    Is also fixed for branch stable in SVN revision r1315 now.

     
  • Henry N.
    Henry N.
    2010-01-17

    • status: open-fixed --> closed-fixed