convert default LVM "data" to real partition for sheepdog

Apollon77

Well-Known Member
Sep 24, 2018
153
13
58
47
Hi,

I'm in contact with proxmos for a week now after several friends only said good things and the first experiences are really great. I want to move my "home environment" to VMs. Currently I have 4 Intel NUcs for several proposes and alsready started with a Proxmox cluster with 2 of them to play around and also migrated some of my physical machines to VMs in this cluster. So far so great.
So basically I'm using the default setup with ext4, 20GB root partition and rest as LVM-thin data partition.

While plaing around I learned that automatic miugration is only possible wit a shared filesystem. In theory I could use my Synology NAS but then it would be signe point of failure, so it is now about a cluster filesystem.
So the idea would be to move the LVM/thin data partition into some "real" so that Ican use this for sheepdog and then create a sheepdog cluster.

So question is: Can someone advice what I need to do to move from this "lvm based" data partition to something I can use there? I also did not found the data partition in /etc/fstab, so I'm a bit lost here. Also google did not realled made me understand.

Here are some output from the setup:

Code:
root@pm1:/etc/pve# df
Filesystem                             1K-blocks      Used  Available Use% Mounted on
udev                                     3986152         0    3986152   0% /dev
tmpfs                                     801420     10956     790464   2% /run
/dev/mapper/pve-root                    20511312   2000980   17445372  11% /
tmpfs                                    4007096     64368    3942728   2% /dev/shm
tmpfs                                       5120         0       5120   0% /run/lock
tmpfs                                    4007096         0    4007096   0% /sys/fs/cgroup
/dev/sda2                                 258095       288     257807   1% /boot/efi
/dev/fuse                                  30720        20      30700   1% /etc/pve
tmpfs                                     801416         0     801416   0% /run/user/0
root@pm1:/etc/pve# fdisk -l
Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 164071C3-2C63-49D8-92AD-802E39726FF4

Device      Start       End   Sectors   Size Type
/dev/sda1    2048      4095      2048     1M BIOS boot
/dev/sda2    4096    528383    524288   256M EFI System
/dev/sda3  528384 234441614 233913231 111.6G Linux LVM


Disk /dev/mapper/pve-swap: 7 GiB, 7516192768 bytes, 14680064 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/pve-root: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
root@pm1:/etc/pve# less corosync.conf
root@pm1:/etc/pve# pvs
  PV         VG  Fmt  Attr PSize   PFree
  /dev/sda3  pve lvm2 a--  111.54g 13.88g
root@pm1:/etc/pve# vgs
  VG  #PV #LV #SN Attr   VSize   VFree
  pve   1   3   0 wz--n- 111.54g 13.88g
root@pm1:/etc/pve# lvs
  LV   VG  Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  data pve twi-aotz-- 68.66g             0.00   0.04                          
  root pve -wi-ao---- 20.00g                                                  
  swap pve -wi-ao----  7.00g

Or should I reinstall Proxmox from scratch with special settings and create a official partition afterwards with fdisk?

Thank you for your ideas :)

Ingo
 
Last edited:

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!