Backup up and migration recommendations from Ubuntu Server to Proxmox

gulbalee

New Member
Feb 9, 2023
2
0
1
I have learnt a lot from here and was stuck on how to migrate my ubuntu server data (which i attached as a proxmox vm) to a different hard disk so after not being able to find something relevant to what I need online, I thought I'd ask here for assistance.

I started hosting my own core2duo server with Ubuntu (server LTS) and set up lots of docker containers (which I don't mind losing if it is complicated) along with native Nextcloud (which I want to migrate to proxmox storage hdd).

The Ubuntu server was set up in this order;

- 160GB HDD mounted as / (also has Swap) (I can nuke this, I believe, since its 11GB used and probably just has the OS and mostly non essential stuff as far as pics and other data is concerned)

- 2x 1TB HDD in raid1 (mirrored) with 2 partitions

-partition 1 -- 98GB mounted as /var (40GB used)

-partition 2 -- (/dev/sdb in image) 621GB mounted as /home (contains data that I need, shrunk from full disk in a failed experiment where I thought I could make a partition in the raid array and use that as proxmox storage) (165GB used)

I got an HP Z800 with 2 Xeons recently and installed Proxmox on a new 120GB SSD. (Plus a spare 500GB SSD which is currently blank and can be used if needed for the solution to my requirement)

I took out all the drives from my previous server and passed them through to a new VM on Proxmox and was able to start up just fine. With the proper network settings, I got my old server as is and a ton of new CTs and VMs that were comparatively faster, plus a big boost from my 4GB Ram.

Ideally I wanted to get all of my HDDs free and accessible from Proxmox. Maybe ZFS in the future (which is now).

For additional Proxmox storage, I removed one drive from the Raid in the ubuntu VM and set it as a new drive in Proxmox (/dev/sdc in image). I have been using it for ISOs and VM/CT storage and it is doing well (183GB out of 983.5GB used as of today), but now I want to get the other hard disk from the ubuntu Raid1 free too so I can add it as a raid or ZFS in Proxmox.

I have thought of using rsync to transfer data from the VM to a new container but am not sure how I would then get the VM HDD to be added as a ZFS drive to Proxmox.

Could I shrink the ubuntu VM /home partition further and then clonezilla it onto the 500GB SSD, and then copy all data from the Proxmox 1TB drive to the 500GB SSD as well. Once done, remove both drives and re-add them as Proxmox ZFS?

Should I use rsync for folders I need instead of using clonezilla to get /home files to the 500GB SSD?

How should I go about this? Any suggestions?

TL:DR;

I have a 1TB HDD (half of a raid1 array) as ubuntu server storage for nextcloud data. I want to use the drive as part of proxmox ZFS (where there is another 1TB drive being used already and was previously the other half of the mentioned raid array). I dont want to lose the data in the ubuntu drive or proxmox drive. I have a spare 500GB drive that can be used to hold data while all of this is happening. Total space being used by both drives combined is almost 350GB.

I would like to set /dev/sdb and /dev/sdc from the image as proxmox zfs, while keeping the data on those drives.

Whats the best way and how can I get this done?

Thank you!Screenshot 2023-03-21 at 9.50.09 AM.png
 

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!