Partitioning an existing SSD

mrmuttley

New Member
Aug 17, 2023
5
0
1
Hi guys,
I'm hoping that someone can help - I've googled my question but can't find the exact answer to my query and don't want to mess anything up.
My setup:
  • Proxmox 7.4-3 on a dedicated Dell MSFF PC with the following HDD config:
  • HP internal NVME drive (512 GB) where Proxmox and my VM's live.
  • Sandisk SSD (1 TB) (sda) which is currently setup as a storage drive in Proxmox with scheduled backups.
I'd like to re-partition the Sandisk 1 TB SSD drive as follows:
  • Partition 1: 200GB for Proxmox storage
  • Partition 2: Pass through balance of disk space for a VM such as TrueNAS
I'm able to do the pass through bit, it's just the partitioning bit that I need assistance with.
I know that this is not ideal but my Mrs would kill me if I purchased a NAS device for this purpose.
If anyone can help, I'd really appreciate it.

root@pve:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 931.5G 0 disk └─sda1 8:1 0 931.5G 0 part /mnt/data nvme0n1 259:0 0 476.9G 0 disk ├─nvme0n1p1 259:1 0 1007K 0 part ├─nvme0n1p2 259:2 0 512M 0 part /boot/efi └─nvme0n1p3 259:3 0 476.4G 0 part ├─pve-swap 253:0 0 8G 0 lvm [SWAP] ├─pve-root 253:1 0 96G 0 lvm / ├─pve-data_tmeta 253:2 0 3.6G 0 lvm │ └─pve-data-tpool 253:4 0 349.3G 0 lvm │ ├─pve-data 253:5 0 349.3G 1 lvm │ ├─pve-vm--100--disk--0 253:7 0 4M 0 lvm │ ├─pve-vm--100--disk--1 253:8 0 32G 0 lvm │ ├─pve-vm--101--disk--0 253:9 0 32G 0 lvm │ ├─pve-vm--103--disk--0 253:11 0 32G 0 lvm │ └─pve-vm--105--disk--0 253:12 0 32G 0 lvm └─pve-data_tdata 253:3 0 349.3G 0 lvm └─pve-data-tpool 253:4 0 349.3G 0 lvm ├─pve-data 253:5 0 349.3G 1 lvm ├─pve-vm--100--disk--0 253:7 0 4M 0 lvm ├─pve-vm--100--disk--1 253:8 0 32G 0 lvm ├─pve-vm--101--disk--0 253:9 0 32G 0 lvm ├─pve-vm--103--disk--0 253:11 0 32G 0 lvm └─pve-vm--105--disk--0 253:12 0 32G 0 lvm root@pve:~#
 
Shinking a partition can always corrupt your data. So first you should backup all that data on it.
For the actual partitioning part I would boot into a gparted live ISO if you are not familiar with CLI partitioning tools like fdisk, sgdisk or parted.

Also keep in mind that disk passthrough with partitions can be problematic. Windows for example doesn't like it when you passthrough a partition instead of the whole disk.

And I would't use TrueNAS with its ZFS in case that's a consumer SSD. Especially not if it uses QLC NAND. Then something like OpenMediaVault with a ext4/xfs filesystem might be better choice.
 
Last edited:
Shinking a partition can always corrupt your data. So first you should backup all that data on it.
For the actual partitioning part I would boot into a gparted live ISO if you are not familiar with CLI partitioning tools like fdisk, sgdisk or parted.

Also keep in mind that disk passthrough with partitions can be problematic. Windows for example doesn't like it when you passthrough a partition instead of the whole disk.

And I would't use TrueNAS with its ZFS in case that's a consumer SSD. Especially not if it uses QLC NAND. Then something like OpenMediaVault with a ext4/xfs filesystem might be better choice.
Thanks for your input - I really appreciate it!
Not too concerned about the data on the drive as most of it's pretty newly setup but will keep this in mind and will give gparted or parted a go.

I didn't mention above, but I'm not planning on using any of the partitions with Windows. It'll mainly be for backup and media purposes for Home Assistant (one of my VM's) on Proxmox which lives on it's own VLAN. I don't want to expose any of my other VM's to this as all my IOT devices live in the same VLAN as Home Assistant.

I'll do some reading on OpenMediaVault - thanks once again.
 

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!