Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just got a 4TB disk and I'm running Ubuntu 12.04. says you need to partition your disk with GPT if you want to use >2TB (and that you can do this with fdisk/gparted).

However I'm interested in using ZFS. When I tried just running zpool create tank /dev/sde, I end up with 2TB:

$ sudo zpool list
tank  1.81T   576K  1.81T     0%  1.00x  ONLINE  -

$ sudo parted /dev/sde print
Model: WD My Book 1140 (scsi)
Disk /dev/sde: 2000GB
Sector size (logical/physical): 4096B/4096B
Partition Table: gpt

Number  Start   End     Size    File system  Name  Flags
 1      8389kB  2000GB  2000GB               zfs
 9      2000GB  2000GB  67.1MB

How should I proceed? Thanks for any hints.

share|improve this question

closed as off-topic by Shane Madden, Andrew B, EEAA, Stephane, Christopher Perrin Aug 9 '13 at 15:01

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must be relevant to professional system administration. Server Fault is a site dedicated to professionals; novice questions are off-topic. Please see the Help Center for more information on topicality. The best advice we can give you is to hire a professional to help you out." – Shane Madden, Andrew B, EEAA, Stephane, Christopher Perrin
If this question can be reworded to fit the rules in the help center, please edit the question.

@Zoredache From man fdisk from util-linux 2.20.1: "fdisk does not understand GUID partition tables (GPTs) and it is not designed for large partitions. In these cases, use the more advanced GNU parted(8)." However, the OP did use full device for the vdev, so the capabilities of fdisk shouldn't be an issue. – Michael Kjörling Aug 10 '13 at 14:42
@MichaelKjörling my mistake. I skimmed the first paragraph and saw 4tb and fdisk. – Zoredache Aug 10 '13 at 19:28
@Yang Looking at the output, are you absolutely positive that you did receive a 4 TB drive? Because it does look like you are dealing with a 2 TB drive, in which case the behavior you are seeing is perfectly explainable. (ZFS and Parted agree on a 2 TB drive size.) Check sudo blockdev --getsize64 /dev/sde; that'll report what size the system sees the drive as, in bytes. – Michael Kjörling Aug 10 '13 at 22:25
@MichaelKjörling Well, unless I got scammed by Fry's, yeah it's a WD 4TB drive. I heard the 2TB capping is what HPA does. See… – Yang Aug 11 '13 at 1:06

Browse other questions tagged or ask your own question.