From owner-freebsd-ports@FreeBSD.ORG Sun May 6 20:36:59 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D0FD91065673 for ; Sun, 6 May 2012 20:36:59 +0000 (UTC) (envelope-from ml@netfence.it) Received: from cp-out8.libero.it (cp-out8.libero.it [212.52.84.108]) by mx1.freebsd.org (Postfix) with ESMTP id 4CB5F8FC14 for ; Sun, 6 May 2012 20:36:59 +0000 (UTC) X-CTCH-Spam: Unknown X-CTCH-RefID: str=0001.0A0B0204.4FA6E0E6.0045,ss=1,re=0.000,fgs=0 X-libjamoibt: 1555 Received: from soth.ventu (151.41.166.231) by cp-out8.libero.it (8.5.133) id 4F96BDF001C4A57B; Sun, 6 May 2012 22:36:54 +0200 Received: from alamar.ventu (alamar.ventu [10.1.2.18]) by soth.ventu (8.14.4/8.14.4) with ESMTP id q46KaorM096947; Sun, 6 May 2012 22:36:50 +0200 (CEST) (envelope-from ml@netfence.it) Message-ID: <4FA6E0E2.2090700@netfence.it> Date: Sun, 06 May 2012 22:36:50 +0200 From: Andrea Venturoli User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:12.0) Gecko/20120429 Thunderbird/12.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org, aoyama@peach.ne.jp Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.73 on 10.1.2.13 Cc: Subject: iSCSI for tape X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 May 2012 20:36:59 -0000 Hello. I've got a box with bacula-sd which should use a tape drive; unfortunately, there's no physical space for such a drive on that box, so I'm considering iSCSI to let it access a tape on another box. Is this possible? While doing some tests, I installed istgt on the target box (7.4/i386) and I have this in /usr/local/etc/istgt/istgt.conf: > [LogicalUnit1] > Comment "Pass-through Tape" > TargetName tape1 > TargetAlias "Pass Through Tape" > Mapping PortalGroup1 InitiatorGroup1 > AuthMethod CHAP > AuthGroup AuthGroup1 > UnitType pass > LUN0 Device /dev/sa0 On the initianting box (9.0/amd64), I put the following in /etc/iscsi.conf: > itape1 { > authMethod =CHAP > chapIName =xxxxxx > chapSecret =yyyyyyyyyyyyy > initiatorname =zzzzz > TargetName =jjjjj:tape1 > TarrgetAddress=jjjjj:3260,1 > } Now: > # iscontrol -d -t jjjjj > TargetName=jjjjj:tape1 > TargetAddress=a.b.c.d:3260,1 > #iscontrol -c /etc/iscsi.conf -n itape1 -t jjjjj& > ls /dev/ | grep iscsi > iscsi > iscsi0 > # mt -f /dev/iscsi status > mt: Device not configured > # mt -f /dev/iscsi0 status > mt: Inappropriate ioctl for device Am I doing something wrong or is this not implemented? bye & Thanks av.