{"id":1126,"date":"2020-06-08T00:23:27","date_gmt":"2020-06-07T21:23:27","guid":{"rendered":"http:\/\/www.plugged.in\/?p=1126"},"modified":"2020-06-08T00:23:28","modified_gmt":"2020-06-07T21:23:28","slug":"shared-lvm-iscsi-server-and-client-configuration-for-centos","status":"publish","type":"post","link":"https:\/\/www.veriteknik.net.tr\/en\/shared-lvm-iscsi-server-and-client-configuration-for-centos\/","title":{"rendered":"Shared LVM iSCSI Server and Client configuration for CentOS"},"content":{"rendered":"<p>Target: (Server with storage): 10.10.10.2\/24<br \/>Client: 10.10.10.1\/24<\/p>\n<p><strong>Target:<\/strong><\/p>\n<p>Install iSCSI Utils if not available<\/p>\n\n\n<pre class=\"wp-block-code\"><code><\/code><\/pre>\n\n\n\n<p>Edit targets.conf<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vi \/etc\/tgt\/targets.conf<\/code><\/pre>\n\n\n\n<p>Paste the configuration below, change target name based on your needs<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>backing-store \/dev\/sdc1 \ninitiator-address 172.100.100.2 \n# add more initiators if you need \n#initiator-address 172.50.50.2 \n#incominguser username password<\/code><\/pre>\n\n\n\n<p>Enable tgtd service<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chkconfig tgtd on<\/code><\/pre>\n\n\n\n<p>Start the service<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>service tgtd start<\/code><\/pre>\n\n\n\n<p>Note: If you don&#8217;t want any volume group to be automatically recognized by the operating system of the target, please filter the volume group to be seen on boot.<br>Edit \/etc\/lvm\/lvm.conf and add this global_filter<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>global_filter = &#91; \"a|^\/dev\/sdc1$|\", \"r\/.*\/\" ]<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Target: (Server with storage): 10.10.10.2\/24Client: 10.10.10.1\/24 Target: Install iSCSI Utils if not available Edit targets.conf Paste the configuration below, change target name based on your needs Enable tgtd service Start the service Note: If you don&#8217;t want any volume group to be automatically recognized by the operating system of the target, please filter the volume [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[370,386],"tags":[],"yst_prominent_words":[813,2395,860,2059,2394,2393],"class_list":["post-1126","post","type-post","status-publish","format-standard","hentry","category-linux","category-network"],"jetpack_featured_media_url":"","uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"ckaraca","author_link":"https:\/\/www.veriteknik.net.tr\/en\/author\/ckaraca\/"},"uagb_comment_info":0,"uagb_excerpt":"Target: (Server with storage): 10.10.10.2\/24Client: 10.10.10.1\/24 Target: Install iSCSI Utils if not available Edit targets.conf Paste the configuration below, change target name based on your needs Enable tgtd service Start the service Note: If you don&#8217;t want any volume group to be automatically recognized by the operating system of the target, please filter the volume&hellip;","_links":{"self":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/posts\/1126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/comments?post=1126"}],"version-history":[{"count":1,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/posts\/1126\/revisions"}],"predecessor-version":[{"id":7666,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/posts\/1126\/revisions\/7666"}],"wp:attachment":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/media?parent=1126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/categories?post=1126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/tags?post=1126"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/yst_prominent_words?post=1126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}