MBR分区无法扩容至2T以上解决办法(MBR更改为GPT无损扩容)

听闻少年二字,当与平庸相斥。这篇文章主要讲述MBR分区无法扩容至2T以上解决办法(MBR更改为GPT无损扩容)相关的知识,希望能为你提供帮助。
MBR分区扩容发现高于2T报错,解决步骤

  • 报错内容如下
WARNING: The size of this disk is 3.2 TB (3221225472000 bytes).
DOS partition table format can not be used on drives for volumes
larger than (2199023255040 bytes) for 512-byte sectors. Use parted(1) and GUID
partition table format (GPT).

  • 因为MBR分区是用4个字节存储分区的总扇区数,最大能表示2的32次方的扇区个数,按每扇区512字节计算,所以每个分区最大不能超过2TB。
【MBR分区无法扩容至2T以上解决办法(MBR更改为GPT无损扩容)】##解决MBR数据磁盘只能扩容2T,将MBR转换为GPT,然后再对其进行重新分区扩容! ##步骤如下
数据珍贵,请对数据盘做镜像或本地备份后操作,此文档不为任何操作失误导致数据丢失负责!!!
1、卸载已挂载设备,并并关闭已调用目录相关程序
##查看是否有程序在使用该数据盘
fuser -m /dev/vdb1
##如果有关闭程序或将其进程杀掉
umount /dev/vdb1
##还需要将fstab中写入的挂载信息先注释掉,然后执行一下mount -a重新读取一下

2、使用gdisk工具更改MBR为GPT
###安装gdisk工具
[root@instance-daojiao2-9 < sub> ]# yum install-y gdisk
Loaded plugins: langpacks, versionlock
base| 3.6 kB00:00:00
epel| 4.7 kB00:00:00
extras| 2.9 kB00:00:00
updates| 2.9 kB00:00:00
(1/4): extras/7/x86_64/primary_db| 247 kB00:00:00
(2/4): epel/x86_64/updateinfo| 1.0 MB00:00:00
(3/4): epel/x86_64/primary_db| 7.0 MB00:00:00
(4/4): updates/7/x86_64/primary_db|16 MB00:00:00
Excluding 1 update due to versionlock (use "yum versionlock status" to show it)
Resolving Dependencies
--> Running transaction check
---> Package gdisk.x86_64 0:0.8.10-3.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================================================================
PackageArchVersionRepositorySize
=====================================================================================================================

    推荐阅读