proxmox:add_storage_drives:lvm
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
proxmox:add_storage_drives:lvm [2021/05/27 18:53] – created peter | proxmox:add_storage_drives:lvm [2021/06/19 11:26] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Proxmox - Add Storage Drives - LVM ====== | ||
- | |||
- | Use LVM if you have single disk. | ||
- | |||
- | <code bash> | ||
- | # List disk devices with lsblk | ||
- | # Select a device to add | ||
- | # create partions | ||
- | $ fdisk /dev/sdb | ||
- | |||
- | # format device | ||
- | $ mkfs.ext4 /dev/sdb1 | ||
- | |||
- | # Create a physical group | ||
- | $ pvcreate /dev/sdb1 | ||
- | |||
- | # Create logical group | ||
- | $ vgcreate vSSD /dev/sdb1 | ||
- | |||
- | # TO add DataCenter -> Storage -> Add -> LVM | ||
- | |||
- | --- | ||
- | |||
- | # To add as a dir | ||
- | # After formatting mount the some dir | ||
- | $ mkdir /backup | ||
- | $ mount /dev/sdb1 /backup | ||
- | $ vim /etc/fstab | ||
- | /dev/sdb1/ /backup ext4 defaults 0 0 | ||
- | |||
- | # To add Datacenter -> Storage -> Add -> Directory | ||
- | </ | ||
proxmox/add_storage_drives/lvm.1622141582.txt.gz · Last modified: 2021/05/27 18:53 by peter