[PVE-User] How to get rid of default thin-provisioned default LV "data"?

Frank Thommen f.thommen at dkfz-heidelberg.de
Sun Jan 19 14:05:30 CET 2020


That's what I have written in our internal documentation:

--------------------------------------------------
We delete the current thin-provisioned LV, create a new 
"thick-provisioned" LV instead, format it, mount it and configure it as 
"dir" storage for PVE:

First manually remove the lvmthin entry from /etc/pve/storage.cfg, then

$ lvremove /dev/pve/data
Do you really want to remove and DISCARD active logical volume pve/data? 
[y/n]: yes
   Logical volume "data" successfully removed
$ lvcreate -n data -l 100%FREE pve
   Logical volume "data" created.
$ mkfs -t ext4 /dev/pve/data
mke2fs 1.44.5 (15-Dec-2018)
Creating filesystem with 216501248 4k blocks and 54132736 inodes
Filesystem UUID: 5d457f4c-40a5-4423-9c3a-03db1ae76869
Superblock backups stored on blocks:
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
	4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
	102400000, 214990848

Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done

$ mkdir /data
$ echo "/dev/pve/data /data ext4 defaults 0 2" >> /etc/fstab && mount -a
$ pvesm add dir data --path /data --content 
images,rootdir,vztmpl,iso,backup,snippets
$

done...
--------------------------------------------------

HTH, frank


On 19.01.20 00:53, Saint Michael wrote:
> can somebody post the full chain of commands?
> That is the only reason why I am not using the software.
> 
> 
> On Sat, Jan 18, 2020 at 2:54 PM Frank Thommen <f.thommen at dkfz-heidelberg.de>
> wrote:
> 
>> Thanks Gianni,
>>
>> that worked just fine.  I've now created a regular LVM LV instead,
>> formatted and mounted it and configured it as "dir" storage.
>>
>> frank
>>
>>
>> On 16.01.20 21:19, Gianni Milo wrote:
>>> This should be a case of removing (or comment out) its corresponding
>> entry
>>> in /etc/pve/storage.cfg and then removing it by using the usual lvm
>>> commands.
>>> You can then "convert" it to thick lvm and re-add it in the config
>> file...
>>>
>>> Gianni
>>>
>>> On Thu, 16 Jan 2020 at 18:26, Frank Thommen <
>> f.thommen at dkfz-heidelberg.de>
>>> wrote:
>>>
>>>> Dear all,
>>>>
>>>> when installing PVE on our servers with 1 TB boot disk, the installer
>>>> creates regular /root and swap LVs (ca. 100 GB in total) and the rest of
>>>> the disk (800 GB) is used for a thin-provisioned LV named "data".
>>>> Personally I don't like thin-provisioning and would like to get rid of
>>>> it and have a "regular" LV instead.  However I couldn't find a way to
>>>> achieve this through the gui (PVE 6.1-3).
>>>>
>>>> Did I miss some gui functionality or is it ok to remove the LV with
>>>> regular lvm commands?  Will I break something if I remove it?  No
>>>> VM/container has been installed so far.  The hypervisors are freshly
>>>> installed and they contain additional several internal disks which we
>>>> plan to use for local storage/Ceph.
>>>>
>>>> Cheers
>>>> frank
>>>> _______________________________________________
>>>> pve-user mailing list
>>>> pve-user at pve.proxmox.com
>>>> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
>>>>
>>> _______________________________________________
>>> pve-user mailing list
>>> pve-user at pve.proxmox.com
>>> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
>>>
>>
>>
>> --
>> Frank Thommen          | HD-HuB / DKFZ Heidelberg
>>                          | f.thommen at dkfz-heidelberg.de
>> _______________________________________________
>> pve-user mailing list
>> pve-user at pve.proxmox.com
>> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
>>
> _______________________________________________
> pve-user mailing list
> pve-user at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
> 


-- 
Frank Thommen          | HD-HuB / DKFZ Heidelberg
                        | f.thommen at dkfz-heidelberg.de



More information about the pve-user mailing list