li
  当前位置:主页 > 存储技术 > 文章内容
li
大于2T的磁盘使用GPT分区方式
来源: www.ixdba.net  作者: Oracle+Linux专业技术门户    时间:2008-08-22   阅读:178  
本文章共1661字,分2页,当前第1页,快速翻页:
 

一台MD1000的ISCSI的存储,有15T的空间,在分空间时,超过2T就没法使用普通的法子分区.只能使用GPT的方法。查了一下GPT的介绍.介绍讲,只能在2TB内,普通pc的BIOS才能认到分区表.超过2TB就要使用GPT的磁盘分区表.

下面是它的一些介绍
Acronym for GUID Partition Table

GPT was introduced for iA64 systems, to get around a fixed 32 bit issue (2 to the power of 32 is 4 billion times a 512 byte block equals 2 Terabytes) in the PC-BIOS Partition table. Partitions larger than 2 TB require using a GPT disklabel, which differs from the PC-BIOS Partition table in a number of ways:

    * Is easily extensible.
    * Can contain up to 128 primary partitions, as opposed to 4, so there’s no need for extended partitions.
    * Allows Partitions larger than 2 TB.
    * Identifies Partitions with a GUID so you can reference that Partition even if disks are moved around.
    * Identifies Partition type with a GUID, thus avoiding the type conflicts that plague the PC-BIOS Partition table format.
    * Provides a 46(?) character UTF-16 partition label to identify Partitions.
    * Has a "fake" MBR for backwards compatibility.
    * Includes a CRC32 to detect corrupt Partition tables.
    * Stores a backup Partition table at the end of the disk.

Most partitioning tools under Linux will fail to do anything sensible with a > 2 TB Partition. As of this writing, parted(8) is the only one that understands them and will let you set the GPT label on the disk.

There is a lot of information stating that you cannot boot off a GPT enabled device. Most of the claims imply that the fault is with LILO or GRUB not understanding GPT devices. We’ve not tested this, but GPT and traditional MBRs will coexist.

See also:

    * Disk Sectors on GPT Disks from the MS Knowledge Base

所以在超过2TB时,我不能使用交互很好的Fdisk命令,只能磁盘转化为GPT格式。由于GPT格式的磁盘相当于原来MBR磁盘中原来保留4个partition table的4*16个字节只留第一个16个字节,其它的类似于扩展分区,真正的partition table在512字节之后,所以对GPT磁盘表来讲没有四个主分区的限制。

对GPT磁盘分区表进行操作,我们要使用parted命令。其实parted功能很强大,它可以象fdisk一样既可用命令行也可以用于交互式.
下面我们就来实际操作吧,在提示符下输入parted就会进入交互式模式

#  parted  /dev/sdb
GNU  Parted  1.8.1
Using  /dev/sdb
Welcome  to  GNU  Parted!  Type  ‘help’  to  view  a  list  of  commands.

(parted) mklable gpt
将MBR磁盘格式化为GPT

(parted) mkpart primary 0 100
划分一个起始位置为0大小为100M的主分区

(parted) mkpart primary 100 200
划分一个起始位置为100M大小为100M的主分区

(parted)  mkpart  primary  0  -1

划分所有空间到一个分区

(parted)  print
打印当前分区

(parted)  quit

可能还会用到的一些命令

(parted) mklable msdos
如果要反过来.将GPT磁盘转化为MBR磁盘

IXDBA.NET社区论坛

在这样分完分区后,还要使用mkfs.ext3来进行格式化
#partprobe



阅读更多内容1 · 2 · 下一页>>


  上一篇: Intel主板RAID1恢复方法及图解   下一篇:
li
 §相关评论  
评论人:wysfenghuo0072008-11-27
不错,我也用过。不过使用parted 划分的分区,没法看到对应分区,不好创建裸设备,不知道楼主怎么看划分出的分区,譬如,/dev/sdb1,/dev/sdb2....
评论人:Butterfly2008-10-02
32位系统不建议划分超过2TB的分区。 我试过在Windows Server 2008 下把一块盘转成GTB,尝试分成N个分区,只分配盘符不格式化,然后让尝试VMware 虚拟机直接使用这些裸分区来作为虚拟硬盘,结果是VMware Workstation 6.5 的虚机启动后根本识别不到硬盘,更别谈装OS了!
 热点文章

·VMworld 2007召开 虚拟化生态系
·图文并茂:配置RAID磁盘阵列(之
·RAID图文并茂:配置RAID磁盘阵列
·如何选择合适的RAID级别?
·SUN CMT,CPU市场的捣糨糊者
·还是cx系列,怎么添加/更换主机
·orion——一款优秀的IO存储测试
·光纤网络复用技术——DWDM
·HP EVA阵列——存储内部虚拟化
·主机虚拟化技术
·Netapp传奇之WAFL文件系统以及
li
 编辑推荐
·VMworld 2007召开 虚拟化生态系
·图文并茂:配置RAID磁盘阵列(之
·RAID图文并茂:配置RAID磁盘阵列
·如何选择合适的RAID级别?
·SUN CMT,CPU市场的捣糨糊者
·还是cx系列,怎么添加/更换主机
·orion——一款优秀的IO存储测试
·光纤网络复用技术——DWDM
·HP EVA阵列——存储内部虚拟化
·主机虚拟化技术
·Netapp传奇之WAFL文件系统以及
li
 相关篇章
·Intel主板RAID1恢复方法及图解
·三大主流iSCSI Initiator软件对比...
·Red Hat linux iSCSI initiator ...
·主机与ISCSI设备之间几种连接方式
·Linux Redhat 操作系统下软件Ini...
·如何测试磁盘与阵列性能
·磁盘阵列常见故障以及维护注意事...
·IDE/ATA,SCSI,Fibre Channel技术...
·存储经验:关于ESS和FastT的选择
·几种常见存储备份系统介绍
 
li
设为首页 | 关于我们 | 技术服务 | 收藏本站 | 网站地图 | 联系方式 | 本站友情连接