Adding and Removing New Disks in PVE
Prerequisites
The primary requirement for adding a disk is that it must be correctly mounted in the PVE system and set to auto-mount at boot. For details on disk mounting, please refer to the previous article: Linux Mounting a New Hard Drive and Setting it to Auto-Mount.
Mounting a New Hard Drive as a Data Disk in PVE
In PVE, the default storage location for virtual machine data is local-vm. If you want to use a new disk, you can delete local-vm and reallocate the space to local storage. To do this, follow these steps:
-
Delete the logical volume local-lvm with the command below. You will be prompted to confirm deletion, so remember to press ‘y’:
1
lvremove pve/data
-
Extend the local storage (allocate the free disk space to pve/root) using the following command:
1
lvextend -l +100%FREE -r pve/root
-
In the management interface, delete local-lvm (go to Data Center -> Storage, select local-lvm, and click delete).
Once these steps are completed, you can officially add the new disk as a data disk.
 system, ensuring that your new disks are properly configured and recognized.