Hello,
In a CentOS VM server, one of the partitions is full and I added another HDD and I want to know is it possible to add this new hdd as a free space to the current partition?
How can I understand the current configuration has this capable?
Thank you.
increase a partition capacity.
Re: increase a partition capacity.
You should increase the virtualdisk then increase the partition where you need space.
To concatenate space on a virtual VM disk and space on a external drive could mean using lvm which is absolutely impossible in this case.
So give up !
To concatenate space on a virtual VM disk and space on a external drive could mean using lvm which is absolutely impossible in this case.
So give up !
Member of centos-FR forum
Re: increase a partition capacity.
If e.g. /home takes most space, you could move that to the new disk.
Re: increase a partition capacity.
How can I see the structure of disk? Thus LVM is impossible?
Re: increase a partition capacity.
If you are using LVM, you can grow the vg and then grow the lv and then grow the filesystem (it's not hard, just a little risky and Google will tell you how to).
If you have just standard partitions, I don't think you grow a IBM PC partition across disks (you might be able to with EFI partitions, but am not sure).
If you are using RAID, then you may be able to grow, depending on the RAID software/hardware and RAID level used.
For LVM:
$ vgs - list volume groups ("alias" for "volume group scan")
$ lvs - list logical volumes ("alias" for "logical volume scan")
If you have just standard partitions, I don't think you grow a IBM PC partition across disks (you might be able to with EFI partitions, but am not sure).
If you are using RAID, then you may be able to grow, depending on the RAID software/hardware and RAID level used.
For LVM:
$ vgs - list volume groups ("alias" for "volume group scan")
$ lvs - list logical volumes ("alias" for "logical volume scan")
Re: increase a partition capacity.
That seems to be your main question: how to check what you have?
Code: Select all
lsblk
blkid
cat /proc/mdstat
pvs
vgs
lvs
findmnt
Re: increase a partition capacity.
Sorry I understood that it was an external drive. My apologize
So first of all, issue the command
fdisk -l
to see disk structure. Then we'll talk again
So first of all, issue the command
fdisk -l
to see disk structure. Then we'll talk again
Member of centos-FR forum