{"id":2914,"date":"2014-03-17T21:28:49","date_gmt":"2014-03-17T13:28:49","guid":{"rendered":"http:\/\/rmohan.com\/?p=2914"},"modified":"2014-03-17T21:28:49","modified_gmt":"2014-03-17T13:28:49","slug":"redhat-enterprise-linux-7-0-xfs-file-system","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=2914","title":{"rendered":"RedHat Enterprise Linux 7.0 XFS File System"},"content":{"rendered":"<p>[root@localhost ~]# pvcreate \/dev\/sdb \/dev\/sdc \/dev\/sdd<br \/>\nPhysical volume &#8220;\/dev\/sdb&#8221; successfully created<br \/>\nPhysical volume &#8220;\/dev\/sdc&#8221; successfully created<br \/>\nPhysical volume &#8220;\/dev\/sdd&#8221; successfully created<\/p>\n<p>&nbsp;<br \/>\npvs<br \/>\n[root@localhost ~]# pvs<br \/>\nPV VG Fmt Attr PSize PFree<br \/>\n\/dev\/sda2 rhel lvm2 a&#8211; 39.51g 0<br \/>\n\/dev\/sdb lvm2 a&#8211; 20.00g 20.00g<br \/>\n\/dev\/sdc lvm2 a&#8211; 20.00g 20.00g<br \/>\n\/dev\/sdd lvm2 a&#8211; 20.00g 20.00g<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>vgcreate backupvg \/dev\/sdb<br \/>\n[root@localhost ~]# vgcreate backupvg \/dev\/sdb<br \/>\nVolume group &#8220;backupvg&#8221; successfully created<\/p>\n<p>&nbsp;<\/p>\n<p>vgs<\/p>\n<p>[root@localhost ~]# vgs<br \/>\nVG #PV #LV #SN Attr VSize VFree<br \/>\nbackupvg 1 0 0 wz&#8211;n- 20.00g 20.00g<br \/>\nrhel 1 2 0 wz&#8211;n- 39.51g 0<\/p>\n<p>&nbsp;<\/p>\n<p>lvcreate -n lv_optback -L +5G backupvg<\/p>\n<p>[root@localhost ~]# lvcreate -n lv_optback -L +5G backupvg<br \/>\nLogical volume &#8220;lv_optback&#8221; created<\/p>\n<p>&nbsp;<br \/>\nlvcreate -n lv_varback -L +5G backupvg<\/p>\n<p>[root@localhost ~]# lvcreate -n lv_varback -L +5G backupvg<br \/>\nLogical volume &#8220;lv_varback&#8221; created<br \/>\n[root@localhost ~]# mkfs.xfs \/dev\/backupvg\/lv_optback<br \/>\nmeta-data=\/dev\/backupvg\/lv_optback isize=256 agcount=4, agsize=327680 blks<br \/>\n= sectsz=512 attr=2, projid32bit=1<br \/>\n= crc=0<br \/>\ndata = bsize=4096 blocks=1310720, imaxpct=25<br \/>\n= sunit=0 swidth=0 blks<br \/>\nnaming =version 2 bsize=4096 ascii-ci=0<br \/>\nlog =internal log bsize=4096 blocks=12800, version=2<br \/>\n= sectsz=512 sunit=0 blks, lazy-count=1<br \/>\nrealtime =none extsz=4096 blocks=0, rtextents=0<\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost ~]# mkdir \/optback<br \/>\nroot@localhost ~]# mount \/dev\/backupvg\/lv_optback \/optback\/<br \/>\n[root@localhost ~]# df -TH<br \/>\nFilesystem Type Size Used Avail Use% Mounted on<br \/>\n\/dev\/mapper\/rhel-root xfs 39G 4.1G 35G 11% \/<br \/>\ndevtmpfs devtmpfs 4.2G 0 4.2G 0% \/dev<br \/>\ntmpfs tmpfs 4.2G 95k 4.2G 1% \/dev\/shm<br \/>\ntmpfs tmpfs 4.2G 39M 4.1G 1% \/run<br \/>\ntmpfs tmpfs 4.2G 0 4.2G 0% \/sys\/fs\/cgroup<br \/>\n\/dev\/sda1 xfs 507M 109M 398M 22% \/boot<br \/>\n\/dev\/mapper\/backupvg-lv_optback xfs 5.4G 34M 5.3G 1% \/optback<\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost ~]# lvextend -L +2G \/dev\/backupvg\/lv_optback<br \/>\nExtending logical volume lv_optback to 7.00 GiB<br \/>\nLogical volume lv_optback successfully resized<\/p>\n<p>&nbsp;<\/p>\n<p>root@localhost ~]# xfs_growfs \/optback<br \/>\nmeta-data=\/dev\/mapper\/backupvg-lv_optback isize=256 agcount=4, agsize=327680 blks<br \/>\n= sectsz=512 attr=2, projid32bit=1<br \/>\n= crc=0<br \/>\ndata = bsize=4096 blocks=1310720, imaxpct=25<br \/>\n= sunit=0 swidth=0 blks<br \/>\nnaming =version 2 bsize=4096 ascii-ci=0<br \/>\nlog =internal bsize=4096 blocks=12800, version=2<br \/>\n= sectsz=512 sunit=0 blks, lazy-count=1<br \/>\nrealtime =none extsz=4096 blocks=0, rtextents=0<br \/>\ndata blocks changed from 1310720 to 1835008<\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost ~]# df -h<br \/>\nFilesystem Size Used Avail Use% Mounted on<br \/>\n\/dev\/mapper\/rhel-root 36G 3.8G 32G 11% \/<br \/>\ndevtmpfs 3.9G 0 3.9G 0% \/dev<br \/>\ntmpfs 3.9G 92K 3.9G 1% \/dev\/shm<br \/>\ntmpfs 3.9G 38M 3.8G 1% \/run<br \/>\ntmpfs 3.9G 0 3.9G 0% \/sys\/fs\/cgroup<br \/>\n\/dev\/sda1 484M 104M 380M 22% \/boot<br \/>\n\/dev\/mapper\/backupvg-lv_optback 7.0G 33M 7.0G 1% \/optback<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[root@localhost ~]# pvcreate \/dev\/sdb \/dev\/sdc \/dev\/sdd Physical volume &#8220;\/dev\/sdb&#8221; successfully created Physical volume &#8220;\/dev\/sdc&#8221; successfully created Physical volume &#8220;\/dev\/sdd&#8221; successfully created<\/p>\n<p>&nbsp; pvs [root@localhost ~]# pvs PV VG Fmt Attr PSize PFree \/dev\/sda2 rhel lvm2 a&#8211; 39.51g 0 \/dev\/sdb lvm2 a&#8211; 20.00g 20.00g \/dev\/sdc lvm2 a&#8211; 20.00g 20.00g \/dev\/sdd lvm2 a&#8211; 20.00g 20.00g<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p> [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2914"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2914"}],"version-history":[{"count":2,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2914\/revisions"}],"predecessor-version":[{"id":2916,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2914\/revisions\/2916"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2914"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}