Version 1 (modified by 11 months ago) ( diff ) | ,
---|
LVM Resize
(20210423: Artemis storage was full)
- Artemis (ssh root@artemis) is in virtual. Stop the following jobs before umounting the fs
root@artemis:~# /etc/init.d/tomcat8 status (start/stop) root@artemis:~# /etc/init.d/postgresql status (start/stop)
- extend volume
- resize filesystem
root@artemis:~# lvs # logical volume root@artemis:~# vgs # volume group: says that we have x TB free space. Allocate to an lv by lvextend root@artemis:~# pvs # physical volume root@artemis:~# lvextend -L +100G /dev/RAID1_ISLANDS/artemis_data root@artemis:~# fdisk -l /dev/RAID1_ISLANDS/artemis_data root@artemis:~# cat /etc/fstab root@artemis:~# mount /store/artemis_data/ root@artemis:~# df -h /store/artemis_data/ root@artemis:~# umount /store/artemis_data root@artemis:~# resize2fs /dev/mapper/RAID1_ISLANDS-artemis_data root@artemis:~# e2fsck -f /dev/mapper/RAID1_ISLANDS-artemis_data # checks for errors root@artemis:~# resize2fs /dev/mapper/RAID1_ISLANDS-artemis_data root@artemis:~# mount /store/artemis_data/
More info here
Note:
See TracWiki
for help on using the wiki.