Re: [zfs-discuss] Move Fedora or Windows disk image to ZFS (iScsi Boot)

2010-07-25 Thread Packet Boy
OK...decided to do a fresh install of Fedora (FC12)...install completed to 
iScsi target...now trying to boot it.

Fedora is finding the target, then then throwing an I/O error.  When I snoop 
on the ZFS server I see the following:

1) Initiator connects and logs into the target OK
2) Initiator issues a iScsi opcode 0x25 (Read Capacity)
3) Target responds with a 'Illegal Request' response (see below).

Based on my read of the Iscsi RFC on a *target* is supposed to use opcode 0x25 
and here we have the Fedora initiator doing it so it seems like the Solaris 
target is responding properly and the Fedora initiator seems broken...anyone 
understand this?

[code]
[Reassembled TCP Segments (72 bytes): #122(48), #123(22), #124(2)]
[Frame: 122, payload: 0-47 (48 bytes)]
[Frame: 123, payload: 48-69 (22 bytes)]
[Frame: 124, payload: 70-71 (2 bytes)]
iSCSI (SCSI Response)
Opcode: SCSI Response (0x21)
Flags: 0x82
...0  = o: No overflow of read part of bi-directional command
 0... = u: No underflow of read part of bi-directional command
 .0.. = O: No residual overflow occurred
 ..1. = U: Residual underflow occurred
Response: Command completed at target (0x00)
Status: Check Condition (0x02)
TotalAHSLength: 0x00
DataSegmentLength: 0x0016
InitiatorTaskTag: 0x0002
StatSN: 0x0003
ExpCmdSN: 0x0001
MaxCmdSN: 0x000f
ExpDataSN: 0x
BidiReadResidualCount: 0x
ResidualCount: 0x
Request in: 121
Time from request: 0.00030 seconds
SenseLength: 0x0014
SCSI: SNS Info
[LUN: 0x0001]
Valid: 0
.111  = SNS Error Type: Current Error (0x70)
Filemark: 0, EOM: 0, ILI: 0
 0101 = Sense Key: Illegal Request (0x05)
Sense Info: 0x
Additional Sense Length: 0
Command-Specific Information: 
Additional Sense Code+Qualifier: Unknown (0x2009)
Field Replaceable Unit Code: 0x00
0...  = SKSV: False
Sense Key Specific: 00

[/code]
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Move Fedora or Windows disk image to ZFS (iScsi Boot)

2010-07-25 Thread Packet Boy
Gr...I finally figured out I was specifying the wrong LUN (I was using 1 in 
earlier testing but current targets are Lun 0).

I also mispoke...this is actually Etherboot's gPXE's Iscsi logic, NOT fedora.

Here it is working now:

iSCSI (SCSI Data In)
Opcode: SCSI Data In (0x25)
Flags: 0x81
1...  = F: Final PDU in sequence
.0..  = A: Acknowledge not requested
 .0.. = O: No residual overflow occurred
 ..0. = U: No residual underflow occurred
 ...1 = S: Response contains SCSI status
Status: Good (0x00)
TotalAHSLength: 0x00
DataSegmentLength: 0x0008
LUN: 
InitiatorTaskTag: 0x0002
TargetTransferTag: 0x
StatSN: 0x0003
ExpCmdSN: 0x0001
MaxCmdSN: 0x000f
DataSN: 0x
BufferOffset: 0x
ResidualCount: 0x
Request in: 487
Time from request: 0.000332000 seconds
SCSI Payload (Read Capacity(10) Response Data)
[LUN: 0x]
[Command Set:Direct Access Device (0x00) (Using default commandset)]
[SBC Opcode: Read Capacity(10) (0x25)]
[Request in: 487]
[Response in: 489]
LBA: 41943039 (19 GB)
Block size in bytes: 512
SCSI Response (Read Capacity(10))
[LUN: 0x]
[Command Set:Direct Access Device (0x00) (Using default commandset)]
[SBC Opcode: Read Capacity(10) (0x25)]
[Request in: 487]
[Time from request: 0.000332000 seconds]
[Status: Good (0x00)]

Note the LUN change from 1 to 0.

Still confusing though...even looking a packet level, error codes are 
non-obvious...and also seems to violate RFCmaybe I'm reading an old version 
of the RFC or something.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] Move Fedora or Windows disk image to ZFS (iScsi Boot)

2010-07-18 Thread Packet Boy
I've found plenty of documentation on how to create a ZFS volume, iscsi share 
it, and then do a fresh install of Fedora or Windows on the volume.

What I can not find is how to take an existing Fedora image and copy the it's 
contents into a ZFS volume so that I can migrate this image from my existing 
Fedora iScsi target to a Solaris iScsi target (and of course get the advantages 
of having that disk image hosted on ZFS).

Do I just zfs create -V and then somehow dd the Fedora .img file on top of the 
newly created volume?

I've spent hours and have not been able to find any example on how to do this.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss