Showing posts with label Resize Mount Point In Linux. Show all posts
Showing posts with label Resize Mount Point In Linux. Show all posts

Saturday, August 5, 2023

How To Increase Size Of Mount Point In Linux

 1. extend *.vdi of vm in virtualbox

2. add gparted live cd in vm setting

3. extend partition /dev/sda to unallocated space 

4. start vm and open terminal 

5. /dev/mapper/ol-u01  ----> mount point 

6. vgdisplay <volume-group-name> 

7. vgdisplay ol

8. lvextend -L +50G /dev/mapper/ol-u01 

9. if xfs file system ---> # xfs_growfs /dev/mapper/ol-u01

10. if other file system---> # resize2fs /dev/mapper/ol-u01

11. df -h ---> check partition/mount point size extend or not 


------------------------------------ example -------------------------------------------------

[root@sakri ~]# df -h
Filesystem           Size  Used Avail Use% Mounted on
devtmpfs             3.8G     0  3.8G   0% /dev
tmpfs                2.0G   28K  2.0G   1% /dev/shm
tmpfs                3.8G  9.3M  3.8G   1% /run
tmpfs                3.8G     0  3.8G   0% /sys/fs/cgroup
/dev/mapper/ol-root   20G  9.9G   11G  50% /
/dev/sda1           1014M  435M  580M  43% /boot
/dev/mapper/ol-u01    30G  247M   30G   1% /u01
/dev/mapper/ol-tmp   8.5G   94M  8.4G   2% /tmp
/dev/mapper/ol-u02    30G  247M   30G   1% /u02
21c_Softwares        395G  191G  205G  49% /media/sf_21c_Softwares
All_Softwares        395G  191G  205G  49% /media/sf_All_Softwares
tmpfs                768M  1.2M  767M   1% /run/user/42
tmpfs                768M     0  768M   0% /run/user/0
[root@sakri ~]# vgdisplay ol
  --- Volume group ---
  VG Name               ol
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  7
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                5
  Open LV               5
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               148.50 GiB
  PE Size               4.00 MiB
  Total PE              38017
  Alloc PE / Size       25216 / 98.50 GiB
  Free  PE / Size       12801 / 50.00 GiB
  VG UUID               zDYlVS-L0yC-E8KP-kHmr-QgbG-WEjU-IZbzp7


[root@sakri ~]# clear

[root@sakri ~]# lvextend -L +50G /dev/mapper/ol-u01

  Size of logical volume ol/u01 changed from 30.00 GiB (7680 extents) to 80.00 GiB (20480 extents).

  Logical volume ol/u01 successfully resized.

[root@sakri ~]#

[root@sakri ~]# xfs_growfs /dev/mapper/ol-u01
meta-data=/dev/mapper/ol-u01     isize=512    agcount=4, agsize=1966080 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=1, sparse=1, rmapbt=0
         =                       reflink=1
data     =                       bsize=4096   blocks=7864320, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0, ftype=1
log      =internal log           bsize=4096   blocks=3840, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
data blocks changed from 7864320 to 20971520

[root@sakri ~]#

[root@sakri ~]# df -h
Filesystem           Size  Used Avail Use% Mounted on
devtmpfs             3.8G     0  3.8G   0% /dev
tmpfs                2.0G   28K  2.0G   1% /dev/shm
tmpfs                3.8G  9.3M  3.8G   1% /run
tmpfs                3.8G     0  3.8G   0% /sys/fs/cgroup
/dev/mapper/ol-root   20G  9.9G   11G  50% /
/dev/sda1           1014M  435M  580M  43% /boot
/dev/mapper/ol-u01    80G  604M   80G   1% /u01
/dev/mapper/ol-tmp   8.5G   94M  8.4G   2% /tmp
/dev/mapper/ol-u02    30G  247M   30G   1% /u02
21c_Softwares        395G  191G  205G  49% /media/sf_21c_Softwares
All_Softwares        395G  191G  205G  49% /media/sf_All_Softwares
tmpfs                768M  1.2M  767M   1% /run/user/42
tmpfs                768M     0  768M   0% /run/user/0

[root@sakri ~]#



Enable OpenSSH on Windows 11

Step 1: Install OpenSSH Server You can do this via PowerShell (run as Administrator ): Check if it's already available: Get-WindowsCapab...