increase a partition capacity.

Issues related to applications and software problems and general support
Post Reply
hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

increase a partition capacity.

Post by hack3rcon » 2019/12/17 13:06:06

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.

nouvo09
Posts: 184
Joined: 2009/09/19 19:21:36
Location: Paris, France

Re: increase a partition capacity.

Post by nouvo09 » 2019/12/17 15:36:59

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 !
Member of centos-FR forum

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: increase a partition capacity.

Post by tunk » 2019/12/17 16:01:18

If e.g. /home takes most space, you could move that to the new disk.

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: increase a partition capacity.

Post by hack3rcon » 2019/12/17 17:59:18

nouvo09 wrote:
2019/12/17 15:36:59
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 !
How can I see the structure of disk? Thus LVM is impossible?

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: increase a partition capacity.

Post by aks » 2019/12/17 18:15:21

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")

User avatar
jlehtone
Posts: 4531
Joined: 2007/12/11 08:17:33
Location: Finland

Re: increase a partition capacity.

Post by jlehtone » 2019/12/17 22:55:34

hack3rcon wrote:
2019/12/17 13:06:06
How can I understand the current configuration has this capable?
hack3rcon wrote:
2019/12/17 17:59:18
How can I see the structure of disk?
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

nouvo09
Posts: 184
Joined: 2009/09/19 19:21:36
Location: Paris, France

Re: increase a partition capacity.

Post by nouvo09 » 2019/12/18 21:37:08

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
Member of centos-FR forum

Post Reply