Problem with disklabel and filesystem over iSCSI

Danny Braniss danny at cs.huji.ac.il
Sun Dec 28 11:21:31 UTC 2008


> Hi,
> 
> I tested the default iSCSI_initiator shipped with 7.0, 7.1RC1 and 
> 7.1RC2. Additionally i changed it with that version from 
> ftp://ftp.cs.huji.ac.il/users/danny/freebsd/iscsi-2.1.tar.gz with each 
> release. The effect is with all combinations the same:
> 
> 7.0 native / 7.0 + iscsi-2.1
> 7.1RC1 native / 7.1RC1 + iscsi-2.1
> 7.2RC2 native / 7.2RC2 + iscsi-2.1
> 
> 
> Additionally info + tests:
> --------------------------
> 1) I also checked it for ufs in dangerously dedicated mode - also the 
> same effect.
> 
> 2) After the reboot, the iSCSI device is back on /dev/da0 as expected.
> 
> 3) The SAN system is a Hardware-SAN (iStor / GigaStor), that works 
> without any problems under Ubuntu, CenOS, MacOS X, Windows and RedHat 
> (all tested the last days)
> 
> 4) I could get ufs to work with the following (terribly wrong) partition 
> map:
> 
>           0         40         39        -     12     unused        0
>          40     409600     409639    da0s1    165    FreeBSD        0
>      409640 1928708016 1929117655    da0s2    165    FreeBSD        0
> 1929117656     262184 1929379839        -     12     unused        0
> 
> With this partition map, newfs runs without any failure. The filesystem 
> is heavily damaged and can be repaired with fsck. After repairing, the 
> fs can be mounted and used as normal. But when running a fsck, thousands 
> of errors must be corrected and the result is an empty disk again (when 
> answering all with YES - I ran it with -y flag, since there are too many 
> questions to be answered manually, even when copying only three big 
> files).

ok, so the problem is on shutdown/reboot. Buffers don't seem to be flushed.
To check if this is correct, try shutdown, then under single user unmount the iscsi, sync, sync, reboot

danny




More information about the freebsd-scsi mailing list