What I did..
I sequentally hot-swapped two drives that are in a mirror on my HP P420 raid controller. Now to actually use that space you need to grow the logicaldrive.
# ssacli ctrl slot=1 ld 1 modify size=max Warning: Extension may not be supported on certain operating systems. Performing extension on these operating systems can cause data to become inaccessible. See SSA documentation for details. Continue? (y/n) y
I typed "y" because this was going trough my mind:
I'm on Linux.. this will just work, right....
Wrong.. Even after rescanning nothing made my drive appear bigger.. I even did a reboot.
Ok, let's check fdisk:
# fdisk /dev/sda Welcome to fdisk (util-linux 2.29.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. GPT PMBR size mismatch (286677119 != 2344160431) will be corrected by w(rite). GPT PMBR size mismatch (286677119 != 2344160431) will be corrected by w(rite). Command (m for help): p Disk /dev/sda: 1.1 TiB, 1200210141184 bytes, 2344160432 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 262144 bytes / 262144 bytes Disklabel type: gpt Disk identifier: B0426352-B2AA-4C55-A328-F6C29271B05F Device Start End Sectors Size Type /dev/sda1 2048 4095 2048 1M BIOS boot /dev/sda2 4096 528383 524288 256M EFI System /dev/sda3 528384 286677086 286148703 136.5G Linux LVM Command (m for help):
Yup something is wrong.. I was like.. ok, fdisk knows whats wrong... the GPT label and the Protective MBR don't match... lets just punch 'w'.. and reboot (because this is the bootdisk.. partprobe won't help you here...) right?
nope, that doesn't work either (can't seem to find that output..). fdisk isn't able to write anything...
Ok, I can go on with other things that failed but that would make the story to long. So what did help?
# parted GNU Parted 3.2 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) p Warning: Not all of the space available to /dev/sda appears to be used, you can fix the GPT to use all of the space (an extra 2057483312 blocks) or continue with the current setting? Fix/Ignore? Fix Model: HP LOGICAL VOLUME (scsi) Disk /dev/sda: 1200GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 2097kB 1049kB bios_grub 2 2097kB 271MB 268MB fat32 boot, esp 3 271MB 147GB 147GB lvm (parted) q
And now I could use my extra diskspace! Hooray!