Thanks for visiting the site !!! Visit below intrested Ads to support us if you like the site .Sharing is caring .keep distance and keep safe . Happy Learning ... 😀

Extending File System on Linux

Refer below steps to for extending file system .

/tsm/tsm_fp01_vm09   14TB

[root@SDCTSM01 ~]# vgs
  VG              #PV #LV #SN Attr   VSize    VFree  
  vg_sdctsm01       1   5   0 wz--n-  277.78g 146.78g
  vg_tsmdb_new      8   8   0 wz--n-    4.00t   1.97g
  vg_tsmdbbkp       3   1   0 wz--n-   15.50t 511.99g
  vg_tsmfp01       41  19   0 wz--n-  201.40t  13.48t
  vg_tsmfp01_vm06  18  18   0 wz--n-  100.00t  23.99g
  vg_tsmfp02        1   1   0 wz--n- 1024.00g      0 
  vg_tsmlogs        4   3   0 wz--n-  511.98g   1.98g
[root@SDCTSM01 ~]# lvs |grep -i vg_tsmfp01
  tsm_fp01_fs02    vg_tsmfp01      -wi-ao----    1.40t                                             
  tsm_fp01_mssql00 vg_tsmfp01      -wi-ao----   10.99t                                             
  tsm_fp01_mssql01 vg_tsmfp01      -wi-ao----    3.20t                                             
  tsm_fp01_ora04   vg_tsmfp01      -wi-ao----   10.00t                                             
  tsm_fp01_sap00   vg_tsmfp01      -wi-ao----   11.00t                                             
  tsm_fp01_sap01   vg_tsmfp01      -wi-ao----   11.00t                                             
  tsm_fp01_sap02   vg_tsmfp01      -wi-ao----   11.17t                                             
  tsm_fp01_sap03   vg_tsmfp01      -wi-ao----   10.98t                                             
  tsm_fp01_sap04   vg_tsmfp01      -wi-ao----    5.00t                                             
  tsm_fp01_sap05   vg_tsmfp01      -wi-ao----   10.00t                                             
  tsm_fp01_vm00    vg_tsmfp01      -wi-ao----   13.00t                                             
  tsm_fp01_vm01    vg_tsmfp01      -wi-ao----   12.02t                                             
  tsm_fp01_vm02    vg_tsmfp01      -wi-ao----   12.00t                                             
  tsm_fp01_vm03    vg_tsmfp01      -wi-ao----   12.00t                                             
  tsm_fp01_vm04    vg_tsmfp01      -wi-ao----   12.00t                                             
  tsm_fp01_vm05    vg_tsmfp01      -wi-ao----   12.00t                                             
  tsm_fp01_vm06    vg_tsmfp01      -wi-ao----   10.16t                                             
  tsm_fp01_vm07    vg_tsmfp01      -wi-ao----   10.00t                                             
  tsm_fp01_vm08    vg_tsmfp01      -wi-ao----   10.00t                                             
  tsmstg01         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg02         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg03         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg04         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg05         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg06         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg07         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg08         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg09         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg10         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg11         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg12         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg13         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg14         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg15         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg16         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg17         vg_tsmfp01_vm06 -wi-ao----   10.00t                                             
  tsmstg18         vg_tsmfp01_vm06 -wi-ao----    9.98t                                             
[root@SDCTSM01 ~]# lvcreate -L 13T -n tsm_fp01_vm09  vg_tsmfp01 
  Logical volume "tsm_fp01_vm09" created
[root@SDCTSM01 ~]# lvs 
  LV               VG              Attr       LSize    Pool Origin Data%  Move Log Cpy%Sync Convert
  lv_home          vg_sdctsm01     -wi-ao----    5.00g                                             
  lv_root          vg_sdctsm01     -wi-ao----   50.00g                                             
  lv_swap          vg_sdctsm01     -wi-ao----   64.00g                                             
  tivoli           vg_sdctsm01     -wi-ao----    7.00g                                             
  tsminst1         vg_sdctsm01     -wi-ao----    5.00g                                             
  tsmdb1           vg_tsmdb_new    -wi-ao----  512.00g                                             
  tsmdb2           vg_tsmdb_new    -wi-ao----  512.00g                                             
  tsmdb3           vg_tsmdb_new    -wi-ao----  512.00g                                             
  tsmdb4           vg_tsmdb_new    -wi-ao----  512.00g                                             
  tsmdb5           vg_tsmdb_new    -wi-ao----  512.00g                                             
  tsmdb6           vg_tsmdb_new    -wi-ao----  512.00g                                             
  tsmdb7           vg_tsmdb_new    -wi-ao----  510.00g                                             
  tsmdb8           vg_tsmdb_new    -wi-ao----  512.00g                                             
  tsm_dbbkp        vg_tsmdbbkp     -wi-ao----   15.00t                                             
  tsm_fp01_fs02    vg_tsmfp01      -wi-ao----    1.40t                                             
  tsm_fp01_mssql00 vg_tsmfp01      -wi-ao----   10.99t                                             
  tsm_fp01_mssql01 vg_tsmfp01      -wi-ao----    3.20t                                             
  tsm_fp01_ora04   vg_tsmfp01      -wi-ao----   10.00t                                             
  tsm_fp01_sap00   vg_tsmfp01      -wi-ao----   11.00t                                             
  tsm_fp01_sap01   vg_tsmfp01      -wi-ao----   11.00t                                             
  tsm_fp01_sap02   vg_tsmfp01      -wi-ao----   11.17t                                             
  tsm_fp01_sap03   vg_tsmfp01      -wi-ao----   10.98t                                             
  tsm_fp01_sap04   vg_tsmfp01      -wi-ao----    5.00t                                             
  tsm_fp01_sap05   vg_tsmfp01      -wi-ao----   10.00t                                             
  tsm_fp01_vm00    vg_tsmfp01      -wi-ao----   13.00t                                             
  tsm_fp01_vm01    vg_tsmfp01      -wi-ao----   12.02t                                             
  tsm_fp01_vm02    vg_tsmfp01      -wi-ao----   12.00t                                             
  tsm_fp01_vm03    vg_tsmfp01      -wi-ao----   12.00t                                             
  tsm_fp01_vm04    vg_tsmfp01      -wi-ao----   12.00t                                             
  tsm_fp01_vm05    vg_tsmfp01      -wi-ao----   12.00t                                             
  tsm_fp01_vm06    vg_tsmfp01      -wi-ao----   10.16t                                             
  tsm_fp01_vm07    vg_tsmfp01      -wi-ao----   10.00t                                             
  tsm_fp01_vm08    vg_tsmfp01      -wi-ao----   10.00t                                             
  tsm_fp01_vm09    vg_tsmfp01      -wi-a-----   13.00t                                             
  tsmstg01         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg02         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg03         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg04         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg05         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg06         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg07         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg08         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg09         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg10         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg11         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg12         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg13         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg14         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg15         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg16         vg_tsmfp01_vm06 -wi-ao----    5.00t                                             
  tsmstg17         vg_tsmfp01_vm06 -wi-ao----   10.00t                                             
  tsmstg18         vg_tsmfp01_vm06 -wi-ao----    9.98t                                             
  tsm_fp01_fs03    vg_tsmfp02      -wi-ao---- 1024.00g                                             
  tsm_actlog       vg_tsmlogs      -wi-ao----  249.00g                                             
  tsm_arclog       vg_tsmlogs      -wi-ao----  133.00g                                             
  tsm_arclogfo     vg_tsmlogs      -wi-ao----  128.00g                                             
[root@SDCTSM01 ~]# cd /tsm
[root@SDCTSM01 tsm]# ls
activelog            batch          tsm_fp01_fs01  tsm_fp01_mssql00  tsm_fp01_ora01  tsm_fp01_ora04  tsm_fp01_sap02  tsm_fp01_sap05  tsm_fp01_vm02  tsm_fp01_vm05  tsm_fp01_vm08
archivelog           tsmdbbackup    tsm_fp01_fs02  tsm_fp01_mssql01  tsm_fp01_ora02  tsm_fp01_sap00  tsm_fp01_sap03  tsm_fp01_vm00   tsm_fp01_vm03  tsm_fp01_vm06  tsminst1
archivelog_failover  tsm_fp01_fs00  tsm_fp01_fs03  tsm_fp01_ora00    tsm_fp01_ora03  tsm_fp01_sap01  tsm_fp01_sap04  tsm_fp01_vm01   tsm_fp01_vm04  tsm_fp01_vm07
[root@SDCTSM01 tsm]# mkdir tsm_fp01_vm09
[root@SDCTSM01 tsm]# mkfs.ext4 /dev/vg_tsmfp01/tsm_fp01_vm09
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
872415232 inodes, 3489660928 blocks
174483046 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
106496 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
	4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
	102400000, 214990848, 512000000, 550731776, 644972544, 1934917632, 
	2560000000

Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 36 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[root@SDCTSM01 tsm]# mount /dev/vg_tsmfp01/tsm_fp01_vm09 /tsm/tsm_fp01_vm09
[root@SDCTSM01 tsm]# df -h 
Filesystem                               Size  Used Avail Use% Mounted on
/dev/mapper/vg_sdctsm01-lv_root           50G   27G   21G  57% /
tmpfs                                    127G   40K  127G   1% /dev/shm
/dev/sdrm2                               477M   63M  389M  14% /boot
/dev/sdrm1                               200M  260K  200M   1% /boot/efi
/dev/mapper/vg_sdctsm01-lv_home          4.8G  2.9G  1.7G  63% /home
/dev/mapper/vg_sdctsm01-tsminst1         4.8G  3.6G 1021M  79% /home/tsminst1
/dev/mapper/vg_sdctsm01-tivoli           6.8G  5.0G  1.5G  78% /opt/tivoli/tsm
/dev/mapper/vg_tsmlogs-tsm_actlog        249G  130G  115G  53% /tsm/activelog
/dev/mapper/vg_tsmlogs-tsm_arclog        133G  5.1G  126G   4% /tsm/archivelog
/dev/mapper/vg_tsmlogs-tsm_arclogfo      128G   39G   87G  31% /tsm/archivelog_failover
/dev/mapper/vg_tsmfp01-tsm_fp01_vm00      13T   13T  601G  96% /tsm/tsm_fp01_vm00
/dev/mapper/vg_tsmfp01-tsm_fp01_vm01      13T   11T  1.1T  91% /tsm/tsm_fp01_vm01
/dev/mapper/vg_tsmfp01-tsm_fp01_vm02      12T   12T  622G  95% /tsm/tsm_fp01_vm02
/dev/mapper/vg_tsmfp01-tsm_fp01_vm03      12T   12T  136G  99% /tsm/tsm_fp01_vm03
/dev/mapper/vg_tsmfp01-tsm_fp01_vm04      12T   11T  219G  99% /tsm/tsm_fp01_vm04
/dev/mapper/vg_tsmfp01-tsm_fp01_vm05      12T   12T   42G 100% /tsm/tsm_fp01_vm05
/dev/mapper/vg_tsmfp01-tsm_fp01_vm07      10T  9.8T   17M 100% /tsm/tsm_fp01_vm07
/dev/mapper/vg_tsmfp01-tsm_fp01_vm08      10T  9.2T  684G  94% /tsm/tsm_fp01_vm08
/dev/mapper/vg_tsmfp01-tsm_fp01_sap00     11T   11T  731G  94% /tsm/tsm_fp01_sap00
/dev/mapper/vg_tsmfp01-tsm_fp01_sap01     11T  8.9T  2.0T  82% /tsm/tsm_fp01_sap01
/dev/mapper/vg_tsmfp01-tsm_fp01_sap02     11T  8.5T  2.1T  81% /tsm/tsm_fp01_sap02
/dev/mapper/vg_tsmfp01-tsm_fp01_sap03     11T  8.3T  2.0T  81% /tsm/tsm_fp01_sap03
/dev/mapper/vg_tsmfp01-tsm_fp01_sap04    3.0T  3.0T   17M 100% /tsm/tsm_fp01_sap04
/dev/mapper/vg_tsmfp01-tsm_fp01_sap05     10T  9.0T  819G  92% /tsm/tsm_fp01_sap05
/dev/mapper/vg_tsmfp01-tsm_fp01_ora04     10T  7.3T  2.6T  74% /tsm/tsm_fp01_ora04
/dev/mapper/vg_tsmfp01-tsm_fp01_mssql00   11T  4.9T  6.0T  45% /tsm/tsm_fp01_mssql00
/dev/mapper/vg_tsmfp01-tsm_fp01_mssql01  3.2T  3.0T  162G  95% /tsm/tsm_fp01_mssql01
/dev/mapper/vg_tsmfp01-tsm_fp01_vm06      10T  9.5T   17M 100% /tsm/tsm_fp01_vm06
/dev/mapper/vg_tsmfp01-tsm_fp01_fs02     1.4T  1.4T   17M 100% /tsm/tsm_fp01_fs02
/dev/mapper/vg_tsmfp02-tsm_fp01_fs03    1008G  957G   17M 100% /tsm/tsm_fp01_fs03
/dev/mapper/vg_tsmdb_new-tsmdb1          504G  403G   76G  85% /tsmdb1
/dev/mapper/vg_tsmdb_new-tsmdb2          504G  403G   76G  85% /tsmdb2
/dev/mapper/vg_tsmdb_new-tsmdb3          504G  403G   76G  85% /tsmdb3
/dev/mapper/vg_tsmdb_new-tsmdb4          504G  403G   76G  85% /tsmdb4
/dev/mapper/vg_tsmdb_new-tsmdb5          504G  403G   76G  85% /tsmdb5
/dev/mapper/vg_tsmdb_new-tsmdb6          504G  403G   76G  85% /tsmdb6
/dev/mapper/vg_tsmdb_new-tsmdb7          502G  403G   75G  85% /tsmdb7
/dev/mapper/vg_tsmfp01_vm06-tsmstg01     5.0T  4.7T   77M 100% /tsmstg01
/dev/mapper/vg_tsmfp01_vm06-tsmstg02     5.0T  4.7T   17M 100% /tsmstg02
/dev/mapper/vg_tsmfp01_vm06-tsmstg03     5.0T  4.7T   17M 100% /tsmstg03
/dev/mapper/vg_tsmfp01_vm06-tsmstg04     5.0T  4.2T  501G  90% /tsmstg04
/dev/mapper/vg_tsmfp01_vm06-tsmstg05     5.0T  4.7T   17M 100% /tsmstg05
/dev/mapper/vg_tsmfp01_vm06-tsmstg06     5.0T  4.6T  139G  98% /tsmstg06
/dev/mapper/vg_tsmfp01_vm06-tsmstg07     5.0T  3.5T  1.3T  74% /tsmstg07
/dev/mapper/vg_tsmfp01_vm06-tsmstg08     5.0T  3.0T  1.7T  65% /tsmstg08
/dev/mapper/vg_tsmfp01_vm06-tsmstg09     5.0T  3.0T  1.8T  63% /tsmstg09
/dev/mapper/vg_tsmfp01_vm06-tsmstg10     5.0T  4.5T  200G  96% /tsmstg10
/dev/mapper/vg_tsmfp01_vm06-tsmstg11     5.0T  2.4T  2.3T  52% /tsmstg11
/dev/mapper/vg_tsmfp01_vm06-tsmstg12     5.0T  2.7T  2.1T  57% /tsmstg12
/dev/mapper/vg_tsmfp01_vm06-tsmstg13     5.0T  3.1T  1.7T  65% /tsmstg13
/dev/mapper/vg_tsmfp01_vm06-tsmstg14     5.0T  3.0T  1.8T  63% /tsmstg14
/dev/mapper/vg_tsmfp01_vm06-tsmstg15     5.0T  4.7T   17M 100% /tsmstg15
/dev/mapper/vg_tsmfp01_vm06-tsmstg16     5.0T   61M  4.7T   1% /tsmstg16
/dev/mapper/vg_tsmdbbkp-tsm_dbbkp         15T  6.4T  7.8T  45% /tsm/tsmdbbackup
/dev/mapper/vg_tsmfp01_vm06-tsmstg17     9.9T   37M  9.4T   1% /tsmstg17
/dev/mapper/vg_tsmfp01_vm06-tsmstg18     9.9T   37M  9.4T   1% /tsmstg18
/dev/mapper/vg_tsmdb_new-tsmdb8          504G  403G   76G  85% /tsmdb8
/dev/mapper/vg_tsmfp01-tsm_fp01_vm09      13T   19M   13T   1% /tsm/tsm_fp01_vm09
[root@SDCTSM01 tsm]# cp -p  /etc/fstab /etc/fstab.7062016
[root@SDCTSM01 tsm]# vim /etc/fstab
[root@SDCTSM01 tsm]# vim /etc/fstab
[root@SDCTSM01 tsm]# cd
[root@SDCTSM01 ~]# 
[root@SDCTSM01 ~]# 
[root@SDCTSM01 ~]# 
[root@SDCTSM01 ~]# 
[root@SDCTSM01 ~]# df -hP /tsm/tsm_fp01_vm09
Filesystem                            Size  Used Avail Use% Mounted on
/dev/mapper/vg_tsmfp01-tsm_fp01_vm09   13T   19M   13T   1% /tsm/tsm_fp01_vm09
[root@SDCTSM01 ~]# cat /etc/fstab
/dev/vg_tsmfp01_vm06/tsmstg16   /tsmstg16 ext4  defaults 0 0
/dev/vg_tsmfp01_vm06/tsmstg17   /tsmstg17 ext4  defaults 0 0
/dev/vg_tsmfp01_vm06/tsmstg18   /tsmstg18 ext4  defaults 0 0
/dev/vg_tsmfp01/tsm_fp01_vm09   /tsm/tsm_fp01_vm09 ext4 defaults 0 0
[root@SDCTSM01 ~]#
 

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *