proxmox:disks:add_storage_drives:lvm
Table of Contents
Proxmox - Disks - Add Storage Drives - LVM
Use LVM if you have single data disk.
List disk devices with lsblk
lsblk
returns:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 298.1G 0 disk ├─sda1 8:1 0 1007K 0 part ├─sda2 8:2 0 512M 0 part └─sda3 8:3 0 297.6G 0 part ├─pve-swap 253:1 0 4G 0 lvm [SWAP] ├─pve-root 253:2 0 74.3G 0 lvm / ├─pve-data_tmeta 253:3 0 2G 0 lvm │ └─pve-data 253:5 0 199.3G 0 lvm └─pve-data_tdata 253:4 0 199.3G 0 lvm └─pve-data 253:5 0 199.3G 0 lvm sdb 8:16 0 14.6T 0 disk ├─VM1-vm--103--disk--0 253:0 0 8G 0 lvm ├─VM1-vm--100--disk--0 253:6 0 32G 0 lvm └─VM1-vm--102--disk--0 253:7 0 8G 0 lvm
Create partitions
fdisk /dev/sdb
Format device
mkfs.ext4 /dev/sdb1
Create a physical group
pvcreate /dev/sdb1
Create logical group
vgcreate vSSD /dev/sdb1
NOTE: To use GUI
- Navigate to DataCenter → Storage → Add → LVM.
To add as a directory
After formatting mount the some directory:
mkdir /backup mount /dev/sdb1 /backup vim /etc/fstab
and add:
- /etc/fstab
/dev/sdb1/ /backup ext4 defaults 0 0
NOTE: To use GUI:
- Navigate to Datacenter → Storage → Add → Directory.
proxmox/disks/add_storage_drives/lvm.txt · Last modified: 2021/06/19 11:26 by peter