Skip to main content Which storage ID corresponds to which disks? : r/Proxmox

Get the Reddit app

Scan this QR code to download the app now
Or check it out in the app stores
r/Proxmox icon
r/Proxmox icon
Go to Proxmox

Which storage ID corresponds to which disks?

Question

I've been scratching my head over this for a couple of hours.. I'm far from being a master at any of this, and i might have misunderstood something, so as a baseline:

There are physical disks. Disks have partitions. A partition has a file system. The file system has a storage ID in Proxmox. something like that, please tell me if and where im wrong.

By storage ID, i mean what you typically call storage, like 'backup', 'local' and so on.

Right, so i want to use some of the physical disks in my proxmox node for a NAS VM (also in Proxmox), so i'm dedicating 2 physical disks solely to the NAS. I've identified the disks i want to use, under node > disks. It is /dev/sdb and /dev/sdc.

r/Proxmox - Which storage ID corresponds to which disks?

Since those disks are already in use, i want to move everything away from them and onto /dev/sda. There is plenty of storage space on /dev/sda for that.

Under node > disks i have a list of the disks and how large they are, but not how full they are and also not what kind of file system or the storage ID of that file system. That list is shown in the above picture.

Under datacenter > storage i have a list of the storage ID's and the type/file system but not what disks they are occupying.

r/Proxmox - Which storage ID corresponds to which disks?

I've also tried several command in the shell to see if i can find a list with ALL the information i need. i tried 'pvesm status', 'lsblk', 'fdisk -l' but none of them provides it seems..

Why is that? Why can't i find a list of the storage ID's and the disks they are on?

Squarespace tools make it easy to create a beautiful and unique website, allowing you to control every step of the design process. Sign up now.
Thumbnail image: Squarespace tools make it easy to create a beautiful and unique website, allowing you to control every step of the design process. Sign up now.
Sort by:
Best
Open comment sort options

' lsblk -f ' and ' df -hT ' at a root prompt may help

If you're looking for which VM/CT components are on which PVE datastores, for each datastore listed in the output of pvesm status, run pvesm list <ds>.

Here's a one-liner that will do that for you:

pvesm status | tail +2 | while read ds type state tot use avail pct; do 
  echo -e "==> ${ds}\ttype ${type}\tsize $(( tot / 1048576 ))GB"; 
  pvesm list "${ds}"; echo ""; 
done
More replies

I'm looking for what storage ID's are located on which physical disks?

As seen in picture 2 in my post, i have backup, ds224-media, iso, local, local_backup and os-data. Which physical disks are they on? If i pull out a disk, which storage ID's will disappear?

I don't understand why that isn't something that should be easily available

The commands you provided unfortunately did not give me that overview.

More replies
More replies