how to use ctld export iscsi lun for Xenserver 6.2?

Edward Tomasz Napierała trasz at FreeBSD.org
Fri Nov 21 16:39:30 UTC 2014


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 at 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 at 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?



More information about the freebsd-scsi mailing list