Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Nov 2014 08:50:14 +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
Subject:   Re: how to use ctld export iscsi lun for Xenserver 6.2?
Message-ID:  <20141122075014.GA3814@brick.home>
In-Reply-To: <547019AD.7090101@bjhit.com>
References:  <546EAC35.2070603@bjhit.com> <20141121163924.GA31068@brick.home> <547019AD.7090101@bjhit.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1122T1305, 全宏平 wrote:
> Thanks!
> On 2014/11/22 0:39, Edward Tomasz Napierała wrote:
> > 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.
> >> xenserver-create-iscsi-sr
> >> When I test create virtual disk,error displaying:
> > xenserver-create-vhd-failure
> > What exactly is the error?
> >
> >>   From Xenserver console,use lvs command I find the vhd created.
> > xenserver-from-cli-view-vhd
> > Does it work correctly?
> >
> >
> I have paste some picture in mail,you can't see any more attachment?

Ah, pictures.  Now I see it.  Still, I'm not sure what could be wrong
here.  Could you remove the "blocksize 4k" lines and try again?




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