Partion a new disk

Dec 15, 2014
6
0
1
I have a dedicated server at SoYouStart(OVH) with Proxmox installed. Today they have replaced a broken disk and this new replaced disk needed to be partion again.

I need this disk layout:
Code:
Disklabel type: gpt

Device        Start        End    Sectors    Size Type
/dev/sda1        40       2048       2009 1004.5K BIOS boot
/dev/sda2      4096   40962047   40957952   19.5G Linux RAID
/dev/sda3  40962048   43057151    2095104   1023M Linux RAID
/dev/sda4  43057152 3907018751 3863961600    1.8T Linux RAID


But whatever I try with gpart I cant install BIOS boot on start 40.
I get this:
Code:
Command (? for help): n
Partition number (1-128, default 1):
First sector (34-3907029134, default = 2048) or {+-}size{KMGTP}: 40-2048
Information: Moved requested sector from 40 to 2048 in
order to align on 2048-sector boundaries.
Use 'l' on the experts' menu to adjust alignment
Last sector (2048-3907029134, default = 3907029134) or {+-}size{KMGTP}:

Any ideas how to do this?

Thanks!
 
Why are you partitioning like this?
If the new disk part of OS boot disk, than you need to just copy part. Table from a good disk with "sfdisk "
And add the new disk using commands relative to raid used.
Once all is done and raid is resilvered
Run grub install on new disk.
 

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!