标签:parted
我的/dev/sdb有20T 该如何分区
yum install parted
1)fdisk 不能对其进行分区,因为只支持2T\
但是fdisk delete分区的操作还是可以的
fdisk -l 可能看不了 操作2T磁盘的分区情况
需要改用parted -l
2)parded命令可以对其进行GPT格式的分区
命令:
parted /dev/sdb 交互式进入去分区
mklabel gpt 将MBR磁盘格式化为GPT
mkpart primary 0 10T 分一个10T的
mkpart primary 10T -1 和一个将最后所有分区分到这个分区
格式化
mkfs.ext4 /dev/sdb1
10T的磁盘大概需要格式化三分钟
[root@hblf-bak002 ~]# parted /dev/sdb
GNU Parted 2.1
Using /dev/sdb
Welcome to GNU Parted! Type ‘help‘ to view a list of commands.
(parted) mklabel gpt
Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? yes
(parted) mkpart primary 0 10T
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? Ignore
(parted) print
Model: DELL PERC H730P Mini (scsi)
Disk /dev/sdb: 19.8TB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 10.0TB 10000GB primary
(parted) mkpart primary 10T -1
(parted) print
Model: DELL PERC H730P Mini (scsi)
Disk /dev/sdb: 19.8TB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 10.0TB 10000GB primary
2 10.0TB 19.8TB 9797GB primary
本文出自 “崔德华运维打工从业路” 博客,请务必保留此出处http://cuidehua.blog.51cto.com/5449828/1773205
标签:parted
原文地址:http://cuidehua.blog.51cto.com/5449828/1773205