Added 5TB drive. only showing as 500GB

tomc

Active Member
Mar 10, 2010
94
0
26
76
Sydney Australia
Hi
I have added a 5TB Drive to the system running Proxmox V 3.3-5.
at the command line all looks OK shows as 4999999MB.
I add the drives as storage to Proxmox,
Datacentre, Storage, Add, Directory
ID CMbackup01
Directory /media/cm-back01
Note
There is existing 2TB Drive on the system which is used for current backup. This is showing Correctly.
Only difference is the 2TB is ext3, the 5Tb is ext4??
A head scratcher.

Tom
 
Hi Spirit
I'm new to Linux, so I followed the directions on http://www.debiantutorials.com/how-...-or-partition-using-uuid-and-ext4-filesystem/
I'm adding 2 drives
There is a
2TB Drive sda Proxmox install etc
2TB Drive sdb Backups etc Working correctly.
5TB Drive sdc Backups in Proxmox onlu showing as 500GB
5TB Drive sdd Backups in Proxmox onlu showing as 500GB

Here is the results from the fdisk -l
====================================================
root@proxmox:~# fdisk -l

Disk /dev/sdb: 1999.0 GB, 1998998994944 bytes
224 heads, 56 sectors/track, 311248 cylinders, total 3904294912 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0003c3c8

Device Boot Start End Blocks Id System
/dev/sdb1 2048 3904294911 1952146432 83 Linux

Disk /dev/sda: 1999.0 GB, 1998998994944 bytes
255 heads, 63 sectors/track, 243031 cylinders, total 3904294912 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000b4871

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1048575 523264 83 Linux
/dev/sda2 1048576 3904294911 1951623168 8e Linux LVM

Disk /dev/sdc: 5000.0 GB, 4999999389696 bytes
255 heads, 63 sectors/track, 607881 cylinders, total 9765623808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdc1 63 1175689215 587844576+ 83 Linux
Partition 1 does not start on physical sector boundary.

Disk /dev/sdd: 5000.0 GB, 4999999389696 bytes
255 heads, 63 sectors/track, 607881 cylinders, total 9765623808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdd1 63 1175689215 587844576+ 83 Linux
Partition 1 does not start on physical sector boundary.

Disk /dev/mapper/pve-root: 103.1 GB, 103079215104 bytes
255 heads, 63 sectors/track, 12532 cylinders, total 201326592 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/pve-root doesn't contain a valid partition table

Disk /dev/mapper/pve-swap: 33.3 GB, 33285996544 bytes
255 heads, 63 sectors/track, 4046 cylinders, total 65011712 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/pve-swap doesn't contain a valid partition table

Disk /dev/mapper/pve-data: 1844.9 GB, 1844919140352 bytes
255 heads, 63 sectors/track, 224298 cylinders, total 3603357696 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/pve-data doesn't contain a valid partition table
root@proxmox:~#
====================================================
In the Web GUI I click the Drive on the Left hand side,
On the right under status it shows.
Enabled Yes
Active Yes
Content All selected, but have tried variations.
Type directory
Shared No
Size 551.82GB
Used 28.22GB
Avail 523.59GB

I now click the 2TB Drive
On the right under status it shows.
Enabled Yes
Active Yes
Content VZDump backup file
Type directory
Shared No
Size 1.79TB
Used 1.14TB
Avail 665.70GB

Is my explanation clear??

Tom
 
Don't use cfdisk to create your partition, AFAIK it's don't manage gpt and also it's doing some wrong alignment.

Use parted ! (check my previous link)


Another possibility, is to not use parition, but directly the raw disk. (It's not a problem with linux).

simply:

mkfs.xfs /dev/sdc
mount /dev/sdc /mountpoint.


Like this you don't care about partitioning and gpt format.
 
Fantastic Spirit,
That Worked well, I now have a disk 4.51TB a lot better than 500GB.
Another question you may have the answer for.
Even though the disk is empty,
size shows as 4.51TB (Thats OK I realise that is calculated using 1024 not 1000).
But it is showing Used as 233.02GB, I can live with losing that but any particular reason???

Tom
 
If you have formatted with ext3/ext4 it will by default reserve 5% disk space for root. You can adjust this number using option -m. In your case reserving 1% should be sufficient for a disk mounted as root. If your disk is not mounted as root you can skip this by using option -m 0 (zero)
 
When you create the file system.
If the disk is named /dev/sdb then every partition will be named /dev/sdb1 /dev/sdb2 etc.

So given the disk is named /dev/sdb and contains one partition name /dev/sdb1 then you must create the file system like:
mkfs.ext4 -m 0 /dev/sdb1

If you are creating the file system directly on top of the disk without partitions then you must create the file system like:
mkfs.ext4 -m 0 /dev/sdb

If however you already has created the file system you must use the command tune2fs:
partitions: tune2fs -m 0 /dev/sdb1
no partitions: tune2fs -m 0 /dev/sdb
 

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!