{"id":354,"date":"2019-03-12T11:15:37","date_gmt":"2019-03-12T14:15:37","guid":{"rendered":"http:\/\/greenoperations.com.br\/greenblog\/?p=354"},"modified":"2019-06-17T15:52:46","modified_gmt":"2019-06-17T18:52:46","slug":"serie-rockstor-3-de-4-criando-um-compartilhamento-windows","status":"publish","type":"post","link":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/2019\/03\/12\/serie-rockstor-3-de-4-criando-um-compartilhamento-windows\/","title":{"rendered":"S\u00e9rie RockStor (3 de 4), Criando um Compartilhamento Windows"},"content":{"rendered":"<p style=\"text-align: justify;\">E finalmente chegou a hora de criarmos nosso primeiro compartilhamento, neste artigo vamos criar um compartilhamento Windows (ou CIFS), muito usado e por isso iremos abord\u00e1-lo. No pr\u00f3ximo artigo trataremos do armazenamento NFS (Linux e Servidores) e AFP (arquivamento Apple). Ent\u00e3o vamos ao que interessa, gravar e acessar dados!<\/p>\n<p style=\"text-align: justify;\">Primeiramente precisamos acessar a interface web do nosso servidor (j\u00e1 demonstrado no artigo anterior, <a href=\"https:\/\/greenoperations.com.br\/greenblog\/index.php\/2019\/03\/11\/serie-rockstor-2-de-4-instalando\/\" target=\"_blank\" rel=\"noopener noreferrer\">aqui<\/a>), ap\u00f3s entrar com seu usu\u00e1rio e senha voc\u00ea ser\u00e1 direcionado para a Dashboard como padr\u00e3o, ent\u00e3o basta acessar o menu <strong>Storage<\/strong> e em seguida <strong>Pools<\/strong>, como na imagem abaixo:<\/p>\n<p style=\"text-align: justify;\"><a href=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/01-1.png\" target=\"_blank\" rel=\"attachment noopener wp-att-359 noreferrer\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-359 size-full\" src=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/01-1.png\" alt=\"\" width=\"890\" height=\"541\" srcset=\"https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/01-1.png 890w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/01-1-300x182.png 300w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/01-1-768x467.png 768w\" sizes=\"(max-width: 890px) 100vw, 890px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_361\" aria-describedby=\"caption-attachment-361\" style=\"width: 853px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/02-1.png\" target=\"_blank\" rel=\"attachment noopener wp-att-361 noreferrer\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-361 size-full\" src=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/02-1.png\" alt=\"\" width=\"853\" height=\"528\" srcset=\"https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/02-1.png 853w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/02-1-300x186.png 300w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/02-1-768x475.png 768w\" sizes=\"(max-width: 853px) 100vw, 853px\" \/><\/a><figcaption id=\"caption-attachment-361\" class=\"wp-caption-text\">Basta clicar no bot\u00e3o<strong> Create Pool<\/strong>, e preencher como na imagem seguinte<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_362\" aria-describedby=\"caption-attachment-362\" style=\"width: 700px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/03-1.png\" target=\"_blank\" rel=\"attachment noopener wp-att-362 noreferrer\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-362 size-large\" src=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/03-1-1024x603.png\" alt=\"\" width=\"700\" height=\"412\" srcset=\"https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/03-1-1024x603.png 1024w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/03-1-300x177.png 300w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/03-1-768x452.png 768w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/03-1.png 1124w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/a><figcaption id=\"caption-attachment-362\" class=\"wp-caption-text\">Como \u00e9 poss\u00edvel ver circulados na imagem, optei por criar um armazenamento em <strong>Raid 1<\/strong> (discos espelhados, o que dar\u00e1 maior toler\u00e2ncia a falhas), ap\u00f3s escolhi os meus dois discos de 40GB cada, dedicados ao armazenamento de dados.<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">Observe que seu array de discos dever\u00e1 ser de acordo com a sua necessidade, observe tamb\u00e9m que o espa\u00e7o dispon\u00edvel para armazenamento vai depender do tipo de Raid (ou n\u00e3o escolhido).<\/p>\n<figure id=\"attachment_365\" aria-describedby=\"caption-attachment-365\" style=\"width: 700px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/04-1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-365 size-large\" src=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/04-1-1024x328.png\" alt=\"\" width=\"700\" height=\"224\" srcset=\"https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/04-1-1024x328.png 1024w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/04-1-300x96.png 300w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/04-1-768x246.png 768w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/04-1.png 1109w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/a><figcaption id=\"caption-attachment-365\" class=\"wp-caption-text\">Agora nosso array est\u00e1 dispon\u00edvel e j\u00e1 listado no menu Pools.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_366\" aria-describedby=\"caption-attachment-366\" style=\"width: 871px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/05.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-366 size-full\" src=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/05.png\" alt=\"\" width=\"871\" height=\"550\" srcset=\"https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/05.png 871w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/05-300x189.png 300w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/05-768x485.png 768w\" sizes=\"(max-width: 871px) 100vw, 871px\" \/><\/a><figcaption id=\"caption-attachment-366\" class=\"wp-caption-text\">Agora vamos criar o cont\u00eainer de compartilhamento, e definir a cota de armazenamento que estar\u00e1 dispon\u00edvel no mesmo, para isso clique em <strong>Storage<\/strong> e depois em <strong>Shares.<\/strong><\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_367\" aria-describedby=\"caption-attachment-367\" style=\"width: 700px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/06-1.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-367 size-large\" src=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/06-1-1024x532.png\" alt=\"\" width=\"700\" height=\"364\" srcset=\"https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/06-1-1024x532.png 1024w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/06-1-300x156.png 300w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/06-1-768x399.png 768w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/06-1-325x170.png 325w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/06-1.png 1170w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/a><figcaption id=\"caption-attachment-367\" class=\"wp-caption-text\">Preencha os dados de acordo com o exemplo e a seu gosto, no meu caso no menu <strong>Size<\/strong> optei por deixar todo o armazenamento (40GB) para o compartilhamento. Logo ap\u00f3s confirmar clicando em <strong>Submit<\/strong>, ser\u00e1 poss\u00edvel ver o compartilhamento listado.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_369\" aria-describedby=\"caption-attachment-369\" style=\"width: 913px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/08-1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-369 size-full\" src=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/08-1.png\" alt=\"\" width=\"913\" height=\"575\" srcset=\"https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/08-1.png 913w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/08-1-300x189.png 300w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/08-1-768x484.png 768w\" sizes=\"(max-width: 913px) 100vw, 913px\" \/><\/a><figcaption id=\"caption-attachment-369\" class=\"wp-caption-text\">Agora vamos configurar as permiss\u00f5es e ativar o servi\u00e7o CIFS clicando novamente em <strong>Storage<\/strong> e depois em Samba. Ative o servi\u00e7o clicando no bot\u00e3o interruptor que ser\u00e1 exibido e depois clique em <strong>Add Samba Export<\/strong><\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_370\" aria-describedby=\"caption-attachment-370\" style=\"width: 995px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/09-1.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-370 size-full\" src=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/09-1.png\" alt=\"\" width=\"995\" height=\"716\" srcset=\"https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/09-1.png 995w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/09-1-300x216.png 300w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/09-1-768x553.png 768w\" sizes=\"(max-width: 995px) 100vw, 995px\" \/><\/a><figcaption id=\"caption-attachment-370\" class=\"wp-caption-text\">Nesta tela basta preencher<strong> Shares to export<\/strong> com o compartilhamento que acabamos de criar, <strong>Admin Users<\/strong> pode ser usado o usu\u00e1rio que j\u00e1 criamos ou caso queira tamb\u00e9m \u00e9 poss\u00edvel criar novos usu\u00e1rios e definir permiss\u00f5es atrav\u00e9s da pr\u00f3pria ferramenta web. Clique <strong>Submit<\/strong> e pronto! agora \u00e9 hora de conectar nossos clientes.<\/figcaption><\/figure>\n<p>No exemplo estou usando o Windows 7 em uma m\u00e1quina cliente onde farei o teste por\u00e9m pode ser tamb\u00e9m acessado atrav\u00e9s do linux ou MacOS pois ambos tem acesso a compartilhamentos Windows atrav\u00e9s do samba. Vamos l\u00e1!<\/p>\n<figure id=\"attachment_372\" aria-describedby=\"caption-attachment-372\" style=\"width: 880px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/10.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-372 size-full\" src=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/10.png\" alt=\"\" width=\"880\" height=\"256\" srcset=\"https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/10.png 880w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/10-300x87.png 300w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/10-768x223.png 768w\" sizes=\"(max-width: 880px) 100vw, 880px\" \/><\/a><figcaption id=\"caption-attachment-372\" class=\"wp-caption-text\">Digite o endere\u00e7o: <strong>\\\\ip-do-seu-servidor<\/strong> na barra de endere\u00e7os do Windows Explorer, ou no Menu R\u00e1pido executar.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_377\" aria-describedby=\"caption-attachment-377\" style=\"width: 730px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/Captura-de-Tela_selecionar-\u00e1rea_20190313151606.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-377 size-full\" src=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/Captura-de-Tela_selecionar-\u00e1rea_20190313151606.png\" alt=\"\" width=\"730\" height=\"441\" srcset=\"https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/Captura-de-Tela_selecionar-\u00e1rea_20190313151606.png 730w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/Captura-de-Tela_selecionar-\u00e1rea_20190313151606-300x181.png 300w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><\/a><figcaption id=\"caption-attachment-377\" class=\"wp-caption-text\">Agora basta entrar com as credenciais usadas no compartilhamento que criamos.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_374\" aria-describedby=\"caption-attachment-374\" style=\"width: 829px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/12-1.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-374 size-full\" src=\"http:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/12-1.png\" alt=\"\" width=\"829\" height=\"638\" srcset=\"https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/12-1.png 829w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/12-1-300x231.png 300w, https:\/\/greenoperations.com.br\/greenblog\/wp-content\/uploads\/2019\/03\/12-1-768x591.png 768w\" sizes=\"(max-width: 829px) 100vw, 829px\" \/><\/a><figcaption id=\"caption-attachment-374\" class=\"wp-caption-text\">Como pode ver o compartilhamento j\u00e1 est\u00e1 funcional, no meu caso mapeei e j\u00e1 estou fazendo um teste de c\u00f3pia e leitura de arquivo .iso<\/figcaption><\/figure>\n<p>Como podemos ver, \u00e9 muito simples e muito r\u00e1pido o compartilhamento de dados para m\u00e1quinas Windows com RockStor, no pr\u00f3ximo artigo vamos criar compartilhamentos NFS (clique <a href=\"https:\/\/greenoperations.com.br\/greenblog\/index.php\/2019\/03\/13\/serie-rockstor-4-de-4-criando-um-nfs-e-afp-apple\/\" target=\"_blank\" rel=\"noopener noreferrer\">aqui<\/a> para acessar), at\u00e9 l\u00e1!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>E finalmente chegou a hora de criarmos nosso primeiro compartilhamento, neste artigo vamos criar um compartilhamento Windows (ou CIFS), muito usado e por isso iremos abord\u00e1-lo. No pr\u00f3ximo artigo trataremos do armazenamento NFS (Linux e Servidores) e AFP (arquivamento Apple). Ent\u00e3o vamos ao que interessa, gravar e acessar dados! Primeiramente precisamos acessar a interface web [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":302,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/posts\/354"}],"collection":[{"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/comments?post=354"}],"version-history":[{"count":14,"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/posts\/354\/revisions"}],"predecessor-version":[{"id":444,"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/posts\/354\/revisions\/444"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/media\/302"}],"wp:attachment":[{"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/media?parent=354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/categories?post=354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenoperations.com.br\/greenblog\/index.php\/wp-json\/wp\/v2\/tags?post=354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}