Days ago I had the need to install a new hard drive on my server Proxmox; after I mounted configuration hard drive.simplicity of the new resource has left me a little mouth .to list what you can configure the new drive installed:
- You create a new partition table, Formatting with ext3, ext4 or better in xfs and then you mount the file system manually or through the fstab file.
- Now you create a new folder in the directory where we put the disk (in my case /srv).
mkdir /srv/{isos,images,templates,backups,containers}
- Finally web interface Proxmox create storage resources of type directory.
Another way of configuration is to create a LVM volume group to store virtual machine disks in logical volume.Used this method in a cluster with a SAN shared Proxmox.
- It creates a new physical volume
pvcreate /dev/mapper/mpath0
- You create a new volume group
vgcreate "test" /dev/mapper/mpath0
- In the Web hooks the new volume group server . Proxmox.
From the drop-down menu select the desired volume and you’re done.
We can also think of increasing our existing logical volume with the new har disk.Di default the physical volume is pve-data.
- Create a new physical volume
pvcreate /dev/sdb
- Extend Volume Group in default
vgextend pve /dev/sdb
- Extend the logical volume (data) with
lvextend /dev/mapper/pve-data /dev/sdb
- Check the file system
fsck -nv /dev/mapper/pve-data
- resize
resize2fs -F /dev/mapper/pve-data
End.