how to create iscsi volume for datastore use in esxi

Discussion in 'Solaris, Nexenta, OpenIndiana, and napp-it' started by epicurean, Mar 1, 2019.

  1. epicurean

    epicurean Member

    Joined:
    Sep 29, 2014
    Messages:
    543
    Likes Received:
    20
    I have created a Z2 pool and a ZFS file system in Napp it (VM in esxi).
    How do I enable it as a iscsi device for use as a datastore?
    There were very clear instructions for synology which I could follow, but my newbie brain cannot figure out how to do so in napp it.

    When I click to show unhide iscsi, and "set" property, I get an error about "iscsi target service" must be online. But I cannot figure out from the any of the Napp It menus

    Much thanks
     
    #1
  2. gea

    gea Well-Known Member

    Joined:
    Dec 31, 2010
    Messages:
    2,261
    Likes Received:
    750
    You must first enable the Comstar and Target service in menu Services > Comstar

    Then you can enable an iSCSI target as a filesystem property in menu ZFS Filesystems
    (or use the whole Comstar feature set in menu Comstar ex for Chap authentication)

    That said, I much prefer NFS for ESXi storage
    (and share in parallel via SMB to use Windows "previous versions for backup/copy/clone)
     
    #2
  3. epicurean

    epicurean Member

    Joined:
    Sep 29, 2014
    Messages:
    543
    Likes Received:
    20
    Hi Gea,
    If I use NFS, would the same datastore be presented to all my esxi servers , just like iscsi?
     
    #3
  4. dswartz

    dswartz Active Member

    Joined:
    Jul 14, 2011
    Messages:
    376
    Likes Received:
    28
    There is no cluster issue with NFS. i.e. you can mount the datastore to as many esxi servers as you wish.
     
    #4
  5. CreoleLakerFan

    CreoleLakerFan Active Member

    Joined:
    Oct 29, 2013
    Messages:
    466
    Likes Received:
    169
    Seconding NFS for ESXi data stores. It's much simpler and generally better performing.
     
    #5
  6. BoredSysadmin

    BoredSysadmin Active Member

    Joined:
    Mar 2, 2019
    Messages:
    278
    Likes Received:
    62
    Yes, absolutely.

    Thirdly about NFS much easier to manage, about the same performance, but in some cases, like Freenas, for example, could offer "hardware" acceleration with iSCSI, but not with NFS (some $$$ SAN arrays, like NetApp FASxxxx, offer same with NFS)
    This is not that big of the deal but could help a lot with cloning of images and few other things.
    More info on the awesome Duncan's blog: vStorage APIs for Array Integration aka VAAI - Yellow Bricks

    Not sure if Napp-It does it or not. rtfm :)
     
    #6
    Last edited: Mar 5, 2019
  7. epicurean

    epicurean Member

    Joined:
    Sep 29, 2014
    Messages:
    543
    Likes Received:
    20
    Thank you everyone for your inputs!
    I will try the NFS way
     
    #7
  8. gea

    gea Well-Known Member

    Joined:
    Dec 31, 2010
    Messages:
    2,261
    Likes Received:
    750
    For NFS, start with permissions set recursively to everyone@=modify, place all VMs onto one NFS filesystem and share in parallel via SMB for previous versions and copy/clone/backup.
     
    #8
  9. epicurean

    epicurean Member

    Joined:
    Sep 29, 2014
    Messages:
    543
    Likes Received:
    20

    Hi Gea,
    Thanks again. Isn't the permissions for the NFS already be default allows everyone@modify?

    If not, where do I change that?
     
    #9
  10. gea

    gea Well-Known Member

    Joined:
    Dec 31, 2010
    Messages:
    2,261
    Likes Received:
    750
    If you create a filesystem in napp-it. permissions is set to everyone@=modify with inheritance enabled to files and folders and ZFS properties aclinheritance/aclmode=pass-through.

    If you just set nfs share=on, everything is fine

    but:
    If there is a chmod command to Unix permissions, inheritance is disabled as classic Unix permissions do not support them. Any newly created files afterwards may be only accessable by the creating user. Especially when you share via SMB and NFS this may become a problem.

    Access via NFS happens either by the uid of the accessing process/user or user nobody (depends on client OS) while access via SMB is by the authenticated user.

    How to solve if permissions are screwed up
    - reset permissions recursively to everyone@ either via Windows/SMB or napp-it in the ACL on folders menu > reset ACL

    In the same menu you can set aclmode to restricted what means you cannot modify permissions via chmod or NFS.
     
    #10
Similar Threads: create iscsi
Forum Title Date
Solaris, Nexenta, OpenIndiana, and napp-it rsync or cp creates trivial ACLs on the destination Nov 21, 2019
Solaris, Nexenta, OpenIndiana, and napp-it Create backupsnaps with incremental ZFS replications Mar 22, 2017
Solaris, Nexenta, OpenIndiana, and napp-it ZFS ACL: user can create files but not read? Nov 20, 2016
Solaris, Nexenta, OpenIndiana, and napp-it How to create a bootable Solaris 11 USB? Jun 14, 2013
Solaris, Nexenta, OpenIndiana, and napp-it Solaris 11.1 - basic commands, zfs mandatory create parameters, LSI HBA hot-swap Jan 2, 2013

Share This Page