使用parted创建gpt大分区例子

 使用parted创建gpt大分区例子

[root@VM000000518~]# parted /dev/xvde

GNU Parted 2.1

Using /dev/xvde

Welcome to GNUParted! Type 'help' to view a list of commands.

(parted) p                                                               

Error: /dev/xvde: unrecogniseddisk label                                

(parted) mklabelgpt                                                     

(parted)print                                                           

Model: Xen VirtualBlock Device (xvd)

Disk /dev/xvde: 66.1TB

Sector size(logical/physical): 512B/512B

Partition Table:gpt

 

Number  Start End  Size  File system Name  Flags

 

(parted) mkpartprimary 0 15T                                            

Warning: Theresulting partition is not properly aligned for bestperformance.

Ignore/Cancel?I                                                         

(parted) mkpartprimary 15T 30T                                          

(parted) mkpartprimary 30T 45T                                          

(parted) mkpartprimary 45T 60T                                          

(parted) mkpartprimary 60T -1                                           

(parted) p                                                               

Model: Xen VirtualBlock Device (xvd)

Disk /dev/xvde: 66.1TB

Sector size(logical/physical): 512B/512B

Partition Table:gpt

 

Number  Start  End     Size    File system Name     Flags

 1      17.4kB  15.0TB  15.0TB               primary

 2      15.0TB  30.0TB  15.0TB               primary

 3      30.0TB  45.0TB  15.0TB               primary

 4      45.0TB  60.0TB  15.0TB               primary

 5      60.0TB  66.1TB  6142GB               primary

 

(parted) quit                                                            

Information: Youmay need to update /etc/fstab.                          

 

[root@VM000000518~]# blkid

 

来源: https://www.cnblogs.com/hyang0/p/6434300.html

猜你喜欢

转载自blog.csdn.net/xiaolong_4_2/article/details/80858762