用fdisk -l 显示有214.7GB
Disk /dev/xvdb: 214.7 GB, 214748364800 bytes
240 heads, 16 sectors/track, 109226 cylinders, total 419430400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb44b349c
Device Boot Start End Blocks Id System
/dev/xvdb1 2048 314572799 157285376 83 Linux
用fdisk 删除分区后显示只有161.1GB
Command (m for help): p
Disk /dev/xvdb1: 161.1 GB, 161060225024 bytes
1 heads, 32 sectors/track, 9830336 cylinders, total 314570752 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xbb8a20bd
Device Boot Start End Blocks Id System
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-314570751, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-314570751, default 314570751):
Using default value 314570751
Command (m for help): wq
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
无论怎么重新创建新的分区,大小只有161.1GB
我已经按照这个操作过了,没有任何作用:
helpcdn.aliyun.com/knowledge_detail/41348.html
help.aliyun.com/document_detail/25452.html?spm=5176.doc35095.2.5.rnNj0b
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。