1. Login to the Proxmox webGUI, select desired node and click on disks. In my case, my new hard drive device is labeled as /dev/sdc.
2. Open Proxmox console and create disk partitions:
Create new partition: n
Select primary partition type: p
Leave the first and the last sectors default (press enter twice).
Your new partition is now labeled the same as the hard drive device with an added number 1 (/dev/sdc1).
3. Create physical volume:
4. Create volume group:
vgcreate Hitachi500G /dev/sdc1
You can name volume group whatever you want, I named mine Hitachi500G.
5. Go back to Proxmox webGUI
Select Datacenter -> Storage -> Add -> LVM
ID: custom name
Volume group: select the volume group you created in the step 4 and click Add.
Your new drive is now ready.
6. Create a shared directory on the proxmox host node (mount point)
Go to webGUI, click Datacenter -> Storage -> Add Directory
ID: custom name
Directory: enter your mount point
Content: Disk image, Container
You should now see your new directory mounted on the proxmox host. You can now share
this mount point with multiple LXC containers.
7. Select your LXC container and shut it down. While your LXC container is selected, go to Resources and click Add -> Mount point
Mount point ID: 0
Storage: Select storage you created in step 4
Disk size: You can define a custom size for any mount point
Path: This is the directory you created in step 6
8. Start your container and check the new mount point.
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/buster/InRelease 401 Unauthorized [IP: 22.214.171.124 443]
E: The repository ‘https://enterprise.proxmox.com/debian/pve buster InRelease’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.Quick fix:
cp pve-enterprise.list pve-no-subscription.list
Comment out the first line and save:
#deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise
change deb https://enterprise.proxmox.com/debian/pve buster pve-enterpriseto deb http://download.proxmox.com/debian/pve buster pve-no-subscription
Upgrade should work now.
: Found a nicer way to do it: https://gist.github.com/whiskerz007/53c6aa5d624154bacbbc54880e1e3b2a
This script will not remove nagging popup with the newer versions of Proxmox, works up to 5.3.x version.
For a newer versions use this command:
Make sure to clear your cookies and cache for this method to work.