Adding a new hard drive to Proxmox

brucexx

Renowned Member
Mar 19, 2015
265
9
83
I have a running Proxmox with additional hard drives in RAID 1 array. I added them and wanted to keep them separate from the Proxmoxm install hard drives because they are SSDs vs. regular 7200 spinners for the Proxmoxm install.

I addded the RAID array with 2 SSDs taht came up as the sdc so I used fdisk to partition it making sure it is of type 8e...

...then:

root@vs01:/dev# pvcreate /dev/sdc1
Physical volume "/dev/sdc1" successfully created
root@vs01:/dev# vgcreate -s 4M pve2 /dev/sdc1
Volume group "pve2" successfully created
root@vs01:/# lvcreate -L 927GB -n data pve2
Logical volume "data" created

...and:
root@vs01:/dev# mkfs.ext4 -m 1 /dev/pve2/data

I mounted it right next to the other default local data @ /var/lib/vz2 - just to keep it consistent in the fstab and updated the fstab.

Am I overthinking this ? is there a better way of adding a local hard drive and separating it from the primary local storage on which Proxmxom is installed ?

It is working perfectly fine performance wise and I don't have any problems with it.

One thing I noticed is that in the cluster that this local storage shows proper disk size on the node on which it resides 912 GB but shows 1/10 94 GB size on the second cluster node (when you click on the storage and go to summary).

Thank you
 
Hi,
you can mount you local dir where you like.
I use the same mountpoint for the second local disk.
One thing I noticed is that in the cluster that this local storage shows proper disk size on the node on which it resides 912 GB but shows 1/10 94 GB size on the second cluster node (when you click on the storage and go to summary).
Do you mean you have on both node the second local dir or do you mean you connect to node 2 and go on node 1 to local dir 2.
 
The drive is on Node 2 and is mounted on Node 2. Once I mount the drive I add it as a directory to Proxmox putting the path/target as var/lib/vz2

When I look at the GUI on both nodes I see this drive (local storage) under local. On node1 this drive under summary shows approximately 30 GB on node2 it shows 900+ GigaB. Everything seems to work I am jsut surprised that this local directory would show different size on both nodes.
 
You have only the drive on Node 2.
On Node 1 you have the rootfs what you see.
I would restrict the new local dir to Node 2.
This can be done on the GUI.
Go to the storage Tab located in Datacenter,
Double click on the storage and then you can set the nodes to Node2
 
Thank you will try that, should I keep the option "shared" enabled ?

I am not clear on what it does, I thought it literary shares the directory so it is available on both nodes but I am most likely wrong...
 
The shared option is for locking.

If you have a lvm what is on iSCSI then you have to enable shared if it is available on all nodes.