create directory in logical volume data

Duckdave

Member
May 30, 2018
38
1
13
Hi,

short question, how can i create a directory in the data lv?

root@pve:/var/lib# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotz-- 2.61t 3.15 1.92
root pve -wi-ao---- 111.83g
swap pve -wi-ao---- 8.00g
vm-100-disk-1 pve Vwi-aotz-- 32.00g data 54.47
vm-104-disk-1 pve Vwi-aotz-- 100.00g data 6.51
vm-105-disk-1 pve Vwi-aotz-- 64.00g data 90.56
vm-106-disk-1 pve Vwi-aotz-- 8.00g data 29.54

upload_2018-6-23_9-56-30.png


do i need a mount point for pve/data?

Thanks for advice, regards david
 
pve/data is a lvm-thin logical volume. You cannot create a directory there, because it is a block storage device (available as storage named 'local-lvm')
 
okay, so in my opinion i need to shrink the data lv and create a new storage device?
Regards David
 
the goal should be a separate directory for backups that stays on a another storage as root.
 
the goal should be a separate directory for backups that stays on a another storage as root.

IMHO, it makes absolutely no sense to make a backup to the same disk. So please use a separate disk/location to store backups.
 
you are right dietmar, i see this as a first backup destination for configuration failure or something else or for faster restore. As a second destination a mention a other device.

Regards David
 
For configuraton errors / faster restore, you should use snapshots. `data` there is a thin pool supporting snapshots after all. If you still want to allocate some space for a directory storage, you can just as well create a thin volume on that data pool with the size you would otherwise want to shrink the pool by, that would be a safer option here.
 

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!