Hi
I try to follow theses steps but it fails :
root@pve:~# lvcreate -n pvepool -L 340g pve
Logical volume "pvepool" created.
root@pve:~# lvconvert --type thin-pool pve/pvepool
WARNING: Converting logical volume pve/pvepool to pool's data volume.
THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.)
Do you really want to convert pve/pvepool? [y/n]: y
Converted pve/pvepool to thin pool.
root@pve:~# mkfs.ext4 /dev/pve/pvepool
mke2fs 1.42.12 (29-Aug-2014)
Creating filesystem with 89128960 4k blocks and 22282240 inodes
Filesystem UUID: fae430d4-3fd2-4a7f-9de2-7a79ba07f91d
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
root@pve:~# lvdisplay pve/pvepool
--- Logical volume ---
LV Name pvepool
VG Name pve
LV UUID 1mMJyl-B7Lt-2TXg-kviK-kc4J-Sd6x-Hm8o1e
LV Write Access read/write
LV Creation host, time pve, 2015-12-16 10:32:04 +0100
LV Pool metadata pvepool_tmeta
LV Pool data pvepool_tdata
LV Status available
# open 0
LV Size 340.00 GiB
Allocated pool data 0.00%
Allocated metadata 0.42%
Current LE 87040
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:5
Then add a storage.cfg's entry for thin pool (in /etc/pve/storage.cfg) :
Code:
dir: local
path /var/lib/vz
content rootdir,images,vztmpl,iso
maxfiles 0
lvmthin: thin1
vgname pve
thinpool pvepool
Reboot ... and then :
root@pve:~# lvdisplay pve/pvepool
--- Logical volume ---
LV Name pvepool
VG Name pve
LV UUID 1mMJyl-B7Lt-2TXg-kviK-kc4J-Sd6x-Hm8o1e
LV Write Access read/write
LV Creation host, time pve, 2015-12-16 10:32:04 +0100
LV Pool metadata pvepool_tmeta
LV Pool data pvepool_tdata
LV Status NOT available
LV Size 340.00 GiB
Current LE 87040
Segments 1
Allocation inherit
Read ahead sectors auto
root@pve:~# lvscan
ACTIVE '/dev/pve/swap' [8.00 GiB] inherit
ACTIVE '/dev/pve/root' [50.00 GiB] inherit
ACTIVE '/dev/pve/data' [11.03 GiB] inherit
inactive '/dev/pve/pvepool' [340.00 GiB] inherit
- Should I manually add a /etc/fstab entry ?
- Is my storage.cfg entry incorrect ?