Skip to content

tom-sapletta-com/proxmox-disk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 

Repository files navigation

How to clean, format and prepare GPT array for proxmox

  • Try the steps, especially you got Issues during Proxmox Backup Server Initialize Disk with GPT

documents, sources

info about disk

install

apt install hdparm

check:

hdparm -I /dev/sdb  

out:

/dev/sdb:

ATA device, with non-removable media
        Model Number:       CT500P1SSD8                             
        Serial Number:      1913E1F4        
        Firmware Revision:  P3CR
Standards:
        Likely used: 1
Configuration:
        disk xfer rate <= 5Mbs
        data strobe offset option
        track offset option
        Logical         max     current
        cylinders       25601   0
        heads           0       0
        sectors/track   0       0
        --
        Logical/Physical Sector size:           512 bytes
        device size with M = 1024*1024:           0 MBytes
        device size with M = 1000*1000:           0 MBytes 
        cache/buffer size  = unknown
Capabilities:
        IORDY not likely
        Can perform double-word IO
        R/W multiple sector transfer: not supported
        DMA: not supported
        PIO: pio0

parted

install

apt install parted

prepare:

parted /dev/sdb mklabel gpt

out:

Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? y                                                                 
Information: You may need to update /etc/fstab.

GPT with proxmox tool

To initialize a disk with a new GPT, use the initialize subcommand:

proxmox-backup-manager disk initialize sdb

Delete Partitions with parted

Before deleting a partition, back up your data. All data is automatically deleted when a partition is deleted.

  • run the d command in the fdisk command-line utility.

image

Verify Partition Deletion

Reload the partition table to verify that the partition has been deleted.

  • run the p command.

The terminal prints out the partition structure of the disk selected in Step 2.

Save Changes and Quit

  • run the w command to write and save changes made to the disk.

Formatting Disk Partition with ext4 File System

Format a disk partition with the ext4 file system using the following command:

sudo mkfs -t ext4 /dev/sdb1

Next, verify the file system change using the command:

lsblk -f

Check disk performance

hdparm -Ttv /dev/sdb1

out:

/dev/sdb1:
 multcount     =  0 (off)
 readonly      =  0 (off)
 readahead     = 131064 (on)
 geometry      = 60801/255/63, sectors = 976771087, start = 2048
 Timing cached reads:   12072 MB in  2.00 seconds = 6041.48 MB/sec
 Timing buffered disk reads: 1214 MB in  3.04 seconds = 398.73 MB/sec

SPEED: 398.73 MB/sec

proxmox backup server

/#pbsStorageAndDiskPanel

image

create Directory

image

Directory creating process

image

Directory created

image

Datastore created

image