{"id":243,"date":"2018-08-28T13:00:51","date_gmt":"2018-08-28T13:00:51","guid":{"rendered":"http:\/\/byomkesh.in\/wordpress\/?p=243"},"modified":"2018-08-28T13:00:51","modified_gmt":"2018-08-28T13:00:51","slug":"hikvision-ip-camera-recording-using-nfs","status":"publish","type":"post","link":"http:\/\/byomkesh.in\/wordpress\/hikvision-ip-camera-recording-using-nfs\/","title":{"rendered":"Hikvision IP Camera recording using NFS"},"content":{"rendered":"<p><strong>For connecting Hikvision camera to NFS storage<\/strong><\/p>\n<p>In NFS server:<br \/>\ncreate a separate Logical Volume<\/p>\n<p>example:<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n<code> --- Logical volume ---<br \/>\nLV Name                \/dev\/vgcam\/lvcam1<br \/>\nVG Name                vgcam<br \/>\nLV UUID                lxdWGO-UqBv-Da0U-dYGM-hzgJ-Zwjp-bNDLXc<br \/>\nLV Write Access        read\/write<br \/>\nLV Status              available<br \/>\n# open                 1<br \/>\nLV Size                200.00 GB<br \/>\nCurrent LE             51200<br \/>\nSegments               1<br \/>\nAllocation             contiguous<br \/>\nRead ahead sectors     auto<br \/>\n- currently set to     256<br \/>\nBlock device           253:8<\/code><\/p>\n<p>&#8212; Logical volume &#8212;<br \/>\nLV Name \/dev\/vgcam\/lvcam2<br \/>\nVG Name vgcam<br \/>\nLV UUID Dei4BM-ePKK-383k-JO7t-F082-VBBJ-mEZQ3v<br \/>\nLV Write Access read\/write<br \/>\nLV Status available<br \/>\n# open 1<br \/>\nLV Size 200.00 GB<br \/>\nCurrent LE 51200<br \/>\nSegments 1<br \/>\nAllocation contiguous<br \/>\nRead ahead sectors auto<br \/>\n&#8211; currently set to 256<br \/>\nBlock device 253:9<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p><strong>Now mount these volumes to say \/cam1 \/cam2<\/strong><\/p>\n<p><code>\/dev\/mapper\/vgcam-lvcam1 on \/cam1 type xfs (rw,nosuid,nodev,noexec,relatime,attr2,noquota)<br \/>\n\/dev\/mapper\/vgcam-lvcam2 on \/cam2 type xfs (rw,nosuid,nodev,noexec,relatime,attr2,noquota)<\/code><\/p>\n<p><strong>create a data folder in each of these e.g.<\/strong><br \/>\n<code>mkdir \/cam1\/data<br \/>\nmkdir \/cam2\/data<\/code><\/p>\n<p><strong>create and export in nfs as follows where 192.168.123.1 and 192.168.123.2 are the IPs of Cameras<\/strong><br \/>\n<code><br \/>\n\/cam1\/data 192.168.123.1(async,insecure,rw,nohide)<br \/>\n\/cam2\/data 192.168.123.2(async,insecure,rw,nohide)<\/code><\/p>\n<p>restart nfs service<br \/>\nservice nfs restart<\/p>\n<p><strong>Now at the camera configure screen goto<br \/>\nStorage<br \/>\nStorage Management<br \/>\nNetHDD Tab<\/strong><\/p>\n<p>Enter serverIPAddress, FilePath, Type, MountingType,Username,Password e.g<br \/>\n192.168.123.250 \/cam2\/data NAS NFS nousername nopassword<br \/>\n<strong>Save it<\/strong><\/p>\n<p><a href=\"http:\/\/byomkesh.in\/wordpress\/wp-content\/uploads\/2018\/08\/hikvision-NAS-HDD.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-245\" src=\"http:\/\/byomkesh.in\/wordpress\/wp-content\/uploads\/2018\/08\/hikvision-NAS-HDD-300x161.jpg\" alt=\"\" width=\"300\" height=\"161\" srcset=\"http:\/\/byomkesh.in\/wordpress\/wp-content\/uploads\/2018\/08\/hikvision-NAS-HDD-300x161.jpg 300w, http:\/\/byomkesh.in\/wordpress\/wp-content\/uploads\/2018\/08\/hikvision-NAS-HDD-768x413.jpg 768w, http:\/\/byomkesh.in\/wordpress\/wp-content\/uploads\/2018\/08\/hikvision-NAS-HDD-1024x551.jpg 1024w, http:\/\/byomkesh.in\/wordpress\/wp-content\/uploads\/2018\/08\/hikvision-NAS-HDD.jpg 1188w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Next goto HDD Management Tab<\/strong><\/p>\n<p>HDD Management<br \/>\n<strong>It will show the attached drive as follows<\/strong><br \/>\n<code>HDD No. Capacity Freespace Status Type Property Progress<br \/>\n9 199.90GB 197.50GB Normal NAS R\/W<\/code><\/p>\n<p><strong>Select this and click on Format<\/strong><\/p>\n<p><strong>After completion for format command goto<br \/>\nSystem<br \/>\nMaintenance<br \/>\nReboot<\/strong><\/p>\n<p>After rebooting check recording under Playback Option.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For connecting Hikvision camera to NFS storage In NFS server: create a separate Logical Volume example: &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212; Logical volume &#8212; LV Name \/dev\/vgcam\/lvcam1 VG Name vgcam LV UUID lxdWGO-UqBv-Da0U-dYGM-hzgJ-Zwjp-bNDLXc LV Write Access read\/write LV Status available # open 1 LV Size 200.00 GB Current LE 51200 Segments 1 Allocation contiguous Read ahead sectors auto &hellip; <a href=\"http:\/\/byomkesh.in\/wordpress\/hikvision-ip-camera-recording-using-nfs\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Hikvision IP Camera recording using NFS<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-243","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/byomkesh.in\/wordpress\/wp-json\/wp\/v2\/posts\/243","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/byomkesh.in\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/byomkesh.in\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/byomkesh.in\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/byomkesh.in\/wordpress\/wp-json\/wp\/v2\/comments?post=243"}],"version-history":[{"count":2,"href":"http:\/\/byomkesh.in\/wordpress\/wp-json\/wp\/v2\/posts\/243\/revisions"}],"predecessor-version":[{"id":246,"href":"http:\/\/byomkesh.in\/wordpress\/wp-json\/wp\/v2\/posts\/243\/revisions\/246"}],"wp:attachment":[{"href":"http:\/\/byomkesh.in\/wordpress\/wp-json\/wp\/v2\/media?parent=243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/byomkesh.in\/wordpress\/wp-json\/wp\/v2\/categories?post=243"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/byomkesh.in\/wordpress\/wp-json\/wp\/v2\/tags?post=243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}