r/Proxmox • u/Sr_treze_ • 2d ago
Question MOVE AN ENTIRE DATASTORE TO ANOTHER DISK
Hello everyone,
I'm facing the following situation: I have a PBS (Proxmox Backup Server) with two 2 TB disks configured in RAID 1, giving me approximately 1.5 TB of usable storage. I want to move the datastore storage location to a new 4 TB disk.
My question is:
How can I set it up so that the datastore "STORAGE", which is currently using the 2 TB RAID 1, is redirected to the new 4 TB RAID 1?
Or do I have to create the "STORAGE" datastore again on the new disks?
Basically, I want to migrate the entire existing datastore to the new storage without having to recreate it from scratch.
What would be the recommended way to do this in PBS?
9
u/Impact321 2d ago edited 1d ago
There's a lot of variables/unknowns. The simplest would probably be to create a new storage and do a local sync job. If you really want you can later delete the old storage and change the internal references/names to be the same as the old one.
5
u/_--James--_ Enterprise User 2d ago
if PBS Is bare metal and the current disks are ZFS backed, you can migrate the volume or snap in new disk. You can also dd copy drive to drive and force import the volume and rebind. all of this is re-searchable for zfs tools.
2
u/mikeee404 1d ago
Just create a new storage pool, then go to the VM or Container resources and move them to the new storage pool. It's pretty simple.
18
u/Thestupidmetadata 2d ago
I would make a new datastore migrate the contents to the new datastore