Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Nov 2014 17:39:24 +0100
From:      Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= <trasz@FreeBSD.org>
To:        =?utf-8?B?5YWo5a6P5bmz?= <quan_hping@bjhit.com>
Cc:        freebsd-scsi@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: how to use ctld export iscsi lun for Xenserver 6.2?
Message-ID:  <20141121163924.GA31068@brick.home>
In-Reply-To: <546EAC35.2070603@bjhit.com>
References:  <546EAC35.2070603@bjhit.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1121T1106, 全宏平 wrote:
> Hi,everybody!
> I'm new to freebsd,I'm first use maillist.I'm Chinese,so English is not 
> my mother language.
> Recently I know Freebsd native support ISCSI by ctld.I use samsung 840 
> evo SSD disk for ISCSI lun.
> *My partition schema is GPT,like below:*
> root@freebsd10ssd:~ # gpart show ada0
> =>        34  1953525101  ada0  GPT  (932G)
>            34         128     1  freebsd-boot  (64K)
>           162   209715072     2  freebsd-ufs  (100G)
>     209715234   104857600     3  freebsd-ufs  (50G)
>     314572834           6        - free -  (3.0K)
>     314572840   524288000     4  freebsd-ufs  (250G)
>     838860840   419430400     5  freebsd-zfs  (200G)
>    1258291240   695233888     6  freebsd-ufs  (332G)
>    1953525128           7        - free -  (3.5K)
> *My ctl.conf file like this:*
> root@freebsd10ssd:~ # cat /etc/ctl.conf
> #auth-group ag0 {
> #    chap username1 secretsecret
> #    chap username2 anothersecret
> #}
> portal-group san {
>          discovery-auth-group no-authentication
>          listen 172.19.22.12
> }
> 
> target iqn.2014-11.local.heetian:target0 {
>          auth-group no-authentication
> #    auth-group ag0
>          portal-group san
>          lun 0 {
>                  path /dev/ada0p6
>                  blocksize 4K
> #                size 100G
>          }
> }
> 
>  From Xencenter add new-sr "Software iSCSI" sucessful.
> 
> When I test create virtual disk,error displaying:

What exactly is the error?

>  From Xenserver console,use lvs command I find the vhd created.

Does it work correctly?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141121163924.GA31068>