Add a hard drive to Proxmox

You can either use your new disk to create new storage resources:

  • New directory (tree) to store files
    • partition and format your device using your filesystem of choice (ext3/4 and XFS are the most commonly used)
    • mount the FS to, say, /srv (do it manualy with mount command and add it to fstab)
    • create the needed directories with mkdir /srv/{isos,images,templates,backups,containers}
    • create the Proxmox storage resources of type directory in the web UI.
  • LVM volume group to store VMs disks "images" as logical volumes:
    • partition your device and set the LVM (8e) flag
    • create a new physical volume with pvcreate /dev/
    • create a new volume group with vgcreate /dev/
    • create the Proxmox storage resource of type LVM group in the web UI

Or you can use it to increase size of the default one:

  • LVM physical volume to extend the default pve-data LVM logical volume and /var/lib/vzfilesystem:
    • partition your device and set the LVM (8e) flag
    • create a new physical volume with pvcreate /dev/
    • extend default VG with vgextend pve /dev/
    • extend data logical volume with lvextend /dev/mapper/pve-data /dev/
    • verify your FS is clean with fsck -nv /dev/mapper/pve-data
    • resize your FS with resize2fs -F /dev/mapper/pve-data
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

I lost my root password for Proxmox Debian Squeeze change root password

Access your server through your IPMI and use the console redirect and then do one of the...