Storage Model - Proxmox VE PDF
Storage Model - Proxmox VE PDF
Storage Model - Proxmox VE PDF
http://pve.proxmox.com/wiki/Storage_Model
Personal tools
Log in
Storage Model
From Proxmox VE
Contents
1 Introduction 2 Storage types 2.1 LVM Groups - An Ideal Solution 2.1.1 LVM Groups with Network Backing 2.1.2 LVM Groups with Local Backing 2.2 iSCSI Target 2.3 NFS Share 2.4 Use iSCSI LUN directly 2.5 Directory 2.5.1 HowTo mount a Windows (SaMBa) share on Proxmox VE via /etc/fstab 2.5.2 References
Introduction
Proxmox VE is using a very flexible storage model. Virtual machine images can be stored on local storage (and more than one local storage type is supported) as well as on shared storage like NFS and on SAN (e.g. using iSCSI). All storage definitions are synchronized throughout the Proxmox_VE_2.0_Cluster, therefore its just a matter of minutes before a SAN configuration usable on all Proxmox_VE_2.0_Cluster nodes. You may configure as many storage definitions as you like! One major benefit of storing VMs on shared storage is the ability to live-migrate running machines without any downtime, as all nodes in the cluster have direct access to VM disk images. Note: OpenVZ containers must be on local storage or NFS.
Storage types
The following storage types can be added via the web interface. Network storage types supported LVM Group (network backing with iSCSI targets) iSCSI target NFS Share Direct to iSCSI LUN Local storage types supported LVM Group (local backing devices like block devices, FC devices, DRBD, etc.) Directory (storage on existing filesystem)
1 de 4
5/29/2013 9:34 AM
http://pve.proxmox.com/wiki/Storage_Model
2 de 4
5/29/2013 9:34 AM
http://pve.proxmox.com/wiki/Storage_Model
And finally: Add the LVM Group to the storage list via the web interface:
"Storage name: usb", "Base storage: Existing volume groups", "Volume Group Name: usb-stick"
Now you can create the KVM VM: Type: Fully virtualized (KVM) Disk storage: usb (lvm) Disk space (GB): 1 Image format: raw (that is the only option you can choose now and therefore does not support Live_Snapshots) After the creation (lets put will be VM 117), you will have an additional logical volume of the size of the VMs disk space:
proxmox-ve:~# lvdisplay --- Logical volume --LV Name /dev/usb-stick/vm-117-disk-1 VG Name usb-stick LV Size 1.00 GB
Note: after the experiment, to remove the test storage do: Remove usb storage from web interface then
proxmox-ve:~# vgremove usb-stick Volume group "usb-stick" successfully removed
then
proxmox-ve:~# pvremove /dev/sdb1 Labels on physical volume "/dev/sdb1" successfully wiped
iSCSI Target
iSCSI is a widely employed technology used to connect to storage servers. Almost all vendors support iSCSI. There are also open source solutions available: (e.g. Openfiler (http://www.openfiler.com) , FreeNAS (http://www.freenas.org) and OpenMediaVault (http://www.openmediavault.org/) that is Debian based). iSCSI targets can be fully configured via the web interface. For details see Storage_Model#LVM Groups with Network Backing.
NFS Share
NFS is a very simple way to integrate shared storage into Proxmox VE and enables live-migration. Storage on NFS shares is similar to the file-on-disk directory method, with the added benefit of shared storage and live migration. NFS shares can be fully configured via the web interface. Click Add NFS Share on the Storage list As storage name use whatever you want but take care, this name cannot be changed later.
3 de 4
5/29/2013 9:34 AM
http://pve.proxmox.com/wiki/Storage_Model
Give the Server IP address or servername of your NFS server and scan for Exports Select the Export Content: select what you want to store: Virtual Disk images, ISO images, OpenVZ templates, backup files or containers. Click save
Directory
Proxmox VE can use local directories or locally mounted shares for storage (Virtual disk images, ISO images, or backup files). This is the least flexible, least efficient storage solution, but is very similar to the NFS method, where images are stored on an existing filesystem as large files.
nano /etc/fstab
Then define a Directory based storage on the web interface using the newly created directory /mnt/samba1, for example to store backups.
References
Adding Second Hard Disk (http://www.debiantutorials.com/add-a-second-hard-disk/) Expanding Disk Capacity (http://www.linuxhomenetworking.com/wiki/index.php /Quick_HOWTO_:_Ch27_:_Expanding_Disk_Capacity) /etc/fstab options (http://wiki.debian.org/fstab) Retrieved from "http://pve.proxmox.com/wiki/Storage_Model" Categories: HOWTO | Technology This page was last modified on 1 May 2013, at 21:32.
4 de 4
5/29/2013 9:34 AM