0

I am trying to add a 2nd disk to a CentOS 8 instance and I want to extend the entire storage utilizing all the available extra space;

  • 1st storage: 40 GB
  • 2nd storage: 100 GB (added later)

The problem is I can't seem to find the expected /dev/mapper/cl-home (mounts to /home) volume! Of course I am missing something here. All the guides over internet are either about mounting the extra space to some other point like /nfs or to extend the /dev/mapper/cl-home mount point, doesn't match what I see!

My current configuration has the root mount point / taking the entire 1st disk. All I want to extend this / volume to be added with the extra 100 GB from 2nd disk.

[root@server]# df -hT
Filesystem     Type      Size  Used Avail Use% Mounted on
devtmpfs       devtmpfs  7.5G     0  7.5G   0% /dev
tmpfs          tmpfs     7.6G     0  7.6G   0% /dev/shm
tmpfs          tmpfs     7.6G   11M  7.6G   1% /run
tmpfs          tmpfs     7.6G     0  7.6G   0% /sys/fs/cgroup
/dev/sda1      ext4       38G   17G   20G  46% /
/dev/sda14     vfat       64M  5.8M   59M  10% /boot/efi
overlay        overlay    38G   17G   20G  46% /var/lib/docker/overlay2/49925326227fa6cca9da56239aa9de1efc4d14b33f0ee323e2f3af9c6a06b9cb/merged
overlay        overlay    38G   17G   20G  46% /var/lib/docker/overlay2/fd9414c35067cab62eed8f4b929d8a320bae64ff6d4cbb21d7071d3664c54601/merged
overlay        overlay    38G   17G   20G  46% /var/lib/docker/overlay2/fc91e9b428c361d76e349d7f01adcd73793bbf61b2b2646d0a049c406af96262/merged
tmpfs          tmpfs     1.6G     0  1.6G   0% /run/user/0

I was able to partition the 2nd storage with fdisk and reached up to /dev/sdb1, but can't seem to figure out how I add this /dev/sdb1 100 GB to the / mount point and make it nearly ~140 GB.

Thanks in advance.

1 Answer 1

0

Your system wasn't set up with LVM, so extending the disk is not possible.

It is possible to convert your current setup to LVM, but it carries risks.

You can just mount the new disk at a useful mount point and move the existing data there.

4
  • Suspected that :( Just couldn't find confidence in me as am new to this. Do you know any simple and sweet guide to learn how to CURRENT FS => LVM? May 23, 2023 at 20:18
  • Another option, since you said it's an "instance" I assume it's a virtual machine. Virtual disks can be extended, as well as partitions and filesystems. It would be easier to extend the current disk instead of adding a second one. May 23, 2023 at 20:19
  • #Gerald Unfortunately, I don't seem to find an option to extend the primary storage with Hetzner :( So I added a new volume and I don't know which way is North! May 23, 2023 at 20:21
  • Ok, I found the way to extend the primary storage with rescale. Thanks for the heads up Sir. May 23, 2023 at 20:34

You must log in to answer this question.

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