Storage Model

T

topi

Guest
Hi guys,

I read the page dedicated to the storage : http://pve.proxmox.com/wiki/Storage_Model, but it took me time to find how to configure my own storage. So it's why I give you my feedback and ask you for your comments !!! Is my reflexion OK, is my configuration OK, what do you think of my structure ... ???


My physical strorage is a SAS with 4 TiB configuring in RAID5. I followed this tuto to configure it : http://pve.proxmox.com/wiki/Storage_Model#LVM_Groups_with_Local_Backing

Idea
One big Physical Volume (PV).
One big Volume Group (VG).
One Logical Volume (LV00) called "images", 50GiB, formatted in ext4. This LVM is used to store .iso or OpenVZ templates.
One Logical Volume (LV01) called "backup", 500GiB, formatted in ext4. This LVM is used to store backup (snaposhot) of vm.
The rest of the VG is free of LVM and not formatted. It will be use to store the virtual machines.

Model
PV - my SAS:/dev/sda size:4TiB
VG - name:ds size:4TiB
LV00 - name:images (/dev/ds/images) size:50GB fs:ext4
LV01 - name:backup (/dev/ds/backup) size:500GB fs:ext4
rest - ~3.5TiB free

Commands
1. Connect via SSH on proxmox and define the disks of SAS as a whole Physical Volume (PV) :
Code:
# pvcreate /dev/sda

2. Create the Volume Groupe (VG) :
Code:
# vgcreate ds /dev/sda

3. Create a Logical Volume (LV) for images :
Code:
# lvcreate -n images -L 50g ds

4. Create a Logical Volume (LV) for backup :
Code:
# lvcreate -n backup -L 500g ds

5. Create a File System on "images" and on " backup" :
Code:
# mkfs -t ext4 /dev/ds/images
# mkfs -t ext4 /dev/ds/backup

6. Mount "images" and "backup" on the File System of Proxmox :
Code:
# mkdir /mnt/images
# mkdir /mnt/backup
# mount /dev/ds/images /mnt/images
# mount /dev/ds/backup /mnt/backup

7. Add these LV on fstab with defaults options :
Code:
# vi /etc/fstab
  /dev/ds/images /mnt/images ext4 defaults 0 0
  /dev/ds/backup /mnt/backup ext4 defaults 0 0

8. Add the Directory "images" via the Proxmox webadmin interface :
Storage view > Datacenter > Storage > add Directory
ID : images
Directory : /mnt/images
Content : images, ISO, templates
Enable : yes
Shared : yes
Max Backups : 0

9. Add the Directory "backup" via the Proxmox webadmin interface :
Storage view > Datacenter > Storage > add Directory
ID : backup
Directory : /mnt/backup
Content : Backups
Enable : yes
Shared : yes
Max Backups : 2

10. Add LVM group to the storage list via the Proxmox webadmin interface
Storage view > Datacenter > Storage > add LVM group
Storage Name : ds
Base Storage : Existing Volume Groups
Volume Group Name : ds

11. Create a KVM virtual machine :
Store the vm on the LVM group "ds"
Once the vm is created, an additionnal Logicial Volume will appeared, see it with # lvdisplay
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!