{"id":256141,"date":"2022-10-07T02:49:44","date_gmt":"2022-10-06T18:49:44","guid":{"rendered":"https:\/\/blog.zhenglei.net\/?p=256141"},"modified":"2022-10-07T02:51:48","modified_gmt":"2022-10-06T18:51:48","slug":"export-disk-volume-from-truenas-via-iscsi-protocol","status":"publish","type":"post","link":"https:\/\/blog.zhenglei.net\/?p=256141","title":{"rendered":"Export disk volume from TrueNas via iSCSI protocol"},"content":{"rendered":"\n<p>We can export an virtual volume (zvol) on TrueNas, thanks to the iSCSI protocol.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-dark-gray-color has-text-color has-large-font-size\">Storage<\/p>\n\n\n\n<p>Create a pool<\/p>\n\n\n\n<p>Create a zvol from the pool<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-large-font-size\">Sharing \/ Block\/Shars (iscsi)<\/p>\n\n\n\n<p>Target Global Configuration:        Modify iqn if necessary<\/p>\n\n\n\n<p>Portals:                                         Add a portal with IP 0.0.0.0<\/p>\n\n\n\n<p>Initiators Groups:                          Add a initiator with feature of &#8220;Allow All initiators&#8221;<\/p>\n\n\n\n<p>Authorized Access:                      No modification<\/p>\n\n\n\n<p>Targets:                                        Add a target with the above  portal  id, initiator  id<\/p>\n\n\n\n<p>Extents:                                       Add a extent with created pool\/zvol<\/p>\n\n\n\n<p>Associated Targets:                    Add an associated target with created target and extent<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-large-font-size\">Services<\/p>\n\n\n\n<p>Launch iscsi service, and start it automaticlly<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We can export an virtual volume (zvol) o &hellip; <a href=\"https:\/\/blog.zhenglei.net\/?p=256141\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[193,197],"tags":[142,387],"class_list":["post-256141","post","type-post","status-publish","format-standard","hentry","category-cloud-2","category-iscsi","tag-nas","tag-truenas"],"_links":{"self":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/256141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=256141"}],"version-history":[{"count":3,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/256141\/revisions"}],"predecessor-version":[{"id":256144,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/256141\/revisions\/256144"}],"wp:attachment":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=256141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=256141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=256141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}