{"id":3379,"date":"2017-03-10T18:43:05","date_gmt":"2017-03-10T18:43:05","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=3379"},"modified":"2017-03-10T18:43:05","modified_gmt":"2017-03-10T18:43:05","slug":"create-swap-file-san-running-freenas-9-3","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2017\/03\/10\/create-swap-file-san-running-freenas-9-3\/","title":{"rendered":"Create swap file for SAN running FreeNAS 9.3"},"content":{"rendered":"<p>Some instances, the iscsi connection fails. This may be due to swap space. Adding a swap file can help. How to create a swap file. <\/p>\n<p>Pre-9.3 NAS loses iSCSI or NFS\/CIFS connectivity arbitrarily<\/p>\n<p>From NAS \/var\/log\/messages:<br \/>\nAug 15 22:24:01 nas kernel: pid 29173 (smbd), uid 65534, was killed: out of swap space<br \/>\nAug 15 22:27:11 nas kernel: arp: 10.132.29.129 moved from 00:25:90:a1:47:6e to 3e:c6:19:01:9d:8d on em0<br \/>\nAug 15 22:27:16 nas kernel: arp: 10.132.29.129 moved from 3e:c6:19:01:9d:8d to 00:25:90:a1:47:6e on em0<br \/>\nAug 15 22:35:01 nas kernel: pid 29365 (smbd), uid 65534, was killed: out of swap space<br \/>\nAug 15 22:44:57 nas kernel: pid 29453 (smbd), uid 65534, was killed: out of swap space<\/p>\n<p>Cause:<br \/>\nNo swap file.<\/p>\n<p>Resolution:<br \/>\nCreated a swap file. <\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\ndd if=\/dev\/zero of=\/mnt\/vol1\/swap0 bs=1m count=8192;\nchmod 0600 \/mnt\/vol1\/swap0;\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n&#x5B;root@nas] \/mnt\/vol1# mdconfig -a -t vnode -f \/mnt\/vol1\/swap0\nmd3\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n&#x5B;root@nas] swapon \/dev\/md3\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Some instances, the iscsi connection fails. This may be due to swap space. Adding a swap file can help. How to create a swap file. Pre-9.3 NAS loses iSCSI or NFS\/CIFS connectivity arbitrarily From NAS \/var\/log\/messages: Aug 15 22:24:01 nas kernel: pid 29173 (smbd), uid 65534, was killed: out of swap space Aug 15 22:27:11 &#8230; <a title=\"Create swap file for SAN running FreeNAS 9.3\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2017\/03\/10\/create-swap-file-san-running-freenas-9-3\/\" aria-label=\"Read more about Create swap file for SAN running FreeNAS 9.3\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[],"class_list":["post-3379","post","type-post","status-publish","format-standard","hentry","category-freenas"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=3379"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3379\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=3379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=3379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=3379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}