
{"id":95,"date":"2018-04-14T18:28:13","date_gmt":"2018-04-14T21:28:13","guid":{"rendered":"http:\/\/wordpress.rodrigosilvaesilva.com.br\/?p=95"},"modified":"2018-04-14T18:28:13","modified_gmt":"2018-04-14T21:28:13","slug":"criando-volume-com-lvm","status":"publish","type":"post","link":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/2018\/04\/14\/criando-volume-com-lvm\/","title":{"rendered":"Criando volume com LVM"},"content":{"rendered":"<p>Listando novo disco adicionado Vmware<\/p>\n<pre class=\"theme:shell-default lang:sh decode:true\">[root@localhost ~]# fdisk -l\n\nDisk \/dev\/sdc: 53.7 GB, 53687091200 bytes, 104857600 sectors\nUnits = sectors of 1 * 512 = 512 bytes\nSector size (logical\/physical): 512 bytes \/ 512 bytes\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\n<\/pre>\n<p>Criando PV<\/p>\n<pre class=\"theme:shell-default lang:sh decode:true\">[root@localhost ~]# pvcreate \/dev\/sdc\nPhysical volume \"\/dev\/sdc\" successfully created\n<\/pre>\n<p>Criar VG<\/p>\n<pre class=\"theme:shell-default lang:sh decode:true\">[root@localhost ~]# vgcreate VGBKP \/dev\/sdc\nVolume group \"VGBKP\" successfully created\n<\/pre>\n<p>Criar LV<\/p>\n<pre class=\"theme:shell-default lang:sh decode:true\">[root@localhost ~]# lvcreate -l +100%FREE -n LVBKP VGBKP\nLogical volume \"LVBKP\" created.<\/pre>\n<p>Formatar xfs<\/p>\n<pre class=\"theme:shell-default lang:sh decode:true\">[root@localhost ~]# mkfs.xfs \/dev\/VGBKP\/LVBKP\nmeta-data=\/dev\/VGBKP\/LVBKP       isize=256    agcount=4, agsize=3276544 blks\n         =                       sectsz=512   attr=2, projid32bit=1\n         =                       crc=0        finobt=0\ndata     =                       bsize=4096   blocks=13106176, imaxpct=25\n         =                       sunit=0      swidth=0 blks\nnaming   =version 2              bsize=4096   ascii-ci=0 ftype=0\nlog      =internal log           bsize=4096   blocks=6399, version=2\n         =                       sectsz=512   sunit=0 blks, lazy-count=1\nrealtime =none                   extsz=4096   blocks=0, rtextents=0\n<\/pre>\n<p>Criar diret\u00f3rio BKP<\/p>\n<pre class=\"theme:shell-default lang:sh decode:true\">[root@localhost ~]# mkdir -pv \/BKP\nmkdir: created directory \u2018\/BKP\u2019\n<\/pre>\n<p>Adicionar ponto de montagem no fstab<\/p>\n<pre class=\"theme:shell-default lang:sh decode:true\">[root@localhost ~]# vim \/etc\/fstab\n\n\/dev\/VGBKP\/LVBKP      \/BKP     xfs     defaults 0 0<\/pre>\n<p>Montando parti\u00e7\u00e3o<\/p>\n<pre class=\"theme:shell-default lang:sh decode:true\">[root@localhost ~]# mount -av\n\/                        : ignored\n\/boot                    : already mounted\nswap                     : ignored\n\/u01                     : already mounted\nmount: \/BKP does not contain SELinux labels.\n       You just mounted an file system that supports labels which does not\n       contain labels, onto an SELinux box. It is likely that confined\n       applications will generate AVC messages and not be allowed access to\n       this file system.  For more details see restorecon(8) and mount(8).\n\/BKP                     : successfully mounted\n<\/pre>\n<p>Visualizando a parti\u00e7\u00e3o \/BKP montada<\/p>\n<pre class=\"theme:shell-default lang:sh decode:true\">[root@localhost ~]# df -h \/BKP\nFilesystem               Size  Used Avail Use% Mounted on\n\/dev\/mapper\/VGBKP-LVBKP   50G   33M   50G   1% \/BKP<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Listando novo disco adicionado Vmware [root@localhost ~]# fdisk -l Disk \/dev\/sdc: 53.7 GB, 53687091200 bytes, 104857600 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical\/physical): 512 bytes \/ 512 bytes I\/O size (minimum\/optimal): 512 bytes \/ 512 bytes Criando PV [root@localhost ~]# pvcreate \/dev\/sdc Physical volume &#8220;\/dev\/sdc&#8221; successfully created Criar&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-95","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/posts\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=95"}],"version-history":[{"count":1,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/posts\/95\/revisions"}],"predecessor-version":[{"id":1639,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/posts\/95\/revisions\/1639"}],"wp:attachment":[{"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}