Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I just got a 4TB disk and I'm running Ubuntu 12.04. http://www.thegeekstuff.com/2012/08/2tb-gtp-parted/ 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
NAME   SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
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
    
@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 askubuntu.com/questions/330666/zfs-on-2tb-disk-in-ubuntu-12-04/… –  Yang Aug 11 '13 at 1:06
add comment

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.

Browse other questions tagged or ask your own question.