我在存储arrays上创build了一个10TB LUN(RAID6中的7x 2TB磁盘),并将其呈现到运行Ubuntu 10.04 32位的备份服务器。 根据fdisk,操作系统只能看到8000GB:
# fdisk -l /dev/sde WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sde: 8000.0 GB, 7999999442944 bytes 255 heads, 63 sectors/track, 972611 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/sde doesn't contain a valid partition table
这不是一个文件系统问题(我打算使用XFS FWIW),因为我甚至在分区之前看到了不正确的容量。
我已经search了谷歌的高低,我似乎无法find这个限制的答案。 是因为32位内核吗?
更新:使用parted没有区别。
# parted /dev/sde GNU Parted 2.2 Using /dev/sde Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) mklabel gpt (parted) print Model: YA-16SAE Backup_Vol_001 (scsi) Disk /dev/sde: 8000GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags (parted) quit Information: You may need to update /etc/fstab.
首先,你不应该使用fdisk 。 无论如何,它不能创build超过2TB的分区 。
使用parted检查fdisk是否有问题:
parted /dev/sde print
如果事情看起来不错,请在其上放一个GPT标签和一个分区:
parted /dev/sde mklabel gpt parted /dev/sde mkpart primary xfs 1 -1
如果事情看起来不太好(你说他们不这样做),那么现在是时候仔细检查一下,是否将所有七个磁盘都放在了arrays中,而不仅仅是六个磁盘。
那很烦人。 重启后现在显示为10000GB。 分区,格式化,挂载,重启,没有问题。