Backup folder moved to my local storage from my USB drive...how to get it back

stubbo66

New Member
Apr 2, 2024
16
1
3
Hi,

I attached an external USB drive (1TB) to my proxmox install, formatted it etc. etc., and created a Directory so I can use it for storing backups.

What I noticed is that proxmox thinks I only have 350GB available to that drive, even though everything else tells me it's 1TB.

fdisk -l
Code:
Disk /dev/sdd: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: SSD 850 PRO 1TB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 33553920 bytes
Disklabel type: gpt
Disk identifier: 5069C683-5316-4DF7-BF4E-6A0A457D08E6


Device     Start        End    Sectors   Size Type
/dev/sdd1   2048 2000409230 2000407183 953.9G Linux filesystem

lsblk
Code:
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sdd           8:48   0 953.9G  0 disk
└─sdd1        8:49   0 953.9G  0 part

Neither df or mount list the directory, called ext in my case.

I think what happened is when I originally created the Directory, even though I created it against sdd1, I presume it must have done it as a mount point. Then after reboooting the server it must have removed the mount point and left the ext folder on my local drive as an empty folder and has happily been writing my backups there ever since.

So how do I sort this all out? Please correct me where I am wrong and fill in any blanks along the way.

Firstly, I need to copy the backups somewhere else, I presume I can just mv the entire dumps folder to another drive...I have a 6YB raid with plenty of room for that I can use.

Then how do I release the ext storage from the node? there is no option for me to do that in the UI. I assume here that in doing so this would also release the sdd1 to be able to be reallocated again.

Next I presume I have to allocate the drive again, let it assign a mount name and mount the drive, then go and edit
Code:
/etc/fstab
and make it a permanent assignment based on the drive information from
Code:
ls -n /dev/disk/by-id/

At some point along the way I removed backups as a storage type from local, but I can't find how I did that. Can you change the storage types assigned once you have done so, if so how?

Am I on the right path?

If I then copy the files back from the raid array to the new dumps directory. and if all is well I can erase all the original copies of the dump files from the /mnt/ext folder and the raid array.

I'm new to proxmox, and pretty much a noob with linux, but I am an IT professional so I have a decent grasp...but have really no idea if what I am doing is right or not?

Appreciate some sane voices to assist.
 
And just to follow on from the above, less important at the moment, but I also have a zfs raid mirror of 2 x 500GB drives where proxmox installed. It shows as a single 500GB zfs partition on each of the two drives, but under the node, local is listed as occupying 195 GB (13.66GBG Used) and local-zfs shows as 305GB (124GB used)

My 3 CT Volumes only account for 25GB, and I see 4 VM disks stating around 550GB

All of this I think also includes the backups. as well on that mirrored pair of 500GB drives, so I'm guessing those would be the maximum sizes for the clients to use rather than the actual consumed size otherwise I would have blown all my space already.

But can I decrease the proxmox allocation from 200GB to something more like 50GB as I won't be putting anytihng more with the OS, and then add the remaining 150GB to the 305GB to increase my VM storage capacity.

Here is the output from zfs list

Code:
NAME                           USED  AVAIL  REFER  MOUNTPOINT
rpool                          281G   165G    96K  /rpool
rpool/ROOT                     152G   165G    96K  /rpool/ROOT
rpool/ROOT/pve-1               152G   165G   152G  /
rpool/data                     116G   165G   112K  /rpool/data
rpool/data/subvol-101-disk-0   506M  7.51G   506M  /rpool/data/subvol-101-disk-0
rpool/data/subvol-102-disk-0   517M  7.49G   517M  /rpool/data/subvol-102-disk-0
rpool/data/subvol-103-disk-0  5.51G  2.49G  5.51G  /rpool/data/subvol-103-disk-0
rpool/data/vm-100-disk-0      36.2G   165G  36.2G  -
rpool/data/vm-104-disk-0       124K   165G   124K  -
rpool/data/vm-104-disk-1      72.9G   165G  72.9G  -
rpool/data/vm-104-disk-2        64K   165G    64K  -
rpool/var-lib-vz              12.7G   165G  12.7G  /var/lib/vz
zfsRaid                       2.74T  2.52T  2.40T  /zfsRaid
zfsRaid/vm-100-disk-0         3.33M  2.52T  99.4K  -
zfsRaid/vm-100-disk-2          345G  2.86T  99.4K  -

I won't pretend I understand all that. but I have two 500GB SATA disk in Raid1 (Mirrored) called rpool, and 5 x 2TB NVME drives in RaidZ2 called zfsRaid.

But it's the rpool I think I need to change the drive sizes on somehow...if that's even possible without blowing away the system.
 
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!