When using block devices with a size of >2TiB, GPT disklabels (see http://de.wikipedia.org/wiki/GUID_Partition_Table ) are recommended and the traditional MBR disklabel cannot be employed (because partition offsets >2TiB cannot be addressed).
Thus, traditional "fdisk" cannot be used to setup partitions, but parted needs to be used.
However, while parted can create partitions, parted apparently cannot resize partitions with unknown or unsupported content.
For example, consider this 3TB device:
(parted) p
Model: Adaptec system (scsi)
Disk /mnt/boot/dev/sda: 2999GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17,4kB 3000MB 3000MB ext3 boot boot
2 3001MB 1100GB 1097GB primary
(parted) resize 2 3001024512B 2900GB
Error: Could not detect file system.
(parted)
The second partition actually contains a LVM physical volume, but parted fails to resize the space for this partition properly.
Parted should offer the user the option to just ignore the filesystem content when resizing, especially when enlarging, which is safe for almost all filesystems..
There is even a patch http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=419473 fixing this bug, which is already more than 2 years old.