Adding addtional hardrives clarifications?

Jeffrey

New Member
Mar 10, 2010
13
0
1
Hello,

I posted earlier about adding additional hard drives to a new Proxmox system and I am looking for a bit of clarification.

I have a new install of Proxmox, no vm have been created, A single 2TB hard was used during the install. I would like to add an additional 2-3 more 2TG drives to Proxmox for use with both KVM and VZ containers.

If I am to understand for comments on my previous posts I should do the following steps:

1: fdisk the new drives (dev/sdb, /dev/sdc, etc...), create single partition and TYPE it 8e (LVM)

2: pvcreate /dev/sdb1, pvcreate /dev/sdc1, etc...

3: vgextend pve /dev/sdb1 /dev/sdc1 ...

Is this all I need to do to make the additional harddrive space available to Proxmox for use with VZ and KVM machines?

Or am I todo some kind of resize?
Again, No vm have been create as of yet, just a clean install of Proxmox.
 
As a follow-up...

I did the above, with the following additional steps:

4: lvextend -L +<size of disk in GB> /dev/mapper/pve-data

5: umount /dev/mapper/pve-data

6: e2fsck -f /dev/mapper/pve-data

7: resize2fs /dev/mapper/pve-data

8: mount /dev/mapper/pve-data /var/lib/vz

back up and running with a larger /var/lib/vz area. I than installed a few XP kvm machines and a few linux openvz, all is working.