No Disk Unsed

Nadir

New Member
Jun 26, 2019
17
0
1
27
Hi
I have installed a new proxmox server and when i try to create a ZFS or LVM it says "No Disk Unused" in devices list.

These information are shown in my disk details from Proxmox web gui
Enabled: Yes
Active: Yes
Content : Disk image, ISO image, Container, Snippets, Container template
Type: Directory
Usage: 0.45% (2.07 GiB of 456.55 GiB)
I have two SSDs attached to server. but it is displaying only and and this one is also not available to use.
When i create a VM. No disk is attached to VM as well.

I want to attach both disks to PROXMOX and make them available for use.
__________________________________
I have two SSDs available but it says nothing available. why? and what should i do to make it available. Google searches show FDISK partition removal but it corrupts my server and i have to install it again if i do so.
 
Please post the output of the following two commands
Code:
fdisk -l
Code:
pvesm status


"Unused" means really empty. If you have 2 disks in total and PVE is installed then at least one certainly is not empty.
When i create a VM. No disk is attached to VM as well.
This is something you have to specify when creating the VM. Your directory storage should be available.
 
Directory is available. Both of the disks show in disks list. but why am not i able to create LVM with them? and they don`t show in Disks list when installing Windows in VM
Creating LVM says No Unsed Disks.
I swear both of those disks have nothing other than proxmox installed on one of them.
 
root@sd-138358:~# fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x670355bb

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 614399 612352 299M fd Linux raid autodetect
/dev/sda2 614400 1662975 1048576 512M 82 Linux swap / Solaris
/dev/sda3 1662976 976771071 975108096 465G fd Linux raid autodetect


Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x8febbed1

Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 614399 612352 299M fd Linux raid autodetect
/dev/sdb2 614400 1662975 1048576 512M 82 Linux swap / Solaris
/dev/sdb3 1662976 976771071 975108096 465G fd Linux raid autodetect


Disk /dev/md0: 298.7 MiB, 313196544 bytes, 611712 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/md1: 464.9 GiB, 499121127424 bytes, 974845952 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
 
root@sd-138358:~# pvesm status
Name Type Status Total Used Available %
local dir active 478723816 2162336 452173948 0.45%
root@sd-138358:~#
 
I have installed a new proxmox server
Is this at some hosting provider or did you install this on your own physical server via ISO?

In your fdisk output you can see entries on /dev/sda as well as /dev/sdb. Consequently, no disk is unused. The reason for this is that your two SSDs form a RAID (which is also stated in the fdisk output).

and they don`t show in Disks list when installing Windows in VM
This is a different topic. Without changing to much on your current setup, you have to to click on your VM -> Hardware -> Add Hard Disk. There you choose your directory storage "local" for the virtual disk to reside on. This virtual disk is then passed to your VM.
 
Problem solved. Rebooted in rescue mode and used

Boot In Debian Rescue Mode
_______________________
Delete PARTITION TO free up space
use cfdisk to delete

Use fdisk -l to see partitions
enter fdisk /dev/sdb to start editing sdb

create new partition using n and enter size
enter w to write
enter cltr+c
reboot


Free up DISK
dd if=/dev/zero bs=1k count=10 of=/dev/sdb3

Extend a disk
vgextend vg_data /dev/sdb3

create lvm
vgcreate vmdata /dev/sdb3
 
Hi I am new to proxmox I have installed on my PC. I am trying to create ZFS but the error shows No Disk Unused. When i went and checked my Disks tab I can see my Harddisk 1.8 TB.
I ran the command fdisk -l and I can see my HDD in sba path. can you please help

Disk identifier: DAD9944C-6F24-4A52-886C-F64364B7F547

Device Start End Sectors Size Type
/dev/nvme0n1p1 34 2047 2014 1007K BIOS boot
/dev/nvme0n1p2 2048 1050623 1048576 512M EFI System
/dev/nvme0n1p3 1050624 500118158 499067535 238G Linux LVM


Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: TOSHIBA DT01ACA2
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: F7ABDD53-5329-4757-BE2E-3D268F69BFA9

Device Start End Sectors Size Type
/dev/sda1 64 8191 8128 4M EFI System
/dev/sda2 7086080 15472639 8386560 4G Microsoft basic data
/dev/sda3 15472640 3907029134 3891556495 1.8T Microsoft basic data
/dev/sda4 8192 8223 32 16K Linux filesystem
/dev/sda5 8224 520191 511968 250M Microsoft basic data
/dev/sda6 520224 1032191 511968 250M Microsoft basic data
/dev/sda7 1032224 1257471 225248 110M VMware Diagnostic
/dev/sda8 1257504 1843199 585696 286M Microsoft basic data
/dev/sda9 1843200 7086079 5242880 2.5G VMware Diagnostic

Partition table entries are not in disk order.


Disk /dev/mapper/pve-swap: 8 GiB, 8589934592 bytes, 16777216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/pve-root: 59.3 GiB, 63619203072 bytes, 124256256 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
 

Attachments

  • Screen Shot 2021-02-15 at 3.20.23 PM.png
    Screen Shot 2021-02-15 at 3.20.23 PM.png
    34.8 KB · Views: 25
If you want to use sda for ZFS you need to delete all data on it. Delete the 9 partitions.
 
Can I delete the data from UI ?
if not can you please let me know how we can do that via commandline?
 
You can for example use fdisk using CLI.

fdisk /dev/sda
And then use fdisk to delete the partition (I think it was entering "d" to delete the last partition) and writing changes to the disk (I think it was "w") to finish it. If you got 9 partitions you need to enter "d" 9 times.
 
  • Like
Reactions: nickN

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!