0

I just cloned my 256 GB ssd disk to 2TB disk using disk cloner machines. However, what I want to do is increase the size of "scientific_hep--node0-home" by 1.6TB. I am running on centos7. Below is the output of lsblk command.

enter image description here

1
  • Which filesystem is used on that volume? Apr 29, 2023 at 20:06

1 Answer 1

3

You can use the lvextend command to increase the size of a logical volume in LVM.

lvextend -L +1.6T /dev/mapper/vg_scientific_hep-node0-home

then:

resize2fs /dev/mapper/vg_scientific_hep-node0-home

or

xfs_growfs /mnt/mount_point
5
  • You also have to use resize2fs or growfs to align filesystem to its new size without having to remount it.
    – francois P
    Apr 29, 2023 at 19:41
  • @Gilles Not worked. Getting "skip_dev_dir: Couldn't split up device name vg_scientific_hep-node0-home. "/dev/mapper/vg_scientific_hep-node0-home": Invalid path for Logical Volume."
    – Watzinki
    Apr 29, 2023 at 19:49
  • @francoisP Could you please elaborate a bit?
    – Watzinki
    Apr 29, 2023 at 19:50
  • You need to adapt the path Apr 29, 2023 at 20:12
  • lvextend can be run with --resizefs in order to avoid the separate resizing step. The problem with the call is that the LV is not addressed with a device file path but with the notation VG/LV_NAME i.e. scientific_hep/node0-home Apr 29, 2023 at 20:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .