Migrate files

fabiobasso

Member
Apr 26, 2022
14
0
6
My server with the HD where Proxmox was installed and I had to migrate the other HDs to another server. Is there any way to access HD files with .QCOW2 images?
 
Do you want to access them on the old or on the new server? What kind of storage is on that disk? Directory?
 
I need access on the new server. It had a 2TB HD with LVM.
The attached screens represent when I plug the HD into another PC with Ubuntu.
 

Attachments

  • screen01.jpeg
    screen01.jpeg
    79.9 KB · Views: 5
  • screen02.jpeg
    screen02.jpeg
    60.9 KB · Views: 5
In the Proxmox Web UI, if you select your node and then 'Disks > LVM' does the VG show up? It should just show up if you moved it. Then you just need to create a new LVM(-thin) storage in 'Datacenter > Storage > Add > LVM(-thin)'
 
The HD is listed in the Disks menu, but an LVM volume does not appear. Is there any way to add the HD to the new server?

I'm having a really hard time understanding how to manage disks and partitions with ProxMox.
 

Attachments

  • pve_LVMs.png
    pve_LVMs.png
    116.4 KB · Views: 2
  • pve_hd2TB_sdc.png
    pve_hd2TB_sdc.png
    145.9 KB · Views: 2
Last edited:
Looks like there is no LVM on there, just an XFS partition.

What is the output of fdisk -l /dev/sdc ?
 
If it's just an XFS partition, is it still possible to add it to proxmox so that the virtual machine goes back to using that disk?

Rich (BB code):
root@pve:~# fdisk -l /dev/sdc
Disk /dev/sdc: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: ST2000DM006-2DM1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 81D3D521-DA47-4040-8968-5938560B9400

Device     Start        End    Sectors  Size Type
/dev/sdc1   2048 3907029134 3907027087  1.8T Linux filesystem
 
After you mount it you should be able to add it as Directory Storage.

Mount (replace <name> with how you want to name the storage):
Code:
mkdir /mnt/<name>
mount /dev/sdc1 /mnt/<name>

If this is already automatically mounted (e.g. from your file manager) then you would need to unmount first.

You should be able to simply add it as directory storage then (this enables all kinds opfcontent for this storage, seems like you had all of them activated judging from your directories - if this is not alright you can adjust it):
Code:
pvesm add dir <name> --content rootdir,backup,iso,snippets,images,vztmpl

In order to make this work after reboots as well you need to add the disk to fstab as well. [1]
If you need help with this as well, please post the output of lsblk -o +FSTYPE,UUID /dev/sdc*


[1] https://wiki.archlinux.org/title/fstab
 
I ran the command below:
pvesm add dir seagate2TB --path /mnt/seagate2TB/ --content rootdir,backup,iso,snippets,images,vztmp



Code:
root@pve:~# lsblk -o +FSTYPE,UUID /dev/sdc*
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT      FSTYPE UUID
sdc      8:32   0  1.8T  0 disk                       
`-sdc1   8:33   0  1.8T  0 part /mnt/seagate2TB xfs    a3868ffd-3d07-4afb-a9c8-fba45680cdaf
sdc1     8:33   0  1.8T  0 part /mnt/seagate2TB xfs    a3868ffd-3d07-4afb-a9c8-fba45680cdaf
 

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!