Changes between Initial Version and Version 1 of LVM


Ignore:
Timestamp:
01/10/24 13:03:29 (10 months ago)
Author:
ypap
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LVM

    v1 v1  
     1== LVM Resize ==
     2
     3(20210423: Artemis storage was full)
     4
     5* Artemis (ssh root@artemis) is in virtual. Stop the following jobs before umounting the fs
     6
     7{{{
     8root@artemis:~# /etc/init.d/tomcat8 status (start/stop)
     9root@artemis:~# /etc/init.d/postgresql status (start/stop)
     10}}}
     11
     121. extend volume
     132. resize filesystem
     14
     15{{{
     16root@artemis:~# lvs  # logical volume
     17root@artemis:~# vgs  # volume group: says that we have x TB free space. Allocate to an lv by lvextend
     18root@artemis:~# pvs  # physical volume
     19root@artemis:~# lvextend -L +100G /dev/RAID1_ISLANDS/artemis_data
     20root@artemis:~# fdisk -l /dev/RAID1_ISLANDS/artemis_data
     21root@artemis:~# cat /etc/fstab
     22root@artemis:~# mount /store/artemis_data/
     23root@artemis:~# df -h /store/artemis_data/
     24root@artemis:~# umount /store/artemis_data
     25root@artemis:~# resize2fs /dev/mapper/RAID1_ISLANDS-artemis_data
     26root@artemis:~# e2fsck -f /dev/mapper/RAID1_ISLANDS-artemis_data # checks for errors
     27root@artemis:~# resize2fs /dev/mapper/RAID1_ISLANDS-artemis_data
     28root@artemis:~# mount /store/artemis_data/
     29}}}
     30
     31More info [https://www.tecmint.com/extend-and-reduce-lvms-in-linux/ here]